Cropimage: Difference between revisions
imported>Scott (New page: ===Purpose=== Crop an image DataSet based on PlotGUI selection ===Synopsis=== :xsub = cropimage(x) :xsub = cropimage(x,fig) :xsub = cropimage(x,range) ===Description=== Crops an image usin...) |
imported>Scott |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
===Purpose=== | ===Purpose=== | ||
Crop an image DataSet based on PlotGUI selection | Crop an image DataSet based on PlotGUI selection. | ||
===Synopsis=== | ===Synopsis=== | ||
:xsub = cropimage(x) | :xsub = cropimage(x) | ||
Line 16: | Line 17: | ||
The output (xsub) is the cropped image. The description field contains the original pixels extracted. | The output (xsub) is the cropped image. The description field contains the original pixels extracted. | ||
===See Also=== | ===See Also=== | ||
[[buildimage]], [[imageload]], [[plotgui]] | [[buildimage]], [[imageload]], [[plotgui]], [[transpose_img]] |
Latest revision as of 09:43, 16 October 2009
Purpose
Crop an image DataSet based on PlotGUI selection.
Synopsis
- xsub = cropimage(x)
- xsub = cropimage(x,fig)
- xsub = cropimage(x,range)
Description
Crops an image using either a selection made on a PlotGUI figure or the indices provided by the user. The first input is always (x) an image dataset object. There are three modes for cropping:
(1) If no inputs are provided, CROPIMAGE will give a window from which the user can "Select" a region to crop to. Click on "Select", mark the region to keep, then click on "Crop" to finish the cropping. (2) If a selection has already been made on an existing PlotGUI image, the figure number of that figure can be passed to perform an immediate crop to the selected region. (3) A vector can be provided as (range) which gives the range of x and y pixels to use to crop the image. (range) must be in the form: [ x_min x_max y_min y_max ]
The output (xsub) is the cropped image. The description field contains the original pixels extracted.