NOTICE! This is a static HTML version of a legacy Fiji BugZilla bug.

The Fiji project now uses GitHub Issues for issue tracking.

Please file all new issues there.

Bug 621 - "3D Objects Counter" centroid Z-coord is +1 greater than expected.
"3D Objects Counter" centroid Z-coord is +1 greater than expected.
Status: NEW
Product: Fiji
Classification: Unclassified
Component: Plugins
unspecified
PC Windows
: P5 minor
Assigned To: ImageJ Bugs Mailing List
Depends on:
Blocks:
 
Reported: 2013-06-12 07:21 CDT by Alasdair N Houston
Modified: 2013-07-07 10:38 CDT
1 user (show)

See Also:


Attachments
Raw image 9*9*9 voxels, 8bit (unsigned), no header or padding. (729 bytes, application/octet-stream)
2013-06-12 07:21 CDT, Alasdair N Houston

Description Alasdair N Houston 2013-06-12 07:21:03 CDT
Created attachment 104
Raw image 9*9*9 voxels, 8bit (unsigned), no header or padding.

Core Fiji Plugin "3D Objects Counter" appears to produce incorrect (biased) value for object centroid z-coordinate. The value is consistently +1 relative to the expected value. This was verified manually on simple test data (attached) after noticing a discrepancy with my own image processing tools. The problem seems to be independent of image resolution, object complexity and so on.

The attached test image data is a cylinder with centroid at the exact centre (4.0,4.0,4.0) of the image.

To Reproduce:
Import RAW - "3dobj1(9,9,9).u8" 8-bit, width 9, height 9, offset 0, slices 9, gap 0.
Analyze -> 3D Objects Counter - accept default options.

Resulting report window "Statistics for 3dobj1(9,9,9).u8" has 5.000 in the column labelled "Z".
Comment 1 Johannes Schindelin 2013-07-07 10:38:19 CDT
If you have time, please make a pull request. Otherwise, I am afraid that nobody will have time anytime soon to analyze and fix this issue.