Interactive Mona Lisa Demo

32 views
Skip to first unread message

Adam Hughes

unread,
Feb 3, 2015, 7:57:24 PM2/3/15
to scikit...@googlegroups.com
Hey everyone,

I made an interactive demo for a class I'm TAing where the user loads an image (default is mona lisa prado) and they can dynamically change HSV or RGB values with sliders, and the altered image is updated in realtime.  The point of this excercise is to try to mimic the fading of the mona lisa prado colors into the tinged yellow version of the original Mona Lisa on display today.  

This program uses TraitsUI and Chaco for its interactivity, so probably isn't of direct use for the image viewer; however, in the spirit of interactive examples, I thought it would be cool to share.  It was much easier to get Chaco and play nicely with image data than I thought it would be.
/home/glue/Desktop/monolisa.tar.gz
*Note: this will be very slow if you use the high-res version of the mona lisa prado, so please start by trying the lowres files*.  

Requirements:

   scikit-image
   numpy
   chaco
   traits
   traitsui
   enable


monolisa.tar.gz

Adam Hughes

unread,
Feb 3, 2015, 8:14:53 PM2/3/15
to scikit...@googlegroups.com
Sorry, I attached the wrong compressed file.  Use this version.

--
You received this message because you are subscribed to a topic in the Google Groups "scikit-image" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/scikit-image/0DGu77zgTGo/unsubscribe.
To unsubscribe from this group and all its topics, send an email to scikit-image...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

monolisa.zip

Steven Silvester

unread,
Feb 4, 2015, 10:08:40 PM2/4/15
to scikit...@googlegroups.com
Nice Demo Adam!  Perfect teaching point.  Two nits:  you have the absolute path to the image hard coded in the file, and of course its only Python 2 since it relies on TraitsUI  :(.  (Also Chaco is so very hard to work with, see https://github.com/FelixHartmann/traitsui-tutorial-qt for a way to use Matplotlib and TraitsUI nicely together in Qt).


Regards,

Steve

Stefan van der Walt

unread,
Feb 4, 2015, 10:34:33 PM2/4/15
to scikit...@googlegroups.com
Hi Adam On 2015-02-03 17:14:49, Adam Hughes
<hughes...@gmail.com> wrote:
>> I made an interactive demo for a class I'm TAing where the user
>> loads an image (default is mona lisa prado) and they can
>> dynamically change HSV or RGB values with sliders, and the
>> altered image is updated in realtime. The point of this
>> excercise is to try to mimic the fading of the mona lisa prado
>> colors into the tinged yellow version of the original Mona Lisa
>> on display today.

I'm afraid I couldn't get this running (trouble installing Chaco +
Traits, and thereafter segfaults when trying it). Could you do
an skimage.viewer example for us? Then we can include it in the
scikit-image demos repo! Stéfan

Adam Hughes

unread,
Feb 4, 2015, 11:40:44 PM2/4/15
to scikit...@googlegroups.com
Thanks for the inputs Steven, Stefan,

I'll update it soon and resend.

--
You received this message because you are subscribed to a topic in the Google Groups "scikit-image" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/scikit-image/0DGu77zgTGo/unsubscribe.
To unsubscribe from this group and all its topics, send an email to scikit-image+unsubscribe@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages