Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • bob.ip.base bob.ip.base
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 3
    • Issues 3
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • bobbob
  • bob.ip.basebob.ip.base
  • Issues
  • #7
Closed
Open
Issue created Jul 24, 2017 by Manuel Günther@mguentherMaintainer

GeomNorm bindings cannot be used with color images

In the bindings of GeomNorm, both gray and color images are allowed: https://gitlab.idiap.ch/bob/bob.ip.base/blob/master/bob/ip/base/geom_norm.cpp#L315

However, only the gray level version is called: https://gitlab.idiap.ch/bob/bob.ip.base/blob/master/bob/ip/base/geom_norm.cpp#L256

This results in an unreadable error message, when I try to use a color image:

>>> import bob.ip.base, numpy
>>> img = numpy.ndarray((3,128,128), numpy.uint8)
>>> res = numpy.ndarray((3,64,64), numpy.float64)
>>> geom = bob.ip.base.GeomNorm(0., 1., (128,128), (64,64))
>>> geom.process(img, res, (64,64))
RuntimeError: bob.ip.base.GeomNorm - cannot process image: C++ exception caught: 'array dimensions do not match 0 != 128'

The bindings need to be fixed.

Assignee
Assign to
Time tracking