<div dir="ltr"><div>I've seen this class but it does not meet my needs, I found a lot of method eg: </div><div><a href="http://www.itk.org/Wiki/ITK/Examples/ImageProcessing/RegionOfInterestImageFilter">http://www.itk.org/Wiki/ITK/Examples/ImageProcessing/RegionOfInterestImageFilter</a><br>
</div><div><a href="http://www.vtk.org/doc/nightly/html/classvtkImageCroppingRegionsWidget.html#details">http://www.vtk.org/doc/nightly/html/classvtkImageCroppingRegionsWidget.html#details</a> (no example)<br></div><div><br>
</div><div>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. </div>
<div><br></div><div>I want to know if this is a good method to make a crop with the mouse ?</div><div style>Thank you</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/5/14 David Doria <span dir="ltr"><<a href="mailto:daviddoria@gmail.com" target="_blank">daviddoria@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Tue, May 14, 2013 at 10:44 AM, Cary lorey<br>
<<a href="mailto:developement.unity@gmail.com">developement.unity@gmail.com</a>> wrote:<br>
> Hello,<br>
><br>
<div class="im">> I was able to draw on an image frame using vtkBorderWidget (here the image<br>
> below), now I want when I click the crop button, there remain only the<br>
> selected region. is the class<br>
> <a href="http://www.vtk.org/doc/nightly/html/classvtkImageCroppingRegionsWidget.html" target="_blank">http://www.vtk.org/doc/nightly/html/classvtkImageCroppingRegionsWidget.html</a><br>
> do the trick or not, well I have not found an example for even its<br>
> usefulness, if not exist there any method that meets my needs?<br>
><br>
> Thank you.<br>
<br>
</div>Please keep the discussion on the emailing list.<br>
<br>
Why do you not want to do the cropping in ITK (the beginning of your pipeline)?<br>
<br>
This is the way to do the cropping in VTK:<br>
<a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/ImageData/ExtractVOI" target="_blank">http://www.vtk.org/Wiki/VTK/Examples/Cxx/ImageData/ExtractVOI</a><br>
<span class="HOEnZb"><font color="#888888"><br>
David<br>
</font></span></blockquote></div><br></div>