- #1
Agent M27
- 171
- 0
As you may have seen in previous postings I am developing a code that will ultimately take as input the Red, Green, Blue channels of an image and convert each pixel value to its corresponding Hue, Saturation, Intensity value. I have gotten a great deal of the code to work properly but am really hitting a stumbling block when it comes to the hue calculation. A little background on hue calculation. Hue is based off the inequality of the proportions of blue to green. If there is more blue in say element B[i,j] than there is green in element G[i,j], that is a greater value number,it then needs to perform a specific formula based on this inequality. This is the tricky part. As you can see from my code I have made use of a ForAll to define the parameters of hue, but it is basing it's calculations solely off of the first element and going with that which is incorrect, it needs to check each element for this inequality. If anyone could offer some advice around this issue it would be greatly appreciated. Thanks in advance.
Joe
Joe