CopyRegion copies (with an optional conversion of data types) all or part of a data set to a new data set. CopyRegion's user interface uses the same set of controls for selecting and processing a region as other Priism applications. The other controls are used when the new data set is written to a window. The RGB toggle selects whether multiple wavelengths are displayed simultaneously as different color components in a single image or if images contain a single wavelength in pseudocolor. The AutoScl and Restore buttons as well as the fields for the scaling on each wave select how the data is mapped to the pixel values displayed in the image.
When used to open a complete data set in an image window, CopyRegion is very similar to ViewFile. The difference is that CopyRegion makes a copy of the data in memory (and scratch space on the local file system) while ViewFile only loads the data as needed and does not have to keep a copy (though it may do so while space is available). The effect of these differences is that ViewFile returns control to the user more quickly, but once control is returned, the initial access to the data and images is faster when CopyRegion is used. Using CopyRegion instead of ViewFile also increases the amount of memory and disk space that Priism uses.
Overview | Region processing | RGB | AutoScl | Restore | Wave scales | Conversions | Command line
Priism | ViewFile | Scale values
When the output of CopyRegion is written to an image window, select this toggle to have the data displayed with multiple wavelengths combined to form a single image. Up to three wavelengths can be displayed simultaneously with each wavelength assigned a different primary color (red, green, or blue). If the toggle is not selected, wavelengths are not superimposed and the image is shown in pseudocolor (typically shades of grey). The RGB toggle only affects how the data is displayed initially; use the controls on the image window to switch between the display mades after CopyRegion has written the data.
Overview | Region processing | RGB | AutoScl | Restore | Wave scales | Conversions | Command line
Select this toggle when you want each section, when copied to an image window, to be displayed in such a way that the range of data values in the section maps to the full range of image values. The default scaling parameters for each wave will still be those set from the wave scaling controls, but each section will have its own scaling parameters set and those defaults won't take effect.
Overview | Region processing | RGB | AutoScl | Restore | Wave scales | Conversions | Command line
Use this button to load the wave scaling values that had been used previously with the input data set and had been saved from the image window's Scale function.
Overview | Region processing | RGB | AutoScl | Restore | Wave scales | Conversions | Command line
When CopyRegion writes its output to a window and the AutoScl toggle is not on, these values set how the data is mapped to the quantities shown in the image. For details about how this mapping is done, see the "Scaling Values" topic in the documentation for the image window's Scale application.
If CopyRegion's input is a window, the default scale values are those for that window. When the input is a file, the default scale values are drawn from the minimum and maximum values recorded in the file's header. If you have looked at a file before and saved the scale parameters used (the documentation for Scale describes how to do this), you can use the Restore button to load those scale parameters.
Overview | Region processing | RGB | AutoScl | Restore | Wave scales | Conversions | Command line
By default, the data type of the output from CopyRegion is the same as the data type of the input. If the output data type (selected with the Mode control) is not the default, then a conversion is done. There are three special cases for the conversion process:
Overview | Region processing | RGB | AutoScl | Restore | Wave scales | Conversions | Command line
CopyRegion accepts the command-line arguments described in Region.html. In addition, it has the following options (parts in brackets are optional):
-autoscale
-restore_scale
-rgb
-scl1=bound1[:bound2[:exp[:flag]]]
-autoscale; they may also be overrided
when you use -restore_scale. There are similar options
(-scl2, -scl3, -scl4, and
-scl5) to set the scaling for the output from other input
wavelengths.
As an example, the following copies the first two wavelengths from fish.dat into window 3 using a reversed scaling between 500 and 2500 for the first wavelength and a scaling between 700 and 3000 with a gamma correction factor of 0.5 for the second wavelength:
CopyRegion fish.dat 3 -w=0:1 -scl1=2500:500 -scl2=700:3000:0.5
Overview | Region processing | RGB | AutoScl | Restore | Wave scales | Conversions | Command line