DensityMaxMin
Measures max/min density
int DensityMaxMin(
const IMAGE *image,
const BYTE *model,
int *max,
int *min
)
Parameters
*image
|
Image data structure address
|
*model
|
Model data
|
*max
|
Maximum value (measurement result)
|
*min
|
Minimum value (measurement result)
|
Return Value
NORMAL(0): Successful completion
ERROR(-1): Unsuccessful completion
Description
Performs the density maximum/minimum measurement of an arbitrary area with the specified parameters.
For the RGB color images, you need to allocate the spaces of int x 3 and pass them to the address specified in "max" and "min".
For gray
|
max[0]
|
Density maximum value
|
min[0]
|
Density minimum value
|
For RGB color
|
max[0]
|
R density maximum value
|
max[1]
|
G density maximum value
|
max[2]
|
B density maximum value
|
min[0]
|
R density minimum value
|
min[1]
|
G density minimum value
|
min[2]
|
B density minimum value
|
Notes