GDvector2raster


Synopsis

define a module to convert a vector ROI to a raster mask

GDvector2raster_notify_templ


group GDvector2raster_notify_templ {
Mesh+Iparam &input;
int inside;
string name;
Field_Unif+Dim2+Space2+Oparam output;
method+notify_val upd_func = "GDvector2raster_update";
};

 

GDvector2raster_templ


GDvector2raster_notify_templ GDvector2raster_templ {
GDobject_templ+IPort2 &obj_in;
};

 

GDvector2raster


GDvector2raster_templ GDvector2raster {
inside = 1;
};

Description

These templates define a module that converts a mesh representing vector region(s) of interest (ROIs) into 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.

Input Ports

input

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: 1 means the areas inside the mesh get a value of 255 in the output field; 0 means the areas outside the mesh get a value of 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.

Example

Libraries.Graphics_Display.Interactivity.UI_Interactivity.Vector2Raster

File

v/gd.v

See also

For more information, see: