You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The function image.laplacian() seems to return very different results from what Matlab's fspecial() does.
For example, when size=5, sigma=0.5:
image.laplacian() produces:
0.1898 0.4022 0.4938 0.4022 0.1898
0.4022 0.7158 0.8493 0.7158 0.4022
0.4938 0.8493 1.0000 0.8493 0.4938
0.4022 0.7158 0.8493 0.7158 0.4022
0.1898 0.4022 0.4938 0.4022 0.1898
Whereas fspecial('log') produces:
-0.0091 -0.0095 -0.0115 -0.0095 -0.0091
-0.0095 -0.0646 -0.1457 -0.0646 -0.0095
-0.0115 -0.1457 1.0000 -0.1457 -0.0115
-0.0095 -0.0646 -0.1457 -0.0646 -0.0095
-0.0091 -0.0095 -0.0115 -0.0095 -0.0091
Both filters are normalized by the central [3,3] element.
I've tried a few other parameter values and none of them are the same. Moreover, image.laplacian() seems to contain many more positive numbers.
I'm not an image processing person so am not sure if I misunderstood the documentation of this API. Thank you for any help.
The text was updated successfully, but these errors were encountered:
The function image.laplacian() seems to return very different results from what Matlab's fspecial() does.
For example, when size=5, sigma=0.5:
image.laplacian() produces:
0.1898 0.4022 0.4938 0.4022 0.1898
0.4022 0.7158 0.8493 0.7158 0.4022
0.4938 0.8493 1.0000 0.8493 0.4938
0.4022 0.7158 0.8493 0.7158 0.4022
0.1898 0.4022 0.4938 0.4022 0.1898
Whereas fspecial('log') produces:
-0.0091 -0.0095 -0.0115 -0.0095 -0.0091
-0.0095 -0.0646 -0.1457 -0.0646 -0.0095
-0.0115 -0.1457 1.0000 -0.1457 -0.0115
-0.0095 -0.0646 -0.1457 -0.0646 -0.0095
-0.0091 -0.0095 -0.0115 -0.0095 -0.0091
Both filters are normalized by the central [3,3] element.
I've tried a few other parameter values and none of them are the same. Moreover, image.laplacian() seems to contain many more positive numbers.
I'm not an image processing person so am not sure if I misunderstood the documentation of this API. Thank you for any help.
The text was updated successfully, but these errors were encountered: