Package boofcv.alg.disparity.block
Class BlockRowScore.ArrayF32<T extends ImageBase<T>>
java.lang.Object
boofcv.alg.disparity.block.BlockRowScore.ArrayF32<T>
- All Implemented Interfaces:
BlockRowScore<T,
float[], float[]>
- Direct Known Subclasses:
BlockRowScore.ArrayS32_BF32
- Enclosing interface:
- BlockRowScore<T extends ImageBase<T>,
ScoreArray, ImageData>
public abstract static class BlockRowScore.ArrayF32<T extends ImageBase<T>>
extends Object
implements BlockRowScore<T,float[],float[]>
-
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 -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
Returns the maximum error each pixel in the region can contributeRuntimeException
should be thrown.void
normalizeRegionScores
(int row, float[] scores, int disparityMin, int disparityMax, int regionWidth, int regionHeight, float[] scoresNorm) Additional normalization that's applied after the score for a region is known.void
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
scoreRow
(int row, float[] leftRow, float[] rightRow, float[] scores, int disparityMin, int disparityMax, int regionWidth, float[] elementScore) For a given disparity, the score for each region on the left share many components in common.void
Specifies the input imagesMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface boofcv.alg.disparity.block.BlockRowScore
getImageType, isRequireNormalize, score, setBorder
-
Constructor Details
-
ArrayF32
public ArrayF32()
-
-
Method Details
-
setInput
Description copied from interface:BlockRowScore
Specifies the input images- Specified by:
setInput
in interfaceBlockRowScore<T extends ImageBase<T>,
float[], float[]> - Parameters:
left
- left imageright
- right image
-
scoreRow
public void scoreRow(int row, float[] leftRow, float[] rightRow, float[] scores, int disparityMin, int disparityMax, int regionWidth, float[] elementScore) Description copied from interface:BlockRowScore
For a given disparity, the score for each region on the left share many components in common. Because of this the scores are computed with disparity being the outer most loop- Specified by:
scoreRow
in interfaceBlockRowScore<T extends ImageBase<T>,
float[], float[]> - Parameters:
row
- Image row being examinedscores
- Storage for disparity scores.disparityMin
- Minimum disparity to considerdisparityMax
- Maximum disparity to considerregionWidth
- Size of the sample region's widthelementScore
- Storage for scores of individual pixels
-
normalizeRegionScores
public void normalizeRegionScores(int row, float[] scores, int disparityMin, int disparityMax, int regionWidth, int regionHeight, float[] scoresNorm) Description copied from interface:BlockRowScore
Additional normalization that's applied after the score for a region is known. Currently only used byBlockRowScoreNcc
.- Specified by:
normalizeRegionScores
in interfaceBlockRowScore<T extends ImageBase<T>,
float[], float[]> - Parameters:
row
- Image row being examinedscores
- Storage for disparity scores.disparityMin
- Minimum disparity to considerdisparityMax
- Maximum disparity to considerregionWidth
- Size of the sample region's widthregionHeight
- Size of the sample region's height
-
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<T extends ImageBase<T>,
float[], float[]> - 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
-
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<T extends ImageBase<T>,
float[], float[]> - Returns:
- Largest possible error for the region.
-