Vector2Raster


Synopsis

convert a vector ROI to a raster mask

V name

GDM.Vector2Raster

Input Ports

in_field

Mesh

obj_in

GDobject_temp

Output Ports

vec2rast.GDvector2raster.output

Field_Unif

vect2rast.DataObject.obj

DefaultObject

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

in_field

Mesh. The input mesh to converted to a raster mask.

obj_in

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

inside

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.

name

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 Ports

output

Field_Unif+Dim2+Space2. The output scalar image that is created from the region(s) in the input mesh.

obj

A renderable object that can be connected to a viewer for display.

Example

Libraries.Examples.Graphics_Display.ROIdraw

File

v/view.v

See also

For more information, see: