roi in image with imageAxisOrder seems wrong

33 views
Skip to first unread message

Lav

unread,
Mar 9, 2020, 11:35:19 AM3/9/20
to pyqtgraph

Hi,
I am having issues with using the imageview roi when imageAxisOrder is set to row-major. The values that get sampled are wrong. I made a test-file that I attached in which I compare the plots that I get from the roi in the original file, and a modified plot. (PS: you have to manually enlarge the plot in the red-custom plot window)
The axes values need to be different in order for the roi to display the correct image.
Moreover I get data values from where the rectangle would have been drawn if I did not have the row-major config settings.

So the question: 
Is this a bug or is there another way to do this ? 
RowMajorissues.png
imv_differentROI.py

Patrick

unread,
Mar 10, 2020, 12:00:02 AM3/10/20
to pyqtgraph
Hi,

It isn't to do with the axes you pass into the getArrayRegion() method? Also, maybe take a look at this thread, it was a while ago but I think there might have been bug with axis ordering and I proposed a workaround. It might be the same problem you've having.

Patrick
Reply all
Reply to author
Forward
0 new messages