use of boofcv.core.image.border.BorderIndex1D_Wrap in project BoofCV by lessthanoptimal.
the class PermuteWaveletCompare method createDesc_F32.
private WaveletDescription<WlCoef_F32> createDesc_F32(int offset, int length, BorderType type) {
WlCoef_F32 forward = createRandomCoef_F32(offset, length);
WlBorderCoef<WlCoef_F32> inverse;
BorderIndex1D border;
if (type == BorderType.WRAP) {
inverse = new WlBorderCoefStandard<>(forward);
border = new BorderIndex1D_Wrap();
} else {
inverse = createFixedCoef_F32(forward);
border = new BorderIndex1D_Reflect();
}
return new WaveletDescription<>(border, forward, inverse);
}
Aggregations