Skip to content
This repository was archived by the owner on Apr 12, 2020. It is now read-only.
This repository was archived by the owner on Apr 12, 2020. It is now read-only.

ndArrayToQtImage fails for certain image sizes #5

@stefanv

Description

@stefanv

Images with certain dimensions fail to display correctly under Qt after conversion. E.g., an (187, 189) image displays as diagonal bands. Use the following snippet to produce a suitable test image:

import numpy as np
import matplotlib.pyplot as plt

image = np.zeros((187, 189))
image[:] = np.arange(189)

plt.imsave('gradient.png', image, cmap=plt.cm.gray)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions