python - wxImage Scale() causing image to become distorted -
i trying zoom in on image cropping dimensions of original image based on zoom value. image rgba numpy array. in order display in wxpython, convert wximage , utilize scale() function display @ right size of staticbitmap. problem is, in areas (mainly near lower left , upper right corners), image looks (at zoom "ticks"):
whereas tick right before (less zoom) looks this:
if utilize scipy.misc.imresize() on numpy array , convert wximage display, issue goes away. reason rather not way speed. much slower, zoom feels much less fluid. has scale() function, although not sure issue is. ideas?
if care quality of result (i.e. unless want generate little thumbnails possible), should utilize wximage::scale() wximage_quality_high instead of default wximage_quality_normal quality.
if doesn't prepare issues you're seeing, interesting see images reproducing problem (please create ticket on wxtrac , upload them there).
python image wxpython scipy wxwidgets
No comments:
Post a Comment