Converting image using matlab / octave from rgb to hsv back to rgb

有些话、适合烂在心里 提交于 2019-12-02 12:46:34

double images have values in range [0,1] (float), uint8 images in range [0,2^8-1] (only integers). Using uint8 you simply convert your values between 0 and 1 to 0 and 1 which is black or nearly black.

Use im2uint8 or im2double to convert images, these functions automatically rescale your values to the appropriate range.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!