Hi,

a first guess would be that you mix up indices with world coordinates and Z 
just seems to work coincidentally since it might have a spacing of 1. As an 
additional note be careful when working with world coordinates and indices in 
parallel as pixel coordinates are center-based, e.g., a pixel with extents [1, 
1, 1] in world coordinates at the origin has the bounds [-0.5, 0.5, -0.5, 0.5, 
-0.5, 0.5] in world coordinates.

Cheers,
Stefan
________________________________________
Von: Jatin Nath [jatin.nath.bm...@iitbhu.ac.in]
Gesendet: Dienstag, 18. März 2014 11:33
An: mitk-users@lists.sourceforge.net
Betreff: [mitk-users] bounding object cropped dimensions mismatch ?

hey mitk users,

I am working on cropping a bounding object from a 3D mitk image. I have used 
the mitk::boundingobjectcutter class and am confused with the output I get from 
the cropping.
I manually enter the bounds for the bounding object which are the 6 parameters 
in the form xmin, xmax, ymin, ymax, zmin, zmax. I am having trouble explaining 
the output image dimensions that I recieve.

my input impage has a dimenion : 512X512X1320

bounds parameters : 50 100 60 150 10 1150

output dimensions : 116 209 1140

as the output object according to me shoulde have dimensions in X as xmax - 
xmin, Y as ymax - ymin and Z as zmax- zmin.

the output dimension for the Z axis seems to be the way I expect but X and Y 
axes give out "weird" values of 106 and 209 respectively.

Can anybody explain this behaviour ? Is there another way to do the cropping ?

Thanks in advance,
Jatin Nath,
School of BioMedical Engineering,
Indian Institute of Technology (Banaras Hindu University), Varanasi

------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
_______________________________________________
mitk-users mailing list
mitk-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to