jzhousz / iano

Automatically exported from code.google.com/p/iano
0 stars 0 forks source link

ObjectStatistics3D improvement #76

Open jzhousz opened 8 years ago

jzhousz commented 8 years ago

If an object has only a few pixels/voxels, it should be excluded. So it is better to add a parameter for minimum object size. (There may also a need to toggle between black background and white background.)

In addition, ObjectStatisticsFast's status needs to be revisited. It has some issue of CoM calculation formula. Should be deprecated. Does its thresholding assume white background? (ObjectStatistics is already deprecated).

jzhousz commented 8 years ago

As of 2/12/2016, 1. Add a parameter to exclude very small objects. 2. Add a parameter to indicate if the object is black-on-white or white-on-black.

Currently ObjectStatistics3D is the correct version, it is white-on-black, and it has the correct way of calculating CoM. ObjectStatisticsFast has issues on CoM, as well as background toggle. It should be deprecated.