crop_and_downsize
The crop_and_downsize module is used to subset an image, or structured 1D, 2D or 3D mesh (an EVS "field" data type with implicit connectivity). Similar to cropping and resizing a photograph, crop_and_downsize sets ranges of cells in the I, J and K directions which create a subset of the data. When used on an image (which only has two dimensions), crop removes pixels along any of the four edges of the image. Additionally, crop_and_downsize reduces the resolution of the image or grid by an integer downsize value. If the resolution divided by this factor yields a remainder, these cells are dropped.
crop_and_downsize refers to I, J, and K dimensions instead of x-y-z. This is done because grids are not required to be parallel to the coordinate axes, nor must the grid rows, columns and layers correspond to x, y, or z. You may have to experiment with this module to determine which coordinate axes or model faces are being cropped or downsized.
Module Input Ports
- Input Field [Field] Accepts a data field.
Module Output Ports
- Output Field [Field] Outputs the subsetted field
- Output Object [Renderable]: Outputs to the viewer.