I used mathematical calculations to convert the r,g,b values of a pixel into the h,s and v values. How do i use these h, s, and v values to create an image and be able to show them using imshow("HSV", hsv_image).
It would be better if the answer is using python, however it is ok even if it is C++.
if you have a RGB image then just do
is this what you want?
EDIT