<div dir="ltr"><div>I&#39;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">&lt;<a href="mailto:daviddoria@gmail.com" target="_blank">daviddoria@gmail.com</a>&gt;</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>
&lt;<a href="mailto:developement.unity@gmail.com">developement.unity@gmail.com</a>&gt; wrote:<br>
&gt; Hello,<br>
&gt;<br>
<div class="im">&gt; I was able to draw on an image frame using vtkBorderWidget (here the image<br>
&gt; below), now I want when I click the crop button, there remain only the<br>
&gt; selected region. is the class<br>
&gt; <a href="http://www.vtk.org/doc/nightly/html/classvtkImageCroppingRegionsWidget.html" target="_blank">http://www.vtk.org/doc/nightly/html/classvtkImageCroppingRegionsWidget.html</a><br>
&gt; do the trick or not, well I have not found an example for even its<br>
&gt; usefulness, if not exist there any method that meets my needs?<br>
&gt;<br>
&gt; 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>