Difference between revisions of "Cropping images"

From MIPAV
Jump to: navigation, search
(Cropping images)
(Cropping images)
Line 54: Line 54:
 
|}
 
|}
  
To crop an image using parameters<br /></font>'''</div><div style="font-style: normal; font-weight: normal; margin-bottom: 0pt; margin-left: 18pt; margin-right: 0pt; margin-top: 6pt; text-align: left; text-decoration: none; text-indent: -18pt; text-transform: none; vertical-align: baseline"><font color="#000000">  1 Open an image.<br /></font></div><div style="font-style: normal; font-weight: normal; margin-bottom: 0pt; margin-left: 18pt; margin-right: 0pt; margin-top: 6pt; text-align: left; text-decoration: none; text-indent: -18pt; text-transform: none; vertical-align: baseline"><font color="#000000">  2 Call Utilities&gt;Crop&gt;Using parameters.<br /></font></div><div style="font-style: normal; font-weight: normal; margin-bottom: 0pt; margin-left: 18pt; margin-right: 0pt; margin-top: 6pt; text-align: left; text-decoration: none; text-indent: -18pt; text-transform: none; vertical-align: baseline"><font color="#000000">  3 The Crop Boundary Pixels dialog box appears, see [MIPAV_Utilities.html#1173255 Figure ].<br /></font></div><div style="font-style: normal; font-weight: normal; margin-bottom: 0pt; margin-left: 18pt; margin-right: 0pt; margin-top: 6pt; text-align: left; text-decoration: none; text-indent: -18pt; text-transform: none; vertical-align: baseline"><font color="#000000">  4 Select either the New image or the Replace image check box to indicate whether the program should display the cropped image in a new image window or replace the original image with the cropped image.<br /></font></div><div style="font-style: normal; font-weight: normal; margin-bottom: 0pt; margin-left: 18pt; margin-right: 0pt; margin-top: 6pt; text-align: left; text-decoration: none; text-indent: -18pt; text-transform: none; vertical-align: baseline"><font color="#000000">  5 Complete the dialog box.<br /></font></div><div style="font-style: normal; font-weight: normal; margin-bottom: 0pt; margin-left: 18pt; margin-right: 0pt; margin-top: 6pt; text-align: left; text-decoration: none; text-indent: -18pt; text-transform: none; vertical-align: baseline"><font color="#000000">  6 Click OK. After a moment, the new image appears.<br /></font></div><div style="font-style: normal; font-weight: normal; margin-bottom: 0pt; margin-left: 0pt; margin-right: 0pt; margin-top: 0pt; text-align: left; text-decoration: none; text-indent: 0pt; text-transform: none; vertical-align: baseline"><font color="#000000"> <br /></font></div><div style="font-style: normal; font-weight: normal; margin-bottom: 0pt; margin-left: 0pt; margin-right: 0pt; margin-top: 0pt; text-align: left; text-decoration: none; text-indent: 0pt; text-transform: none; vertical-align: baseline"><font color="#000000">
+
To crop an image using parameters<br /></font>'''</div><div style="font-style: normal; font-weight: normal; margin-bottom: 0pt; margin-left: 18pt; margin-right: 0pt; margin-top: 6pt; text-align: left; text-decoration: none; text-indent: -18pt; text-transform: none; vertical-align: baseline"><font color="#000000">  1 Open an image.<br /></font></div><div style="font-style: normal; font-weight: normal; margin-bottom: 0pt; margin-left: 18pt; margin-right: 0pt; margin-top: 6pt; text-align: left; text-decoration: none; text-indent: -18pt; text-transform: none; vertical-align: baseline"><font color="#000000">  2 Call Utilities&gt;Crop&gt;Using parameters.<br /></font></div><div style="font-style: normal; font-weight: normal; margin-bottom: 0pt; margin-left: 18pt; margin-right: 0pt; margin-top: 6pt; text-align: left; text-decoration: none; text-indent: -18pt; text-transform: none; vertical-align: baseline"><font color="#000000">  3 The Crop Boundary Pixels dialog box appears, see Figure 18.<br /></font></div><div style="font-style: normal; font-weight: normal; margin-bottom: 0pt; margin-left: 18pt; margin-right: 0pt; margin-top: 6pt; text-align: left; text-decoration: none; text-indent: -18pt; text-transform: none; vertical-align: baseline"><font color="#000000">  4 Select either the New image or the Replace image check box to indicate whether the program should display the cropped image in a new image window or replace the original image with the cropped image.<br /></font></div><div style="font-style: normal; font-weight: normal; margin-bottom: 0pt; margin-left: 18pt; margin-right: 0pt; margin-top: 6pt; text-align: left; text-decoration: none; text-indent: -18pt; text-transform: none; vertical-align: baseline"><font color="#000000">  5 Complete the dialog box.<br /></font></div><div style="font-style: normal; font-weight: normal; margin-bottom: 0pt; margin-left: 18pt; margin-right: 0pt; margin-top: 6pt; text-align: left; text-decoration: none; text-indent: -18pt; text-transform: none; vertical-align: baseline"><font color="#000000">  6 Click OK. After a moment, the new image appears.<br /></font></div><div style="font-style: normal; font-weight: normal; margin-bottom: 0pt; margin-left: 0pt; margin-right: 0pt; margin-top: 0pt; text-align: left; text-decoration: none; text-indent: 0pt; text-transform: none; vertical-align: baseline"><font color="#000000"> <br /></font></div><div style="font-style: normal; font-weight: normal; margin-bottom: 0pt; margin-left: 0pt; margin-right: 0pt; margin-top: 0pt; text-align: left; text-decoration: none; text-indent: 0pt; text-transform: none; vertical-align: baseline"><font color="#000000">
  
 
{| border="1" cellpadding="5"
 
{| border="1" cellpadding="5"

Revision as of 17:40, 15 February 2012

Cropping images

You can use the Crop command on the Utilities menu to trim an image so that only the selected portion of the image remains.
To crop an image using a VOI
1 Open an image.
2 Draw one or more VOI contours on the image on the area that you want to remain in the image. When the utility is run, the area inside the contours remains and the areas outside the contour are discarded from the new dataset.

Figure 16. Contouring the area that should remain in the cropped image

Opthamalogist.jpg


3 Select the VOI or one or more of the contours.
4 Select Utilities > Crop. The Crop dialog box (Figure 17) appears.
5 Type the number of pixels that you want to use for the border size in Border size box. Specify a number from 0 to 50.
6 Select either the New image or the Replace image check box to indicate whether the program should display the cropped image in a new image window or replace the original image with the cropped image.
7 Click OK. After a moment, the new image appears.

Figure 17. The Crop dialog box options

CropUsingVOI.jpg

Border size of VOI:
Border size (0 - 50)
Indicates the width of a strip of voxels that surround (border) the contours. When you crop an image, the area inside the contours and the border remain. All other voxels are trimmed from the image.
Coordinates of VOI
Displays the coordinates for the X, Y, and Z axes of the VOI.
New image
Shows the cropped image in a new image window.
Replace image
Replaces the current active image with the cropped image.
OK
Applies the parameters that you specified to crop the image.
Cancel
Disregards any changes you made in this dialog box, closes the dialog box, and does not crop the image.
Help
Displays online help for this dialog box.
To crop an image using parameters
1 Open an image.
2 Call Utilities>Crop>Using parameters.
3 The Crop Boundary Pixels dialog box appears, see Figure 18.
4 Select either the New image or the Replace image check box to indicate whether the program should display the cropped image in a new image window or replace the original image with the cropped image.
5 Complete the dialog box.
6 Click OK. After a moment, the new image appears.

Figure 18. The Crop Boundary Pixels dialog box options


Pixels around image
Specify the number of pixels which should be cropped.
For 3D images also specify the number of slices at the front and at the back of the image.

CropBoundaryPixel.jpg

Select destination
New Image - shows the cropped image in a new image window.
Replace Image - replaces the current active image with the cropped image.
OK
Applies the parameters that you specified to crop the image.
Cancel
Disregards any changes you made in this dialog box, closes the dialog box, and does not crop the image.
Help
Displays online help for this dialog box.



Masking (filling) images