<div dir="ltr"><div style="font-family:arial,sans-serif;font-size:13px">Hello,</div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">
I am trying to read a DICOM series with ITK and display with VTK in QVTKWidget, so I want to build a tool with Qt  that allows  to make a crop (such as crop tool in photoshop), this tool lets you select a region on the first image of the series then apply the dimensions of the selection of all images in the DICOM series.</div>
<div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">First, I tested a sample crop without Qt in this link: <a href="http://www.vtk.org/Wiki/ITK/Examples/ImageProcessing/CropImageFilter" target="_blank">http://www.vtk.org/Wiki/ITK/Examples/ImageProcessing/CropImageFilter</a></div>
<div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">  I also tested a sample program that supports drawing a rectangle on an image using <a href="http://www.vtk.org/doc/release/5.2/html/a00120.html" title="place a border around a 2D rectangular region" target="_blank" style="color:rgb(42,55,152);font-weight:bold;font-family:Geneva,Arial,Helvetica,sans-serif;font-size:14.399999618530273px">vtkBorderWidget</a> even without Qt: <a href="http://public.kitware.com/cgi-bin/viewcvs.cgi/*checkout*/Widgets/Testing/Cxx/TestBorderWidget.cxx?root=VTK&amp;content-type=text/plain" target="_blank">http://public.kitware.com/cgi-bin/viewcvs.cgi/*checkout*/Widgets/Testing/Cxx/TestBorderWidget.cxx?root=VTK&amp;content-type=text/plain</a></div>
<div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">I want to know is that <a href="http://www.vtk.org/doc/release/5.2/html/a00120.html" title="place a border around a 2D rectangular region" target="_blank" style="color:rgb(42,55,152);font-weight:bold;font-family:Geneva,Arial,Helvetica,sans-serif;font-size:14.399999618530273px">vtkBorderWidget</a> is a good method for a selection tool, or there is another way to select an area by a rectangle through the manipulation of the mouse?</div>
<div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">if the method of <a href="http://www.vtk.org/doc/release/5.2/html/a00120.html" title="place a border around a 2D rectangular region" target="_blank" style="color:rgb(42,55,152);font-weight:bold;font-family:Geneva,Arial,Helvetica,sans-serif;font-size:14.399999618530273px">vtkBorderWidget</a> is good, how can I keep only the area that I had selected?(as  crop tool in photoshop).</div>
<div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">I hope  that my problem is clear. thank you in advance.</div></div>