<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">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">https://github.com/ashray/VTKCodes/blob/master/Some%20other%20custom%20codes/RGBToHSV/RGBDisplay-WikiCode.png</a><font color="#000000" face="arial, helvetica, sans-serif"><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">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">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><div>Ashray Malhotra</div></div><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div>Regards<br></div><div>Ashray Malhotra<br></div></div></div></div>