Package boofcv.alg.disparity.block
Class BlockRowScoreNcc.F32
java.lang.Object
boofcv.alg.disparity.block.BlockRowScore.ArrayF32<GrayF32>
boofcv.alg.disparity.block.BlockRowScore.ArrayS32_BF32
boofcv.alg.disparity.block.BlockRowScoreNcc.F32
- All Implemented Interfaces:
BlockRowScore<GrayF32,
float[], float[]>
- Enclosing class:
- BlockRowScoreNcc<T extends ImageBase<T>>
-
Nested Class Summary
Nested classes/interfaces inherited from interface boofcv.alg.disparity.block.BlockRowScore
BlockRowScore.ArrayF32<T extends ImageBase<T>>, BlockRowScore.ArrayS32<T extends ImageBase<T>,
ImageData>, BlockRowScore.ArrayS32_BF32, BlockRowScore.ArrayS32_BS32<T extends GrayI<T>, ImageData>, BlockRowScore.ArrayS32_BS64 -
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
Returns the maximum error each pixel in the region can contributeRuntimeException
should be thrown.boolean
If true then the score needs to be normalizedvoid
normalizeScore
(int row, int colLeft, int colRight, int numCols, int regionWidth, int regionHeight, float[] scores, int indexScores, float[] scoresNorm) Applies normalization to a single rowvoid
score
(float[] leftRow, float[] rightRow, int indexLeft, int indexRight, int offset, int length, float[] elementScore) void
setBorder
(ImageBorder<GrayF32> border) void
Specifies the input imagesMethods inherited from class boofcv.alg.disparity.block.BlockRowScore.ArrayF32
normalizeRegionScores, scoreRow
-
Field Details
-
eps
public float eps
-
-
Constructor Details
-
F32
public F32(int radiusWidth, int radiusHeight)
-
-
Method Details
-
setInput
Description copied from interface:BlockRowScore
Specifies the input images- Specified by:
setInput
in interfaceBlockRowScore<GrayF32,
float[], float[]> - Overrides:
setInput
in classBlockRowScore.ArrayS32_BF32
- Parameters:
left
- left imageright
- right image
-
setBorder
- Specified by:
setBorder
in interfaceBlockRowScore<GrayF32,
float[], float[]> - Overrides:
setBorder
in classBlockRowScore.ArrayS32_BF32
-
score
public void score(float[] leftRow, float[] rightRow, int indexLeft, int indexRight, int offset, int length, float[] elementScore) -
getMaxPerPixelError
public int getMaxPerPixelError()Description copied from interface:BlockRowScore
Returns the maximum error each pixel in the region can contributeRuntimeException
should be thrown.- Specified by:
getMaxPerPixelError
in interfaceBlockRowScore<GrayF32,
float[], float[]> - Overrides:
getMaxPerPixelError
in classBlockRowScore.ArrayF32<GrayF32>
- Returns:
- Largest possible error for the region.
-
isRequireNormalize
public boolean isRequireNormalize()Description copied from interface:BlockRowScore
If true then the score needs to be normalized -
normalizeScore
public void normalizeScore(int row, int colLeft, int colRight, int numCols, int regionWidth, int regionHeight, float[] scores, int indexScores, float[] scoresNorm) Description copied from interface:BlockRowScore
Applies normalization to a single row- Specified by:
normalizeScore
in interfaceBlockRowScore<GrayF32,
float[], float[]> - Overrides:
normalizeScore
in classBlockRowScore.ArrayF32<GrayF32>
- Parameters:
row
- Row that is being normalizedcolLeft
- column in left imagecolRight
- column in right imagenumCols
- number of columnsregionWidth
- width of the regionregionHeight
- height of the regionscores
- array with scores that are to be normalizedindexScores
- first index in scores that is to be normalized
-
getImageType
-