Hi again,

Turns out I found an useful itk page just after sending the message. There's a class called LineConstIterator<type> that ask for (image, startIndex, endIndex) and there's a method in itk::Image<type> to obtain the index of a point: TransformPhysicalPointToIndex(). I didn't test anything yet, but it should work. Please tell me if it's not the "proper" way. Thanks!

Le 2013-03-20 13:38, Nil Goyette a écrit :
HI,

I need to take samples in an image. The goal is to choose two Point3D and create a Vector3D with them, in order to get all voxel's values in this vector. I found the class ExtractSliceFilter which would probably do the job, but it's a little too generic. I don't want to extract a plane in the image, I need to extract a line. I could probably create a long and really slim (1 pixel wide) plane to make it work, but it feels "wrong".

So, I wonder if you have a class for that? I couldn't find one in the documentation, but maybe I missed it. I'm asking because I think this is a rather frequent job and I couldn't find any document on the subject.

Again, thanks for your time. Have a nice day.
--
Logo Imeka Nil Goyette, M.Sc.
Programmeur
www.imeka.ca
819.820.5231
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to