[Insight-users] scaling an object (not an image) ?
Luis Ibanez
luis.ibanez at kitware.com
Sun Sep 13 10:54:01 EDT 2009
Hi Juliette,
Since the object is already pixelized, there is not an easy way to rescale
it.
One way to go is to do:
1) Crop the region around the object (with the RegionOfInterestFilter)
2) Resample it at the scale that you want (with the AffineTransform
and the ResampleImageFilter)
3) Use image iterators in order to paste it back into the original image,
or use the PastImageFilter.
Regards,
Luis
------------------------------------------
On Thu, Aug 20, 2009 at 11:06 AM, Juliette Deniau
<juliette.deniau at yahoo.fr>wrote:
> Hi
>
> Sorry for my basic question, I couldn't find an answer for it in the
> archives.
>
> Is there any itk filter that can scale (resize) an object in a volume? The
> object is already segmented and I would like to scale it to a predefined
> scale.
>
> Note: I'm looking to scale an object in a volume and not the volume itself.
>
> Thanks
>
> Regards
>
> Juliette
>
>
> _____________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20090913/27a0a9bb/attachment-0001.htm>
More information about the Insight-users
mailing list