![]() |
![]() |
![]() |
![]() |
Vector2Raster
Synopsis
convert a vector ROI to a raster mask
V name
Input Ports
Output Ports
vec2rast.GDvector2raster.output
Description
Vector2Raster takes a mesh that represents a vector region(s) of interest (ROIs) and converts it to a raster mask with values of either 0 or 255. This raster mask can then be used as input to many of the image procesing routines.Vector2Raster also provides a user interface that appears in the Module Panel provided by the DataViewer or ModuleStack (as appropriate) and produces a renderable object as output.
Input Ports
GDobject_templ. An optional Graphics Display Kit object whose extents are used to set the extents of the ouput field. If the input does not exist, the extents of the output field are simply the extents of the input mesh.
Parameters
This parameter controls if the area inside or outside the region(s) in the input mesh has a 0 or 255 value in the output field.A value of 1 means the areas inside the mesh are set to 255 and the areas outside the mesh are set to 0 in the output field.A value of 0 means the areas inside the mesh are set to 0 and the areas outside the mesh are set to 255 in the output field.
A string that can be used to filter the region(s) found in the input mesh If the name is null, all regions are processed. If the name has a value, only those regions that have the same name are processed.
Output Port
Field_Unif+Dim2+Space2. The output scalar image that is created from the region(s) in the input mesh.
Example
Libraries.Examples.Graphics_Display.ROIdraw
File
See also related modules
![]() |
![]() |
![]() |
![]() |