<div dir="ltr">On Sun, Jun 14, 2015 at 1:43 PM, Ashray Malhotra <span dir="ltr"><<a href="mailto:ashray.malhotra.1994@gmail.com" target="_blank">ashray.malhotra.1994@gmail.com</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hello,<div><br><div>I found this example of converting an RGB input image to the HSV color domain.</div><div><a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/Images/RGBToHSV" target="_blank">http://www.vtk.org/Wiki/VTK/Examples/Cxx/Images/RGBToHSV</a><br></div><div><br></div><div>In the extractHue, saturation an<font face="arial, helvetica, sans-serif">d value filters, input is the output of image reader whereas I believe it should be the output of the <span style="color:rgb(0,0,0);font-size:1em;line-height:1.2em">vtkImageRGBToHSV filter. </span></font><span style="color:rgb(0,0,0);font-family:arial,helvetica,sans-serif;line-height:15.600000381469727px">I ran the above example on a test image and got this result</span></div><div><a href="https://github.com/ashray/VTKCodes/blob/master/Some%20other%20custom%20codes/RGBToHSV/RGBDisplay-WikiCode.png" target="_blank">https://github.com/ashray/VTKCodes/blob/master/Some%20other%20custom%20codes/RGBToHSV/RGBDisplay-WikiCode.png</a><font face="arial, helvetica, sans-serif" color="#000000"><span style="line-height:15.600000381469727px"><br></span></font></div><div><br></div><div>I modified the code by giving the input as output of <span style="color:rgb(0,0,0);font-family:arial,helvetica,sans-serif;font-size:13px;line-height:15.600000381469727px">vtkImageRGBToHSV filter.</span></div><div><span style="color:rgb(0,0,0);font-family:arial,helvetica,sans-serif;font-size:13px;line-height:15.600000381469727px">My code is </span></div><div><a href="https://github.com/ashray/VTKCodes/blob/master/Some%20other%20custom%20codes/RGBToHSV/RGBToHSV.cxx" target="_blank">https://github.com/ashray/VTKCodes/blob/master/Some%20other%20custom%20codes/RGBToHSV/RGBToHSV.cxx</a><span style="color:rgb(0,0,0);font-family:arial,helvetica,sans-serif;font-size:13px;line-height:15.600000381469727px"><br></span></div><div><br></div><div>And the output image that I get is</div><div><a href="https://github.com/ashray/VTKCodes/blob/master/Some%20other%20custom%20codes/RGBToHSV/HSVDisplay-GitHubCode.png" target="_blank">https://github.com/ashray/VTKCodes/blob/master/Some%20other%20custom%20codes/RGBToHSV/HSVDisplay-GitHubCode.png</a><br></div><div><br></div><div>which is completely different from the previous one.</div><div><br></div><div>Can someone please tell me if I am making an error or is there an error in the example.</div><div><br></div><div>Thanks a lot.</div><div><br></div><div>Regards</div><span class="HOEnZb"><font color="#888888"><div>Ashray Malhotra</div></font></span></div><br></div></blockquote></div><br></div><div class="gmail_extra">You are correct - it was a typo. I've corrected it on the wiki.<br><br></div><div class="gmail_extra">David<br></div></div>