[Insight-users] Restrict image processing to a smaller region

Bill Lorensen bill.lorensen at gmail.com
Fri Feb 17 08:37:41 EST 2012


Did you try this approach:
http://itk.org/Wiki/ITK/Examples/ImageProcessing/ImageFilterOnARegion#ImageFilterOnARegion.cxx
with the filter you are using?

On Fri, Feb 17, 2012 at 2:34 AM, Chr. Rossmanith
<cr at neuro.ma.uni-heidelberg.de> wrote:
> I've applied a filter to the input image (at the moment without setting the
> requested region - but if there is a guarantee that it is respected by the
> filter I'd add it again  :-)  but the images aren't very big so performance
> is not really an issue) and used an itkPasteImageFilter to paste the ROI of
> the processed image into the original image. That is what is written to
> disk.
>
> Christina
>
> Am 15.02.2012 18:49, schrieb Bill Lorensen:
>
> Christina,
>
> Which approach ended up working for you?
>
> On Wed, Feb 15, 2012 at 9:41 AM, Chr. Rossmanith
> <cr at neuro.ma.uni-heidelberg.de> wrote:
>
> Thank you, now I finally have my application working. How could I test that
> a filter really restricts itself to the requested region? If I add the
> medianFilter to the viewer as a forth image the whole image has been
> processed. But that might be because the viewer requests the whole image...
>
> Christina
>
> Am 08.02.2012 18:27, schrieb Bill Lorensen:
>
> I just added an example to the wiki that shows how to use
> RequestedRegion on a filter and then paste the filtered region back
> into the image.
>
> http://itk.org/Wiki/ITK/Examples/ImageProcessing/ImageFilterOnARegion#ImageFilterOnARegion.cxx
>
> On Fri, Feb 3, 2012 at 6:24 AM, Chr. Rossmanith
> <cr at neuro.ma.uni-heidelberg.de>  wrote:
>
> Hi,
>
> I'd like to process only a subregion of an image. A search only gave
>
> http://old.nabble.com/How-to-restrict-work-region-of-filters-td5963437.html
> as a result. Is the ExtractRegionOfInterestFilter + PasteImageFilter
> approach described there still valid or is there a more elegant way?
>
> Christina Rossmanith
> --
> Dept. of Neurology
> University Medical Center Mannheim
> _____________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Kitware offers ITK Training Courses, for more information visit:
> http://www.kitware.com/products/protraining.html
>
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.itk.org/mailman/listinfo/insight-users
>
>
>
>
>



-- 
Unpaid intern in BillsBasement at noware dot com


More information about the Insight-users mailing list