_BinaryFromMaskND, _BinaryToMask, _DrawAutoDetectROI, _DrawSimpleROI, _IntersectBinaryWithMask, _LoadROI, _MeasROIProperties, _MoveBinaryFromMaskND, _MoveBinaryToMask, _SaveROIAs, _SimpleROIEditor, _TrackingROIEditor, AddMovingROIs, BinaryFromMask, BinaryFromMaskND, BinarySwapMask, BinaryToMask, BinaryToMaskMP, ChangeROIType, ClearMeasROI, ColorizeAllROIObjects, CombineROI, CopyAllROIs, CopyROI, CopyROIToBinaryEx, CreateBezierROI, CreateDocumentFromROI, CreateDocumentFromSelectedROIs, CreateEllipseROI, CreateLineROI, CreatePolygonROI, CreateRectangleROI, DeleteROI, DuplicateROI, ExportTrackedROIsToXML, GetROICount, GetROIIdFromIndex, GetROIIndexFromID, GetROIInfo, GetROIPos, GetSelectedROIs, InflateROI, IntersectBinaryWithMask, IntersectBinaryWithMaskND, InvertROI, InvertROIAdd, KeepROIsWithIntensity, LoadROI, LockROI, MaskEdit, MaskOn, MeasROIProperties, MoveBinaryFromMask, MoveBinaryFromMaskND, MoveBinaryToMask, MoveBinaryToMaskMP, MoveTrackedBinaryToMask, PasteROI, ProfileFromROI, RemoveAllTouchingROIs, RemoveTouchingROIs, RenumberAllROIObjects, ROIFromInvertedGraticule, ROIShowAllTracks, ROIShowLabels, ROIShowStimulationButtons, ROIStatisticsExportRawToExcel, ROIStatisticsExportRawToFile, ROIStatisticsGetData, SaveROIAs, SelectAllROIs, SelectAllVectorsAndROIs, SelectROI, SetROIColor, SetROIPos, SetRoiVisibility, ShowMeasROI, ToggleDecInfo, ToggleMeasROI, ToggleRoi_MolecularCentroid, ToggleSnapToMolecules, TrackedBinaryToMask, TrackingBinaryByID
Description
AddMovingROIs();
This function enables you to measure the movement characteristics of moving ROIs (ROIs which change position over time within one image sequence). Objects defined within the Tracking control window will be erased. The Tracking feature is needed to perform this function.
This function runs the Reference > Binary <- ROI command.
Description
BinaryFromMask();
This function copies the mask image to the current binary image.
See Also
BinaryToReference, BinaryFromReference, BinarySwapReference, BinaryToMask, BinarySwapMask
Interactive command to this function: ROI > Copy ROI to Binary
Description
BinaryFromMaskND(
int NDDimension
);
This function converts the current ROIs to a binary layer. It works on ND document and the dimensions/frames to be affected are defined by the parameter.
Parameters
NDDimension
Frame selection of the ND document.
Current frame | |
Time dimension | |
Multipoint dimension | |
Z dimension | |
All frames (the whole ND document). | |
Selection - the frames/dimensions selected by mouse within the ND control bar will be affected. |
Note
Value combination is also possible (e.g.: M+T=3, Z+T=5, M+Z=6).
Note
Combinations of the NDDimension parameter values are allowed. E.g. 3 stands for MP+T dimension.
This function runs the ROI > Swap Binary with ROI command.
Description
BinarySwapMask();
This function swaps the mask and the current binary images.
See Also
BinaryToReference, BinaryFromMask, BinarySwapReference, BinaryToMask, BinaryFromReference
This function runs the Reference > Binary -> ROI command.
Interactive command to this function: ROI > Copy Binary to ROI
Description
BinaryToMask();
This function copies the current binary image to the mask image.
See Also
BinaryToReference, BinaryFromMask, BinarySwapReference, BinarySwapMask, BinaryFromReference
Description
BinaryToMaskMP();
This function transforms all binary objects of a multipoint ND2 document to ROIs. Each point will contain a different set of ROIs.
Description
ChangeROIType( intRoiId
, intRoiType
);
This function sets the type of the selected ROI. Different ROI types are used for different purposes.
This function runs the ROI > Delete All ROIs command.
Description
ClearMeasROI();
This function erases all ROI objects (the whole measurement ROI).
This function runs the ROI > Colorize command.
Description
ColorizeAllROIObjects();
Resets colors of all ROIs to default.
Description
int CombineROI( char *RoiOp
, intDstRoiId
, intSrcRoiId
);
Performs logical operation (AND, OR, XOR, SUB) between two ROIs (DstRoi and SrcRoi) defined by their IDs. The result of this operation is in DstRoi. All properties (Color, Line thickness) of DstRoi are maintained. SrcRoi is deleted by this operation. If the two ROIs do not overlap, DstRoi is not altered and SrcRoi is deleted.
Parameters
See Also
_DrawSimpleROI, CreateBezierROI, CreateEllipseROI, CreatePolygonROI, CreateRectangleROI, DeleteROI, DuplicateROI, GetROIInfo, InflateROI
This function runs the ROI > Copy All ROIs command.
Description
CopyAllROIs();
This function copies all ROIs to clipboard.
Description
CopyROI();
This function copies the current Measurement ROI area to internal memory.
See Also
PasteROI
Description
CopyROIToBinaryEx( char *BinLayerNameDst
, intRoiId
);
This function enables you to create a binary layer under a selected ROI.
Parameters
Description
int CreateBezierROI( doubleSrcPoints
, intPointsNumber
, dwordColorRGB
);
Creates a new bezier ROI and returns its ID. Array of its nodes must be supplied.
Parameters
SrcPoints
Array of points. Even indices correspond to X coordinates, odd indices correspond to Y coordinates. The size of the array must be twice as big as the number of points.
ColorRGB
The color parameter specifies the color of the ROI. Use predefined color constants (RGB_BLUE (16711680), RGB_CYAN (16776960), RGB_GREEN (65280), RGB_MAGENTA (16711935), RGB_RED (255), RGB_WHITE (16777215), RGB_BLACK (0), RGB_YELLOW (65535) or RGB_DEFAULT (2147483647)) or any RGB value. See RGB function for details.
See Also
_DrawSimpleROI, CreateEllipseROI, CreatePolygonROI, CreateRectangleROI, CombineROI, DeleteROI, DuplicateROI, GetROIInfo, InflateROI, RGB
Description
CreateDocumentFromROI( intRoiId
, intNDTLoop
, intNDMPLoop
, intNDZLoop
);
This function creates a new document based on selected ROI. This new document contains the ROI in selected ND dimensions.
Parameters
This function runs the ROI > Create Documents from Selected ROIs command.
Description
CreateDocumentFromSelectedROIs( intNDTLoop
, intNDMPLoop
, intNDZLoop
);
This function creates one or more new images containing just the area of active ROIs. If a moving ROI or a shape-changing ROI is selected, the minimum area to contain all the ROI positions and shapes will be used.
Parameters
Description
int CreateEllipseROI( intCenterX
, intCenterY
, intWidth
, intHeight
, doubleAngleRot
, dwordColorRGB
);
Creates a new ellipse ROI and returns its ID.
Parameters
AngleRot
Orientation of the X axis (width) of the ROI object. The angle is in degrees rising clockwise.
ColorRGB
The color parameter specifies the color of the ROI. Use predefined color constants (RGB_BLUE (16711680), RGB_CYAN (16776960), RGB_GREEN (65280), RGB_MAGENTA (16711935), RGB_RED (255), RGB_WHITE (16777215), RGB_BLACK (0), RGB_YELLOW (65535) or RGB_DEFAULT (2147483647)) or any RGB value. See RGB function for details.
See Also
_DrawSimpleROI, CreateBezierROI, CreatePolygonROI, CreateRectangleROI, CombineROI, DeleteROI, DuplicateROI, GetROIInfo, InflateROI, RGB
Description
CreateLineROI( doubleX1
, doubleY1
, doubleX2
, doubleY2
, dwordColorRGB
);
Creates a new line ROI and returns its ID. The start and the end point must be defined.
Parameters
ColorRGB
The color parameter specifies the color of the ROI. Use predefined color constants (RGB_BLUE (16711680), RGB_CYAN (16776960), RGB_GREEN (65280), RGB_MAGENTA (16711935), RGB_RED (255), RGB_WHITE (16777215), RGB_BLACK (0), RGB_YELLOW (65535) or RGB_DEFAULT (2147483647)) or any RGB value. See RGB function for details.
See Also
RGB
Description
int CreatePolygonROI( doubleSrcPoints
, intPointsNumber
, dwordColorRGB
);
Creates a new polygon ROI and returns its ID. Array of its vertices must be supplied.
Parameters
SrcPoints
Array of points. Even indices correspond to X coordinates, odd indices correspond to Y coordinates. The size of the array must be twice as big as the number of points.
ColorRGB
The color parameter specifies the color of the ROI. Use predefined color constants (RGB_BLUE (16711680), RGB_CYAN (16776960), RGB_GREEN (65280), RGB_MAGENTA (16711935), RGB_RED (255), RGB_WHITE (16777215), RGB_BLACK (0), RGB_YELLOW (65535) or RGB_DEFAULT (2147483647)) or any RGB value. See RGB function for details.
See Also
_DrawSimpleROI, CreateBezierROI, CreateEllipseROI, CreateRectangleROI, CombineROI, DeleteROI, DuplicateROI, GetROIInfo, InflateROI, RGB
Description
int CreateRectangleROI( intCenterX
, intCenterY
, intWidth
, intHeight
, doubleAngleRot
, dwordColorRGB
);
Creates a new rectangle ROI and returns its ID.
Parameters
AngleRot
Orientation of the X axis (width) of the ROI object. The angle is in degrees rising clockwise.
ColorRGB
The color parameter specifies the color of the ROI. Use predefined color constants (RGB_BLUE (16711680), RGB_CYAN (16776960), RGB_GREEN (65280), RGB_MAGENTA (16711935), RGB_RED (255), RGB_WHITE (16777215), RGB_BLACK (0), RGB_YELLOW (65535) or RGB_DEFAULT (2147483647)) or any RGB value. See RGB function for details.
See Also
_DrawSimpleROI, CreateBezierROI, CreateEllipseROI, CreatePolygonROI, CombineROI, DeleteROI, DuplicateROI, GetROIInfo, InflateROI, RGB
Description
DeleteROI(
int RoiId
);
Removes one ROI from the current image.
See Also
_DrawSimpleROI, ClearMeasROI, CreateBezierROI, CreateEllipseROI, CreatePolygonROI, CreateRectangleROI, DuplicateROI, GetROIInfo, GetROIIdFromIndex, InflateROI
Description
int DuplicateROI( intRoiId
, intDeltaX
, intDeltaY
, dwordColorRGB
);
This function creates a copy of the specified ROI.
Parameters
ColorRGB
The color parameter specifies the color of the ROI. Use predefined color constants (RGB_BLUE (16711680), RGB_CYAN (16776960), RGB_GREEN (65280), RGB_MAGENTA (16711935), RGB_RED (255), RGB_WHITE (16777215), RGB_BLACK (0), RGB_YELLOW (65535) or RGB_DEFAULT (2147483647)) or any RGB value. See RGB function for details.
See Also
_DrawSimpleROI, CreateBezierROI, CreateEllipseROI, CreatePolygonROI, CreateRectangleROI, CombineROI, DeleteROI, GetROIInfo, InflateROI, RGB
Description
ExportTrackedROIsToXML( char *OutputFolder
, char *XMLFilename
, char *BDMLId
, char *Title
, char *Version
, char *Release
, char *Description
, char *DataType
, char *Organism
, char *BasedOn
, char *Contributors
, char *ContactName
, char *Organization
, char *Summary
);
Exports tracked ROIs from a timelapse document to a selected folder as a .xml file (BDML format). The resulting .xml file contains entered user metadata and a list of individual ROIs (description of their contour and affiliation to a track). Affiliation to a track is based on the ROI ID. By default, the title parameter uses a file name.
Parameters
Description
int GetROICount();
Returns the number of visible ROIs in the image.
See Also
ShowMeasROI, GetROIIdFromIndex, SelectROI
Description
int GetROIIdFromIndex(
int RoiIndex
);
Returns the ID of the n-th visible ROI.
Parameters
int i, id; int count; count = GetROICount(); for (i = 0; i<count; ++i) { id = GetROIIdFromIndex(i); SelectROI(id, TRUE); }
See Also
GetROICount, GetROIIndexFromID
Description
int GetROIIndexFromID(
int RoiId
);
Returns the index of the ROI among visible ROIs in the image.
Return Values
See Also
GetROICount, GetROIIdFromIndex
Description
GetROIInfo( intRoiId
, int *LpBBoxL
, int *LpBBoxT
, int *LpBBoxR
, int *LpBBoxB
, int *LpCenterX
, int *LpCenterY
, int *LpMinFeret
, int *LpMaxFeret
, double *LpRotation
, dword *lpColorRGB
);
This function retrieves parameters of a given ROI specified by its ID.
Parameters
See Also
_DrawSimpleROI, CreateBezierROI, CreateEllipseROI, CreatePolygonROI, CreateRectangleROI, CombineROI, DeleteROI, DuplicateROI, InflateROI
Description
GetROIPos( intRoiId
, int *pPosX
, int *pPosY
);
Returns the position (coordinate of the top-left corner of the bounding rectangle around the ROI) of one ROI in the current image. The parameters are filled on output.
Parameters
See Also
GetROIIdFromIndex, SetROIPos
Description
GetSelectedROIs(
int *LpRoiId
);
This function returns names of the selected ROIs.
Description
InflateROI( intRoiId
, intDeltaX
, intDeltaY
);
This function stretches (inflates or deflates) the specified ROI according to the parameters.
Parameters
See Also
_DrawSimpleROI, CreateBezierROI, CreateEllipseROI, CreatePolygonROI, CreateRectangleROI, CombineROI, DeleteROI, DuplicateROI, GetROIInfo
Description
IntersectBinaryWithMask();
The function intersects all selected (visible) binary layers with a ROI mask.
See Also
_IntersectBinaryWithMask, IntersectBinaryWithMaskND
Description
IntersectBinaryWithMaskND( intNDTLoop
, intNDMPLoop
, intNDZLoop
);
The function intersects all selected (visible) binary layers with a ROI mask.
Parameters
Description
InvertROIAdd();
The current ROI(s) are inverted and this inversion is inserted into the image as a new ROI.
Description
KeepROIsWithIntensity( intMinIntensity
, intMaxIntensity
);
This function deletes ROIs with intensity outside the range defined by the MinIntensity and MaxIntensity parameters.
Interactive command to this function: ROI > Load ROI
Description
LoadROI( char *Filename
, intFitROI
);
This function loads a region of interest previously saved to a bitmap image by the SaveROIAs function.
Description
LockROI( intRoiId
, intEnabled
);
This function locks the selected ROI to prevent unwanted changes and shifts in position.
1 = locked ROI.
This function runs the ROI > Raster ROI Editor command.
Description
MaskEdit();
This function displays the Tool window and allows the mask image editing.
See Also
ImageEdit
Description
MaskOn(
int Mask
);
This function activates or deactivates mask. This function is called from the Mask On command (Measure menu).
See Also
MeasureField, ScanObjects, MeasFrame
Description
MeasROIProperties( intMeasROIColor
, doubleMeasROILineWidth
, intMeasROIFillColor
, intMeasROIOpacity
);
This function sets the visual properties of the measurement ROI.
Parameters
Description
MoveBinaryFromMask();
This function creates binary objects in a binary layer from ROIs.
Interactive command to this function: ROI > Move ROI to Binary
Description
MoveBinaryFromMaskND(
int NDDimension
);
This function creates binary objects in a binary layer from ROIs.
Parameters
NDDimension
Frame selection of the ND document.
Current frame | |
Time dimension | |
Multipoint dimension | |
Z dimension | |
All frames (the whole ND document). | |
Selection - the frames/dimensions selected by mouse within the ND control bar will be affected. |
Note
Value combination is also possible (e.g.: M+T=3, Z+T=5, M+Z=6).
Interactive command to this function: ROI > Move Binary to ROI
Description
MoveBinaryToMask();
This function moves the current binary image to the Measurement ROI.
See Also
BinaryToMask
Description
MoveBinaryToMaskMP();
This function moves current binary image to Measurement ROI in all points of a multipoint image.
Description
MoveTrackedBinaryToMask();
Converts the selected tracked binaries into ROIs.
Note
This function requires tracked binaries or one binary over all frames.
This function runs the ROI > Paste ROI command.
Description
PasteROI();
This function pastes the Measurement ROI area (copied to internal memory via the CopyROI function) to the current image. The current Measurement ROI will be replaced.
Description
ProfileFromROI( intProfileFromMedialAxis
, intRoiId
);
Creates a profile line from the selected ROI and displays it inside the Intensity Profile tab.
This function runs the ROI > ROI from Inverted Graticules command.
Description
ROIFromInvertedGraticule();
Replaces all ROIs on the current image with the new ROIs created from the current graticule. This function is recommended to use only with rectangular, circle or simple circle graticule types.
Description
ROIShowAllTracks(
int ShowMeasROI
);
If multiple moving ROIs are defined, the trajectory of the currently selected ROI is displayed by default. This function displays trajectories of all moving ROIs at once.
This function runs the ROI > Show/Hide ROI Labels command.
Description
ROIShowLabels(
int ShowMeasROI
);
This function hides/displays the ROI labels of the current image.
Description
ROIShowStimulationButtons(
int ShowMeasROI
);
If a ROI is assigned to the current stimulation device, this function can be used to turn on the stimulation buttons during live.
Description
ROIStatisticsExportRawToExcel();
This function exports the data of ROI Statistics control window to MS Excel (if installed). It opens Excel and inserts the data to a table.
Description
ROIStatisticsExportRawToFile(
char *Path
);
This function exports the data of the ROI Statistics control window to a text file.
Description
ROIStatisticsGetData( intRoiStatBin
, intRoiStatRow
, double *RoiStatData
, int *lpunit
);
This function retrieves data from the ROI Statistics table.
Parameters
Note
Returns “-1” for non-dimensional data.
This function runs the ROI > Remove All ROIs Touching Image Borders command.
Description
RemoveAllTouchingROIs();
This function removes all ROIs touching the image border.
Description
RemoveTouchingROIs();
This function removes only selected ROIs touching the image borders.
This function runs the ROI > Renumber command.
Description
RenumberAllROIObjects();
This function renumbers all ROIs, when some of them were deleted, to keep numbering continuity.
Interactive command to this function: ROI > Save ROI As
Description
SaveROIAs(
char *Filename
);
This function saves the current Measurement ROI as a tif/png/bmp file.
Description
SelectAllROIs(
int RoiSelect
);
Selects or deselects all visible ROIs in the image.
See Also
SelectROI
Description
SelectROI( intRoiId
, intRoiSelect
);
Sets the selection state of the ROI. Please note that selecting one ROI does not automatically deselect the other ROIs.
See Also
SelectAllROIs, GetROICount
Description
SetROIColor( intRoiId
, dwordColorRGB
);
Sets the position of one ROI in the current image.
Parameters
ColorRGB
The color parameter specifies the color of the ROI. Use predefined color constants (RGB_BLUE (16711680), RGB_CYAN (16776960), RGB_GREEN (65280), RGB_MAGENTA (16711935), RGB_RED (255), RGB_WHITE (16777215), RGB_BLACK (0), RGB_YELLOW (65535) or RGB_DEFAULT (2147483647)) or any RGB value. See RGB function for details.
Description
SetROIPos( intRoiId
, intPosX
, intPosY
);
Sets the position (top-left corner) of one ROI in the current image.
See Also
GetROIIdFromIndex
Description
SetRoiVisibility(
int RoiSelect
);
This function sets the visibility of the ROI.
Description
ShowMeasROI(
int ShowMeasROI
);
This function hides/displays the Measurement Region of Interest layer of the current image.
This function runs the View > Layers > Measurement ROI command.
Description
ToggleMeasROI();
This function can hide/display the Measurement Region of Interest layer in the picture. It corresponds to the Measurement ROI button of the document window.
Description
ToggleRoi_MolecularCentroid();
Turns the molecular centroid on/off.
Description
ToggleSnapToMolecules();
Turns the Snap to Molecules function on/off. If this function is on, hovering over a molecule displays a symbol indicating which molecule is the nearest.
Description
TrackedBinaryToMask();
This function converts binary objects previously processed by automatic tracking to ROI objects. ROIs “changing over time” are created.
See Also
TrackBinaries
Description
TrackingBinaryByID();
Binary objects may be used as the source data for the Tracking algorithm. This function performs the tracking using binary objects IDs (object #1 is tracked throughout the image sequence, etc.). The binary IDs are created by indexing binary objects of each frame “dully” from top-left to bottom-right corner.
This function runs the ROI > Copy ROI to Binary command.
Description
_BinaryFromMaskND();
This function opens a window where it is possible to select frames (dimensions) which will be affected by the function. Once you press
, a binary layer will be created from the current ROI.See Also
BinaryFromMaskND
This function runs the ROI > Copy Binary to ROI command.
Description
_BinaryToMask();
This function copies the binary image to the ROI.
This function runs the ROI > Auto Detect ROI command.
Description
int _DrawAutoDetectROI();
This function switches mouse cursor to the ROI auto-detection mode. A ROI is created after user interaction.
Description
_DrawSimpleROI(
int ProbeObjectType
);
This function switches NIS-Elements to a mode of drawing the Measurement ROI. The parameter selects its shape.
Parameters
Description
_IntersectBinaryWithMask();
This function intersects all selected (visible) binary layers with ROI mask. On a ND document it shows a dialog with dimensions and calls the appropriate function.
This function runs the ROI > Load ROI command.
Description
_LoadROI();
This function displays the Open Image dialog window. A previously saved Measurement ROI image can be loaded via this dialog.
Description
_MeasROIProperties();
This function displays the Measurement ROI Properties dialog window. Border line color, its width, fill color, and opacity can be set from that window.
This function runs the ROI > Move ROI to Binary command.
Description
_MoveBinaryFromMaskND();
This function moves the ROI to the current binary image.
This function runs the ROI > Move Binary to ROI command.
Description
_MoveBinaryToMask();
This function moves current binary image to the Measurement ROI.
This function runs the ROI > Save ROI As command.
Description
_SaveROIAs();
This function displays the Save As dialog box from where the current Measurement ROI can be saved as a tif/png/bmp file.
This function runs the ROI > Simple ROI Editor command.
Description
_SimpleROIEditor();
It starts the simplified ROI editor allowing user to draw new ROIs.