[Insight-users] crop tool with ITK VTK Qt

Cary lorey developement.unity at gmail.com
Tue May 14 12:41:02 EDT 2013


I've seen this class but it does not meet my needs, I found a lot of method
eg:
http://www.itk.org/Wiki/ITK/Examples/ImageProcessing/RegionOfInterestImageFilter
http://www.vtk.org/doc/nightly/html/classvtkImageCroppingRegionsWidget.html#details
(no
example)

I think that there is not a method directly to a crop with the mouse on the
image, but I have an idea, Normally, we need a method to retrieve the size
of the cropping rectangle and pass these dimensions to the function of the
crop: cropSize [0] and cropSize [1] by clicking the crop button, the region
of interest is obtained.

I want to know if this is a good method to make a crop with the mouse ?
Thank you


2013/5/14 David Doria <daviddoria at gmail.com>

> On Tue, May 14, 2013 at 10:44 AM, Cary lorey
> <developement.unity at gmail.com> wrote:
> > Hello,
> >
> > I was able to draw on an image frame using vtkBorderWidget (here the
> image
> > below), now I want when I click the crop button, there remain only the
> > selected region. is the class
> >
> http://www.vtk.org/doc/nightly/html/classvtkImageCroppingRegionsWidget.html
> > do the trick or not, well I have not found an example for even its
> > usefulness, if not exist there any method that meets my needs?
> >
> > Thank you.
>
> Please keep the discussion on the emailing list.
>
> Why do you not want to do the cropping in ITK (the beginning of your
> pipeline)?
>
> This is the way to do the cropping in VTK:
> http://www.vtk.org/Wiki/VTK/Examples/Cxx/ImageData/ExtractVOI
>
> David
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20130514/a8e59aab/attachment.htm>


More information about the Insight-users mailing list