Search in sources :

Example 6 with BorderIndex1D_Wrap

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);
}
Also used : BorderIndex1D_Wrap(boofcv.core.image.border.BorderIndex1D_Wrap) BorderIndex1D(boofcv.core.image.border.BorderIndex1D) BorderIndex1D_Reflect(boofcv.core.image.border.BorderIndex1D_Reflect)

Aggregations

BorderIndex1D_Wrap (boofcv.core.image.border.BorderIndex1D_Wrap)6 BorderIndex1D (boofcv.core.image.border.BorderIndex1D)4 BorderIndex1D_Reflect (boofcv.core.image.border.BorderIndex1D_Reflect)4 WaveletDescription (boofcv.struct.wavelet.WaveletDescription)1 WlBorderCoefStandard (boofcv.struct.wavelet.WlBorderCoefStandard)1 WlCoef_F32 (boofcv.struct.wavelet.WlCoef_F32)1