[Insight-users] Stitching the image region back after RegionOfInterestImageFilter

Karthik Krishnan Karthik.Krishnan at kitware.com
Tue Mar 22 21:00:20 EST 2005


Hi Quan,

One way is of achieving arbitrary padding use the ResampleImageFilter. 
See any of the examples in Examples/Filtering/Resample*.cxx. You can set 
your output size, start index, output origin, and background pixel value 
etc..

Thanks
regards
karthik

Quan Chen wrote:

> Hi, this might be a simple question but I havn't found a good solution 
> yet.  I am going to use RegionOfInterestImageFilter to extract a 
> region for processing, say canny edge detection.  However, after 
> processing, I want to display it with the original image in 
> fltkimageviewer.  It seems that the imageviewer requires the overlay 
> image the same size as the original image? So I would create a empty 
> image with the same size as the original image and fill the processed 
> region back in.  I could use iterators and fill in pixel by pixel.  I 
> am wondering if there is any filter designed already for this 
> purpose?  Or sth involving with /SetFixedImageRegion?/
>
>------------------------------------------------------------------------
>
>_______________________________________________
>Insight-users mailing list
>Insight-users at itk.org
>http://www.itk.org/mailman/listinfo/insight-users
>  
>



More information about the Insight-users mailing list