Results 1 to 2 of 2

Thread: how to apply realtime color mapping

  1. #1
    Join Date
    Jul 2010
    Posts
    21
    Qt products
    Qt4
    Platforms
    Windows

    Default how to apply realtime color mapping

    Hi all, I am implementing a curve tool which will apply realtime color modification(contrast/color balancing) of an image. It will be similar to the curve tool of GIMP or Adobe PhotoShop. I have implemented the curve fitting, so I have the QPolygonF of fitted curve points when the user modifies the curve by mouse move. Now I have to apply fast, realtime color mapping based on the new curve points; how can I use the QwtColorMap class to achieve this? Any sample code that applies color mapping to a given QImage using a number of curve points? And I need to apply this both for indexed/grayscale images and color RGB images..

    Best regards.

  2. #2
    Join Date
    Feb 2006
    Location
    Munich, Germany
    Posts
    3,313
    Thanked 879 Times in 827 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: how to apply realtime color mapping

    QwtPlotSpectroCurve displays 3D points as colored points, where the z-value is mapped to a color using a color map. QwtPlotSpectrogram maps raster data into an image - also using a color map to map the values to a color.

    Both are plot items intended for displaying something on the plot canvas.

    Uwe

Similar Threads

  1. QWT Realtime Plot zoom
    By Gavin Harper in forum Qwt
    Replies: 2
    Last Post: 13th September 2010, 08:04
  2. RealTime Images
    By shiranraviv in forum Qt Programming
    Replies: 8
    Last Post: 31st December 2009, 00:41
  3. how can i display curve in realtime?
    By blm in forum Qt Programming
    Replies: 1
    Last Post: 11th September 2008, 20:03
  4. Replies: 3
    Last Post: 25th August 2007, 16:53
  5. Realtime TableView filter with (lineEdit)
    By xgoan in forum Qt Programming
    Replies: 2
    Last Post: 21st December 2006, 15:17

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.