[Scipy-tickets] [SciPy] #1828: Several misc.im* functions incorrectly handle 3 or 4-channeled (RGB, RGBA) images, depending on image dimensions

SciPy Trac scipy-tickets@scipy....
Wed Jan 30 13:49:43 CST 2013


#1828: Several misc.im* functions incorrectly handle 3 or 4-channeled (RGB, RGBA)
images, depending on image dimensions
------------------------------------------------------------------------------------------+
 Reporter:  erickim555                                                                    |       Owner:  rgommers   
     Type:  defect                                                                        |      Status:  new        
 Priority:  normal                                                                        |   Milestone:  Unscheduled
Component:  scipy.misc                                                                    |     Version:  devel      
 Keywords:  toimage, multi-channels, image, imsave, imrotate, imshow, imresize, imfilter  |  
------------------------------------------------------------------------------------------+

Comment(by rgommers):

 It looks like only {{{imsave}}} and {{{fromimage}}} document explicitly
 that the shape is MxNx3.  Adding it to the other affected functions as
 well and fixing it as you propose sounds fine to me.

 Would you be willing to write a patch with regression test for this
 (preferably as pull request on Github)?

-- 
Ticket URL: <http://projects.scipy.org/scipy/ticket/1828#comment:1>
SciPy <http://www.scipy.org>
SciPy is open-source software for mathematics, science, and engineering.


More information about the Scipy-tickets mailing list