Slicer: 2145-support-for-installing-extension-from-file 0f47fbf7

Author Committer Branch Timestamp Parent
pieper pieper 2145-support-for-installing-extension-from-file 2013-03-17 14:42:48 2145-support-for-installing-extension-from-file f87b8ee0
Changeset

ENH: improve QImage to vtkImageData converter

Make sure the image is in rgb or argb format before converting,
and use pointer arithmetic to speed up the converter.

Add comment that we should consider using memcpy - this significantly
speeds up the conversion, but may not be correct across platforms.

git-svn-id: http://svn.slicer.org/Slicer4/trunk@21821 3bd1e089-480b-0410-8dfb-8563597acbee

mod - Libs/MRML/Widgets/qMRMLUtils.cxx Diff File