How can I convert a single R component into single H component or single G component into single S component etc?? Is it a possible conversion?

1 回表示 (過去 30 日間)
Firstly I convert my rgb image into single r, g, b components separately.Now i want to convert these separated single r, g, b components into single h, s, v components

回答 (1 件)

John D'Errico
John D'Errico 2015 年 10 月 9 日
編集済み: John D'Errico 2015 年 10 月 9 日
No. Simply not possible, assuming that you are asking, if you know ONLY the red component, can you compute what a specific component would be in some other scheme (such as H from HSV).
When you look at how one might do the actual conversion, there are clear interactions. So if you know only R, without knowledge of those other components (here G and B) you cannot do the transformation.
If your question is that you have extracted each of R, G, and B, and now have them all known and held separately, can you compute any of H S, or V? That question gets a yes answer, since you then need only follow the equations for the conversion to some other color space.

カテゴリ

Help Center および File ExchangeConvert Image Type についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by