public class SoLocalMaximaQuantification extends SoImageVizEngine
SoLocalMaximaQuantification
engine
The SoLocalMaximaQuantification
engine extracts the local maxima of an image using a neighborhood analysis.
Input_Image[i,j] is a local maximum if the 2 conditions below apply:
1. Considering k in [1,p], l in [1,q] and m in [-p,p], InputImage(i,j) verifies:
InputImage( i, j) > InputImage(i + m, j - l)
InputImage( i, j) > InputImage(i - k, j)
InputImage(i, j) >= InputImage(i + k, j)
InputImage(i, j) >= InputImage(i + m, j + l)
2. Input_Image[i,j] is higher than a specified threshold
InputImage(i, j) >= threshold
Examples:
Example 1:
Input parameters: p=0, q=0, threshold=4, number=50.
The local maxima will be the points higher or equal to 4.
Number of local maxima detected: 7
Positions of the local maxima:
(7,3) (6,5) (5,7) (6,7) (6,8) (2,9) (6,9)
This corresponds to a threshold.
Example 2: Input parameters:p=1, q=1, threshold=3, number=50.
Number of local maxima detected: 4
Positions of the local maxima: (7,3) (6,5) (5,7) (2,9)
Remark: If there is an area in the image at constant level, the engine returns the upper left corner of this area. The other points of the area are not considered as �local maxima�.
Example 3: Input parameters: p=2, q=2, threshold=3, number=50.
Number of local maxima detected: 2
Positions of the local maxima: (7,3) (5,7)
Remark: The algorithm is not performed on the image border depending on n and m values. That is the reason why the point (2,9) is not considered as a local maximum.
Local Maximum Sub-Pixel Position Determination:
On example 3, the algorithm detects 2 local maxima. The positions are converted to sub-pixel positions:
X Sub-pixel Position Determined by Parabola Approximation
Y Sub-pixel Position Determined by Parabola Approximation
File format/default:
LocalMaximaQuantification {
computeMode | MODE_AUTO |
inGrayImage | NULL |
localWindow | 3 3 3 |
thresholdLevel | 0.0f |
precisionMode | PIXEL |
numberOfPatterns | 1 |
Library references: maxextract maxextract3d
Modifier and Type | Class and Description |
---|---|
static class |
SoLocalMaximaQuantification.PrecisionModes |
static class |
SoLocalMaximaQuantification.SbLocalMaximaDetail
Results details of
SoLocalMaximaQuantification . |
SoImageVizEngine.ComputeModes, SoImageVizEngine.EventArg, SoImageVizEngine.Neighborhood3ds
Inventor.ConstructorCommand
Modifier and Type | Field and Description |
---|---|
SoSFEnum<SoImageVizEngine.ComputeModes> |
computeMode
Select the compute Mode (2D or 3D or AUTO) .
|
SoSFImageDataAdapter |
inGrayImage
Enter input grey level image Default value is NULL.
|
SoSFVec3i32 |
localWindow
The neighborhood size in X, Y and Z.
|
SoSFInt32 |
numberOfPatterns
The number of patterns to be detected.
|
SoImageVizEngineAnalysisOutput<SoLocalMaximaQuantification.SbLocalMaximaDetail> |
outResult
The matching results.
|
static int |
PIXEL
Deprecated.
Use
SoLocalMaximaQuantification.PrecisionModes.PIXEL instead. |
SoSFEnum<SoLocalMaximaQuantification.PrecisionModes> |
precisionMode
Select the precision mode of position.
|
static int |
SUB_PIXEL
Deprecated.
Use
SoLocalMaximaQuantification.PrecisionModes.SUB_PIXEL instead. |
SoSFFloat |
thresholdLevel
Threshold.
|
CONNECTIVITY_18, CONNECTIVITY_26, CONNECTIVITY_6, MODE_2D, MODE_3D, MODE_AUTO, onBegin, onEnd, onProgress
VERBOSE_LEVEL, ZeroHandle
Constructor and Description |
---|
SoLocalMaximaQuantification()
Constructor.
|
abortEvaluate, isEvaluating, startEvaluate, waitEvaluate
copy, getByName, getOutput, getOutputName
copyFieldValues, copyFieldValues, enableNotify, fieldsAreEqual, get, getAllFields, getEventIn, getEventOut, getField, getFieldName, hasDefaultValues, isNotifyEnabled, set, setToDefaults
dispose, getEXTERNPROTO, getName, getPROTO, isDisposable, isSynchronizable, setName, setSynchronizable, touch
getAddress, getNativeResourceHandle, startInternalThreads, stopInternalThreads
@Deprecated public static final int PIXEL
SoLocalMaximaQuantification.PrecisionModes.PIXEL
instead.@Deprecated public static final int SUB_PIXEL
SoLocalMaximaQuantification.PrecisionModes.SUB_PIXEL
instead.public final SoSFEnum<SoImageVizEngine.ComputeModes> computeMode
public final SoSFImageDataAdapter inGrayImage
public final SoSFVec3i32 localWindow
SbVec3i32(3,3,3)
.public final SoSFFloat thresholdLevel
public final SoSFEnum<SoLocalMaximaQuantification.PrecisionModes> precisionMode
public final SoSFInt32 numberOfPatterns
public final SoImageVizEngineAnalysisOutput<SoLocalMaximaQuantification.SbLocalMaximaDetail> outResult
Generated on January 23, 2025, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com