Infrachrome
IRG Colour Infrared Image Transformation Software version 1.0
This image is posted for this discussion group:
www.flickr.com/groups/55027594@N00/discuss/72157601045395...
Here is the screen capture of the Windows version of my IRG transformation program, written in Visual Basic 2010 Express. This is a very early beta version 1.0. Not bad since I only started learning VB only a week ago. This program runs much much faster than my QBasic version.
I wanted the screen to be user friendly as well as informative, so the background explains what is being done to the image and the mathematical principles behind the software.
I also wanted to show all the channels before and after the mathematical transformation, so one could see (almost) instantaneously the changes to the matrices and the final image by applying different values for the gamma parameters, RX, RY, GX, GY.
I will post an "executable" of the program for others to test after I learn how to do that.
The text of the equations in the picture is a bit too small to read, so here it is.
MATHEMATICAL PRINCIPLES:
Original full-spectrum image is (R,G,B) = (Z1,Z2,Y)
Let Z1=(1-(1-X1)^(1/RX))*(1-Y)+(1-(1-Y)^(1/RY))*(1-X1)+X1*Y
To extract the Red channel, solve for X1 from known values of Y, Z1, RX, RY.
Let Z2=(1-(1-X2)^(1/GX))*(1-Y)+(1-(1-Y)^(1/GY))*(1-X2)+X2*Y
To extract the Green channel, solve for X2 from known values of Y, Z2, GX, GY
Derived IRG image is (R,G,B) = (Y,X1,X2)
To use these equations, reduce your pixels values to between 0 and 1. That is, divide Y, Z1, Z2 by 255 before plugging them into the equation. Multiply the derived X1 and X2 values by 255 to get your pixel value. RX, RY, GX, GY are somewhere between 1.0 and 5.0.
UPDATE September 5, 2010
I have a Version 1.2 using a new formula that I think is a better model.
IRG Colour Infrared Image Transformation Software version 1.0
This image is posted for this discussion group:
www.flickr.com/groups/55027594@N00/discuss/72157601045395...
Here is the screen capture of the Windows version of my IRG transformation program, written in Visual Basic 2010 Express. This is a very early beta version 1.0. Not bad since I only started learning VB only a week ago. This program runs much much faster than my QBasic version.
I wanted the screen to be user friendly as well as informative, so the background explains what is being done to the image and the mathematical principles behind the software.
I also wanted to show all the channels before and after the mathematical transformation, so one could see (almost) instantaneously the changes to the matrices and the final image by applying different values for the gamma parameters, RX, RY, GX, GY.
I will post an "executable" of the program for others to test after I learn how to do that.
The text of the equations in the picture is a bit too small to read, so here it is.
MATHEMATICAL PRINCIPLES:
Original full-spectrum image is (R,G,B) = (Z1,Z2,Y)
Let Z1=(1-(1-X1)^(1/RX))*(1-Y)+(1-(1-Y)^(1/RY))*(1-X1)+X1*Y
To extract the Red channel, solve for X1 from known values of Y, Z1, RX, RY.
Let Z2=(1-(1-X2)^(1/GX))*(1-Y)+(1-(1-Y)^(1/GY))*(1-X2)+X2*Y
To extract the Green channel, solve for X2 from known values of Y, Z2, GX, GY
Derived IRG image is (R,G,B) = (Y,X1,X2)
To use these equations, reduce your pixels values to between 0 and 1. That is, divide Y, Z1, Z2 by 255 before plugging them into the equation. Multiply the derived X1 and X2 values by 255 to get your pixel value. RX, RY, GX, GY are somewhere between 1.0 and 5.0.
UPDATE September 5, 2010
I have a Version 1.2 using a new formula that I think is a better model.