DefectProfile
Gets defect profile
int DefectProfile(
const IMAGE *image,
const BYTE *model,
const int elmSize,
const int color,
double *defect,
double *positionX,
double *positionY,
float *profile
)
Parameters
*image
|
Image data structure address
|
*model
|
Model data storage space address
|
elmSize
|
Element size
Data: 4/8/12/16/24/32/64
Range: 0-6 (corresponding to the above values)
|
color
|
Defect color (For monochrome)
0:Both white/black
1:White
2:Black
|
*defect
|
Defect level (measurement result)
|
*positionX
|
Defect coordinate (measurement result)
|
*positionY
|
Defect coordinate (measurement result)
|
*profile
|
Profile data (measurement result)
|
Return Value
NORMAL(0): Successful completion
ERROR(-1): Unsuccessful completion
Description
Gets the defect profiles with the specified parameters.
Profiles can be obtained only for the models which are created with "wide straight line", "wide circumference" and "wide arc". You cannot obtain one for an arbitrary region figure such as "rectangle".
Notes