Skip to content

Weird behavior for Mat.from_array() #20

Open
@huckw

Description

@huckw

Attached is an image that is acting very strange...

I=cv2.imread("path/to/hbl.png")[:,:,0]
I1 = np.array(mylib.Mat.from_array(I))
I2 = np.array(mylib.Mat.from_array(I.astype(np.uint8)))

I1 is all messed up but I2 works as expected. I's dtype is already np.uint8 so I don't know what the magic is with the asytpe() converting it to the same datatype.

Any idea what I might be doing incorrectly?

hbl

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions