Hi Miguel, On 11/06/2012 02:27 PM, Miguel Nunes wrote: > Hello MITK team, > > I am trying to access a value in a set of slices I imported via the > workbench. I already access the bounding box (BB) surrounding the 49 > slices with a 256x256 pixels of size (file Pic3D.nrrd ). > > This value is the position of a marching ray, and when it's inside the > BB, the pixel information at this position should be obtained (RGB and > alpha). > > My questions are: > 1) when a file is opened by the workbench does it only have the slices, > or is it possible to access the data in between slices as a 3D voxel or > interpolation?
I assume you are accessing a mitk::Image, right? AFAIK, there are no pixel access methods which interpolate between the values of nearest voxel centers, for example. You would have to write interpolation functions yourself. > 2) right now in my plugin I am trying to use: > > TPixel p = mitk::ImagePixelReadAccessor > <TPixel,3>::GetPixelByWorldCoordinates(position); > > but I don't know what TPixel is...and there is no example... and I dont > know how to connect this method to my mitk::Image or mitk::Geometry3D. There are two possibilities, either you restrict yourself to working with specific pixel types (e.g. unsigned char) and check that the mitk::Image you get is of that type, or you use a multiplexing macro which figures out the pixel type for you. Documentation is here: http://docs.mitk.org/nightly-qt4/group__Adaptor.html#ga67ad28ba2fe729db2f6e195dcf49c070 > 3) is there a different and simpler way of obtaining this value? See above. - Sascha > > > I hope I'm not trying to re-invent the wheel. > > Thank you! > Miguel > > ------------------------------------------------------------------------------ > LogMeIn Central: Instant, anywhere, Remote PC access and management. > Stay in control, update software, and manage PCs from one command center > Diagnose problems and improve visibility into emerging IT issues > Automate, monitor and manage. Do more in less time with Central > http://p.sf.net/sfu/logmein12331_d2d > _______________________________________________ > mitk-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/mitk-users ------------------------------------------------------------------------------ LogMeIn Central: Instant, anywhere, Remote PC access and management. Stay in control, update software, and manage PCs from one command center Diagnose problems and improve visibility into emerging IT issues Automate, monitor and manage. Do more in less time with Central http://p.sf.net/sfu/logmein12331_d2d _______________________________________________ mitk-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mitk-users
