Skip to content
GitLab
  • Menu
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
  • bob
  • bob.ip.basebob.ip.base
  • Issues
  • #9
Closed
Open
Created Feb 20, 2018 by Guillaume HEUSCH@heuschMaintainer

Color channels changed after rotation

Looks like there is a problem with color channels when rotating an image (looks like a negative)

Here's the code to reproduce

>>> import bob.ip.base
>>> 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)
>>> rotated_shape = bob.ip.base.rotated_output_shape(img, 90)
>>> rotated = numpy.ndarray(rotated_shape, dtype = numpy.float64 )
>>> bob.ip.base.rotate(image, rotated, 90)
>>> from matplotlib import pyplot
>>> pyplot.imshow(numpy.rollaxis(numpy.rollaxis(rotated, 2),2))
>>> pyplot.show()

rotated_example

Assignee
Assign to
Time tracking