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
| Direction | Name | Type | Description |
|---|---|---|---|
| Input | Input Field | Field | The field to use for subsetting. |
| Output | Output Field | Field | The subset field. |
| Output | Output Object | Renderable | A renderable object to display. |
Properties
| Property | Type | Description |
|---|---|---|
| Min I | Integer | The Minimum I is the minimum extent for cropping in the I direction. |
| Max I | Integer | The Maximum I is the maximum extent for cropping in the I direction. |
| Down Size I | Integer | The Down Size I control will set a factor for decreasing resolution in the I direction. |
| Min J | Integer | The Minimum J is the minimum extent for cropping in the J direction. |
| Max J | Integer | The Maximum J is the maximum extent for cropping in the J direction. |
| Down Size J | Integer | The Down Size J control will set a factor for decreasing resolution in the J direction. |
| Min K | Integer | The Minimum K is the minimum extent for cropping in the K direction. |
| Max K | Integer | The Maximum K is the maximum extent for cropping in the K direction. |
| Down Size K | Integer | The Down Size K control will set a factor for decreasing resolution in the K direction. |