

The following example uses the same data as the previous example, using REBIN to resize the image display: Select the file. You can achieve similar results using REBIN, but you need to specify a multiple of the original array size. im2 = IMAGE(magnifiedIm, RGB_TABLE= 28) Resizing to a Multiple of the Image Array Size magnifiedIm = CONGRID(data, 600, 600, /INTERP) Display the magnified image in a new window with a color table. im = IMAGE(data, RGB_TABLE= 28) Use the CONGRID function to increase the image array size to 600 by 600 pixels and force bilinear interpolation. data = READ_BINARY(file, DATA_DIMS=) Use the IMAGE function to display the original image with a color table. file = FILEPATH( 'convec.dat', SUBDIRECTORY=) Use READ_BINARY to read in the data, specifying known data dimensions.
Batch image resizer essential 5.5 code#
The code shown below creates the graphics shown here.Ĭopy the entire code block and paste it into the IDL command line to run it. This example data is available in the examples/data directory of your IDL installation. The following example uses the CONGRID function. CONGRID resizes an array by any arbitrary amount, and REBIN resizes by an integer multiple of the original dimensions.įor more information on how these functions work, see How Image Arrays are Resized. You can shrink or expand one-, two-, or three-dimensional image arrays using the CONGRID and REBIN functions.
