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
Sorry, I attached the wrong compressed file. Use this version. On Tue, Feb 3, 2015 at 7:57 PM, Adam Hughes <hughesadam87@gmail.com> wrote:
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
-- 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. For more options, visit https://groups.google.com/d/optout.
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 On Tuesday, February 3, 2015 at 6:57:24 PM UTC-6, Adam Hughes wrote:
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
Hi Adam On 2015-02-03 17:14:49, Adam Hughes <hughesadam87@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
Thanks for the inputs Steven, Stefan, I'll update it soon and resend. On Wed, Feb 4, 2015 at 10:31 PM, Stefan van der Walt <stefanv@berkeley.edu> wrote:
Hi Adam On 2015-02-03 17:14:49, Adam Hughes <hughesadam87@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
-- 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. For more options, visit https://groups.google.com/d/optout.
participants (3)
-
Adam Hughes
-
Stefan van der Walt
-
Steven Silvester