티스토리 툴바


Search

'프로그래밍/그래픽/이미지'에 해당되는 글 3건

  1. 2009/11/10 3D Studio max에서 기본 단위를 mm로 설정하는 방법
  2. 2006/10/17 CxImage의 Auto Level 함수들에 대해.
  3. 2006/10/16 Sepia Tone 방법

  

customsize > units setup > system unit setup
1Unit -> Milimeters.

unit Setup 창에서 Display Unit Scale > Metic -> Millimeters.




TAG 3d, 3DMAX, MAX

  

다음은 Level에 관한 함수들에 대한 테스트 결과이다.

image.HistogramEqualize(); // 느낌이 다름.
image.HistogramNormalize(); // 이거 좋다. 포토샵과 매우 유사함.
image.HistogramRoot();  // 너무 밝아짐.
image.HistogramStretch(); // 달라지는 게 없다.





Sepia Tone 방법

프로그래밍/그래픽/이미지 2006/10/16 11:23 Posted by 팬소년

  
Yeah, I take my color and multiply each r,g,b
by the gray value for the pixel:

[r|g|b]1 are inputs
[r|g|b]2 are outputs

gr = 0.30 * r1 + 0.59 * g1 + 0.11 * b1; // get brightness

r2 = gr * 1; // add tint
g2 = gr * 0.71;
b2 = gr * 0.41;

if u don't satisfy the effect of the hue , u can also do some other manipulation.
e.g. increase the contrast
r2 = r2* a;
if(r2 > 255)
r2 = 255;

g2 = g2* a;
if(g2 > 255)
g2 = 255;

b2 = b2* a;
if(b2 > 255)
b2 = 255;

Thank you very much!