Re: Write Retinex using C++, thanks



Hi,
i think the easiest way to solve the problem if yo have enough time in
your app is to convert the image to the format you need for the alg.
Otherwhise you have to redesign the retinex algortihm and you have to
understand the retinex theorie at first.
Here you can find the informations you need to do that:
http://dragon.larc.nasa.gov/retinex/background/background.html


Eric


henryliuch@xxxxxxxxx schrieb:
Hi Eric,
Thanks for your kindly help!

If I have an input image with left corner coordinate (0, 0), the
x-coordinates of pixels increase from left to right directions, whereas
the y-coodinates increase from top to bottom directions.

Let width = W, height = H.
The coordinates of pixels arranged in data and mdData are represented
as follows
(0, 0) (1, 0) ... (W-1, 0)
(0, 1) (1, 1) ... (W-1, 1)
. . . .
. . . .
(0,H-1) (1,H-1) ... (W-1,H-1)

'pInput' and 'pOutput' are 1D arrays representation of 2D images. A
pixel with coordinates (i, j) in the input frame can be referenced as
'pInput[(i + j * width) * 3 + k]', where k addresses (k = 0 for blue, k
= 1 for green and k = 2 for read) the color components.
How can I write C++ program to do the retinex for this case?

Many many thanks!!!!
Henry

eric 寫道:

Here is a Matlab implementation of it:

http://www.cs.sfu.ca/~colour/publications/IST-2000/

i think you can translate it to c++ easily.

Regards

Eric

henryliuch@xxxxxxxxx schrieb:
Hi to all.

I am looking for something quite special. Does anybody have a C or C++
implementation of the Retinex algorithm for color constancy?

thanks a lot!
Regards,
Henry


.



Relevant Pages

  • Re: Write Retinex using C++, thanks
    ... Otherwhise you have to redesign the retinex algortihm and you have to ... henryliuch@xxxxxxxxx schrieb: ... If I have an input image with left corner coordinate, the ...
    (sci.image.processing)
  • Re: Write Retinex using C++, thanks
    ... I have an input image, and I read the formula of Retinex from here: ... Otherwhise you have to redesign the retinex algortihm and you have to ... henryliuch@xxxxxxxxx schrieb: ... If I have an input image with left corner coordinate, the ...
    (sci.image.processing)
  • Re: Write Retinex using C++, thanks
    ... I have an input image, and I read the formula of Retinex from here: ... Otherwhise you have to redesign the retinex algortihm and you have to ... henryliuch@xxxxxxxxx schrieb: ... If I have an input image with left corner coordinate, the ...
    (sci.image.processing)

Quantcast