how can we change the color of the portion of a color image

1 回表示 (過去 30 日間)
angel
angel 2013 年 3 月 12 日
i've divided my image into 8x8 non overlapping blocks with the function
grayImage(row1:row2,col1:col2);
that mean i've total of 64 blocks... i want to change color or intensity of the block number 30 and block 12 what should i do?

採用された回答

Walter Roberson
Walter Roberson 2013 年 3 月 12 日
編集済み: Walter Roberson 2013 年 3 月 13 日
  8 件のコメント
Image Analyst
Image Analyst 2013 年 3 月 26 日
Where did you get this equation in the first place:
Y=gamma_correction(I, [1 255], [0 255], 0.4);
How and why is that the way you want to change your intensity of blocks 30 and 12? And why do you want to change only those two blocks out of the 64 total blocks? Why do you say " i want to change color or intensity" as if you don't care at all what happens to them? In fact you changed them to 2 in your code above and you seemed to think that was okay. I'm baffled as to why you just want to change the color or intensity, but don't seem to care how it gets changed, what it gets changed to, or what it ends up looking like.
Walter Roberson
Walter Roberson 2013 年 3 月 26 日
On the page http://www.mathworks.com/matlabcentral/fileexchange/26523-the-inface-toolbox-v2-0-for-illumination-invariant-face-recognition click on the blue box "Download submission". That will allow you to download a .zip file to your disk. Save that file to a convenient location, and unzip it. That will probably create a new directory named INFace_zip_no_mex . Open that directory. Inside there will be a directory named INface_tool . Move (or copy) that directory (the whole directory, keeping the name) to a place that you keep your MATLAB source structures. Once you have it moved, go into MATLAB and "cd" to the INface_tool directory that you just established. Then at the MATLAB command prompt, give the command
install_INface
and it will handle the rest of the installation.
Note: you will need to have previously installed a compiler for your system, and then used
mex -setup
to tell MATLAB which compiler you are using.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeIntroduction to Installation and Licensing についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by