crop and downsize

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.

Ports

DirectionNameTypeDescription
InputInput FieldFieldThe field to use for subsetting.
OutputOutput FieldFieldThe subset field.
OutputOutput ObjectRenderableA renderable object to display.

Properties

PropertyTypeDescription
Min IIntegerThe Minimum I is the minimum extent for cropping in the I direction.
Max IIntegerThe Maximum I is the maximum extent for cropping in the I direction.
Down Size IIntegerThe Down Size I control will set a factor for decreasing resolution in the I direction.
Min JIntegerThe Minimum J is the minimum extent for cropping in the J direction.
Max JIntegerThe Maximum J is the maximum extent for cropping in the J direction.
Down Size JIntegerThe Down Size J control will set a factor for decreasing resolution in the J direction.
Min KIntegerThe Minimum K is the minimum extent for cropping in the K direction.
Max KIntegerThe Maximum K is the maximum extent for cropping in the K direction.
Down Size KIntegerThe Down Size K control will set a factor for decreasing resolution in the K direction.