imshow interpolation='bilinear' equivalen in pyqtgraph

56 views
Skip to first unread message

Agus

unread,
Dec 14, 2018, 5:02:10 AM12/14/18
to pyqtgraph
Dear experts,
 
I usually use matplotlib with imshow and  interpolation='bilinear' method  to display my image looks smoother.
Does pyqtgraph have something like this?

Regards,
Agus

Jim Crowell

unread,
Dec 17, 2018, 10:28:46 AM12/17/18
to pyqtgraph
I don't know if it's exactly the same, but the ImageItem has a setAutoDownsample() method (and an 'autoDownSample' keyword argument that you can use in setImage() or the constructor) that might be similar enough for your purposes...

Jim Crowell

unread,
Dec 18, 2018, 9:56:41 AM12/18/18
to pyqtgraph
I should have said, it does the downsampling by averaging nearby pixels. Looks like the size of the neighborhood depends on the amount by which the image is downsized.
Reply all
Reply to author
Forward
0 new messages