bob.ip.base issueshttps://gitlab.idiap.ch/bob/bob.ip.base/-/issues2022-04-26T11:49:18Zhttps://gitlab.idiap.ch/bob/bob.ip.base/-/issues/15Deprecation2022-04-26T11:49:18ZTiago de Freitas PereiraDeprecationHi guys,
As you may know, we are on a deprecation wave of C++ code, and this image processing library is implemented mostly in this language.
Follow bellow a list of functionalities this package has.
Does anyone **uses and wants to kee...Hi guys,
As you may know, we are on a deprecation wave of C++ code, and this image processing library is implemented mostly in this language.
Follow bellow a list of functionalities this package has.
Does anyone **uses and wants to keep** some of its features?
Please let me know, by marking with a cross, as soon as possible.
@amohammadi, @ydayer, @flavio.tarsetti, @lcolbois, @sebastien.marcel, @mguenther, @andre.anjos, @ageorge
# Classes
- [x] bob.ip.base.GeomNorm ---> I have a pure python counterpart
- [x] bob.ip.base.FaceEyesNorm ---> I have a pure python counterpart
- [x] bob.ip.base.LBP
- [ ] bob.ip.base.LBPTop
- [ ] bob.ip.base.DCTFeatures
- [ ] bob.ip.base.TanTriggs
- [ ] bob.ip.base.Gaussian
- [ ] bob.ip.base.WeightedGaussian
- [ ] bob.ip.base.GradientMagnitude
- [ ] bob.ip.base.BlockNorm
- [ ] bob.ip.base.HOG
- [ ] bob.ip.base.GLCMProperty
- [ ] bob.ip.base.GLCM
# Functions
- [ ] bob.ip.base.flip
- [ ] bob.ip.base.flop
- [ ] bob.ip.base.crop
- [ ] bob.ip.base.shift
- [ ] bob.ip.base.scale
- [ ] bob.ip.base.scaled_output_shape
- [ ] bob.ip.base.rotate
- [ ] bob.ip.base.rotated_output_shape
- [ ] bob.ip.base.angle_to_horizontal
- [ ] bob.ip.base.block
- [ ] bob.ip.base.block_output_shape
- [ ] bob.ip.base.block_generator
- [ ] bob.ip.base.crop
- [ ] bob.ip.base.shift
- [ ] bob.ip.base.extrapolate_mask
- [ ] bob.ip.base.max_rect_in_mask
- [ ] bob.ip.base.angle_to_horizontal
- [ ] bob.ip.base.histogram
- [ ] bob.ip.base.lbphs
- [ ] bob.ip.base.lbphs_output_shape
- [ ] bob.ip.base.histogram_equalization
- [ ] bob.ip.base.gamma_correction
- [ ] bob.ip.base.integral
- [ ] bob.ip.base.zigzag
- [ ] bob.ip.base.median
- [ ] bob.ip.base.sobelhttps://gitlab.idiap.ch/bob/bob.ip.base/-/issues/14GeomNorm and extrapolate_mask require different mask types2021-02-24T10:43:10ZManuel Günthersiebenkopf@googlemail.comGeomNorm and extrapolate_mask require different mask typesWhen looking at the two functions `GeomNorm.process` and `extrapolate_mask` for color images, two different mask types are required:
- `GeomNorm` takes a 3D mask: https://gitlab.idiap.ch/bob/bob.ip.base/-/blob/a9109e06264f2e28ece3b131da...When looking at the two functions `GeomNorm.process` and `extrapolate_mask` for color images, two different mask types are required:
- `GeomNorm` takes a 3D mask: https://gitlab.idiap.ch/bob/bob.ip.base/-/blob/a9109e06264f2e28ece3b131da9babb0365b6f36/bob/ip/base/include/bob.ip.base/GeomNorm.h#L99 (implementation here: https://gitlab.idiap.ch/bob/bob.ip.base/-/blob/a9109e06264f2e28ece3b131da9babb0365b6f36/bob/ip/base/include/bob.ip.base/GeomNorm.h#L166)
- `extrapolate_mask` takes a 2D mask: https://gitlab.idiap.ch/bob/bob.ip.base/-/blob/a9109e06264f2e28ece3b131da9babb0365b6f36/bob/ip/base/include/bob.ip.base/Affine.h#L445
This is a bit inconsequent. I am not sure, why `GeomNorm` requires a 3D mask for color images. Each pixel will have the same visibility independent of the color channel. Thus, I would propose to reduce the mask for `GeomNorm` to 2D. We can also have the possibility to have both 2D and 3D masks, in case you require backward compatibility (which I could understand).Manuel Günthersiebenkopf@googlemail.comManuel Günthersiebenkopf@googlemail.comhttps://gitlab.idiap.ch/bob/bob.ip.base/-/issues/6floating point exception (core dump) in DCTFeatures when block_size and block...2018-08-18T15:19:01ZAmir MOHAMMADIfloating point exception (core dump) in DCTFeatures when block_size and block_overlap are equalTo reproduce:
```python
>>> from bob.ip.base import DCTFeatures
>>> extractor = DCTFeatures(10, (14,14), (14,14), False, False)
>>> from bob.io.base.test_utils import datafile
>>> import bob.io.image
>>> import bob.io.base
>>> path = dat...To reproduce:
```python
>>> from bob.ip.base import DCTFeatures
>>> extractor = DCTFeatures(10, (14,14), (14,14), False, False)
>>> from bob.io.base.test_utils import datafile
>>> import bob.io.image
>>> import bob.io.base
>>> path = datafile('grace_hopper.png', 'bob.io.image')
>>> img = bob.io.base.load(path)
>>> import bob.ip.color
>>> gray = bob.ip.color.rgb_to_gray(img)
>>> gray.shape
(600, 512)
>>> dct = extractor(gray)
```