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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintReturns the maximum error each pixel in the region can contributeRuntimeExceptionshould be thrown.booleanIf true then the score needs to be normalizedvoidnormalizeScore(int row, int colLeft, int colRight, int numCols, int regionWidth, int regionHeight, float[] scores, int indexScores, float[] scoresNorm) Applies normalization to a single rowvoidscore(float[] leftRow, float[] rightRow, int indexLeft, int indexRight, int offset, int length, float[] elementScore) voidsetBorder(ImageBorder<GrayF32> border) voidSpecifies 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:BlockRowScoreSpecifies the input images- Specified by:
setInputin interfaceBlockRowScore<GrayF32,float[], float[]> - Overrides:
setInputin classBlockRowScore.ArrayS32_BF32- Parameters:
left- left imageright- right image
-
setBorder
- Specified by:
setBorderin interfaceBlockRowScore<GrayF32,float[], float[]> - Overrides:
setBorderin 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:BlockRowScoreReturns the maximum error each pixel in the region can contributeRuntimeExceptionshould be thrown.- Specified by:
getMaxPerPixelErrorin interfaceBlockRowScore<GrayF32,float[], float[]> - Overrides:
getMaxPerPixelErrorin classBlockRowScore.ArrayF32<GrayF32>- Returns:
- Largest possible error for the region.
-
isRequireNormalize
public boolean isRequireNormalize()Description copied from interface:BlockRowScoreIf 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:BlockRowScoreApplies normalization to a single row- Specified by:
normalizeScorein interfaceBlockRowScore<GrayF32,float[], float[]> - Overrides:
normalizeScorein 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
-