Skip to content
Snippets Groups Projects
Closed Saving images requires C-contiguous data, but this is not checked
  • View options
  • Saving images requires C-contiguous data, but this is not checked

  • View options
  • Closed Issue created

    Created by: siebenkopf

    When writing (color) images that are not C-contiguous, the written images are garbage (mis-aligned), while C-contiguous data works fine:

    import bob.io.base
    import bob.io.image
    import numpy
    image = bob.io.base.load("image.png")
    bob.io.base.save(image[:, 10:50, 10:50], "garbage.png")
    bob.io.base.save(numpy.array(image[:, 10:50, 10:50]), "good.png")

    I think, we need at least to check for C-contiguity before writing images.

    Linked items ... 0

  • Activity

    • All activity
    • Comments only
    • History only
    • Newest first
    • Oldest first
    Loading Loading Loading Loading Loading Loading Loading Loading Loading Loading