I'm looking for making image corrections in a movie using matlab. I've googling for examples to splitting the movie into images, and then another example to improve image's quality. As I'm using several examples, I got into a issue and I was wondering if it is possible to convert an HSV image into a uint8 type?
Asked
Active
Viewed 1,923 times
0
-
what type is your HSV image? What is the data range? – Dan Apr 15 '13 at 12:18
-
HSV is a color space and uint8 is a data type. do you mean that you want to convert HSV in to gray scale? if so you can take the V channel of your image, it is the gray scale image. – Tal Darom Apr 15 '13 at 12:23
2 Answers
0
If your HSV image is of type double and the range lies between 0 and 1 then you might have luck by multiplying it by 256 and casting to uint8:
HSVuint8 = uint8(HSV.*256);

Dan
- 45,079
- 17
- 88
- 157