Exemplo n.º 1
0
    def decompose(self):
        b1 = WaveletMultiscaleDecomposition.decompose(
            self, self.config.get("wd_wavelet"))
        b3 = WaveletMultiscaleDecomposition.decompose(
            self, self.config.get("iwd_wavelet"))

        return nputils.roundrobin(b1, b3)
Exemplo n.º 2
0
    def decompose(self):
        b1 = WaveletMultiscaleDecomposition.decompose(
            self, self.config.get("wd_wavelet"))
        b3 = WaveletMultiscaleDecomposition.decompose(
            self, self.config.get("iwd_wavelet"))

        return nputils.roundrobin(b1, b3)
Exemplo n.º 3
0
    def decompose(self):
        level1 = WaveletMultiscaleDecomposition.decompose(self)
        levels = level1
        for scale, scale_noise, width in level1:
            level2 = WaveletMultiscaleDecomposition.decompose(self, img=imgutils.Image(scale), bg=scale_noise,
                                                              min_scale=1, max_scale=2)
            levels = nputils.roundrobin(levels, level2)

        return levels
Exemplo n.º 4
0
    def decompose(self):
        level1 = WaveletMultiscaleDecomposition.decompose(self)
        levels = level1
        for scale, scale_noise, width in level1:
            level2 = WaveletMultiscaleDecomposition.decompose(
                self,
                img=imgutils.Image(scale),
                bg=scale_noise,
                min_scale=1,
                max_scale=2)
            levels = nputils.roundrobin(levels, level2)

        return levels