#include "BIVISION.H"
WORD ** CALLBACK SelectRegion( WORD ** RegionMatrix,
int Width,
int Height
WORD RegNum,
int * StartX,
int * StartY,
long * NumOfRegPixels)
Description
Selects the specified region from the input region matrix. Returns another Region matrix, where all of the specified region pixels are marked with 1, and all the others with zero.
Parameters
|
WORD ** |
RegionMatrix |
The input region matrix. |
|
int |
Width |
Width of the input region matrix. |
|
int |
Height |
Height of the input region matrix. |
|
WORD |
RegNum |
Specified region label to be selected. |
|
int * |
StartX |
If this parameter is not NULL, it returns the first region pixel’s X coordinate. First pixel is determined from the left to right and up to down. |
|
int * |
StartY |
If this parameter is not NULL, it returns the first region pixel’s Y coordinate. First pixel is determined from the left to right and up to down. |
|
long * |
NumOfRegPixels |
If this parameter is not NULL, it returns the number of the specified region pixels. |
Return values
Handler of the generated Region Matrix or NULL on error.
Requirements
Header : Declared in BiVision.h; include BiVision.h.
Library : Use BiVision.lib.
DLLs : BiVision.dll.