[Insight-users] Pixel Extraction

Dan Mueller dan.muel at gmail.com
Tue Jan 13 03:42:29 EST 2009


Hi Raghu,

If your ROI is defined as a cubiodal region aligned with the image
data (ie. represented as a starting index with a size) then you should
be able to use an image region iterator to step through the pixel
data. Please look at the following examples:
    Examples/Iterators/ImageRegionIterator.cxx
    Examples/Iterators/ImageRegionIteratorWithIndex.cxx

If you want to extract the ROI as a new image, then you may be
interested in Code/BasicFilters/itkExtractImageFilter.h.

Hope this helps.

Regards, Dan

2009/1/13 RAGHU PRASAD <raghuprasad.m.s at gmail.com>:
> Respected Sir,
>
>
> I want to access the pixel data at a specific region in this regard I would
> like to know few things.
>
>
> How to mark a ROI in a image
> How to access pixel data in the ROI


More information about the Insight-users mailing list