Skip to content
This repository has been archived by the owner on Aug 15, 2018. It is now read-only.

Wrong object count in identify_secondary_iw.m #3

Closed
hackermd opened this issue Feb 8, 2016 · 1 comment
Closed

Wrong object count in identify_secondary_iw.m #3

hackermd opened this issue Feb 8, 2016 · 1 comment
Labels

Comments

@hackermd
Copy link
Member

hackermd commented Feb 8, 2016

For some images, the object count is wrong after applying the watershed segmentation. The reason is not clear to me yet. It is related to the shape of the primary objects, however, since smoothing the input mask solves the problem. It could be related to the labeling of objects, which is different in Matlab and Python.

@hackermd hackermd added the bug label Feb 8, 2016
@hackermd
Copy link
Member Author

That was due to differences in labelling of images between Matlab and Python modules.
The mahotas function uses a 4-neighbourhood labelling by default, while Matlab's bwlabel uses a 8-neighbourhood. Fixed with commits 0e8d0bd and 86f6e78.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant