필터 지우기
필터 지우기

third-order polynomial regression for the RGB components

조회 수: 2 (최근 30일)
Elysi Cochin
Elysi Cochin 2015년 1월 19일
답변: John D'Errico 2015년 1월 19일
please can someone help me to find "third-order polynomial regression for the RGB components"

채택된 답변

John D'Errico
John D'Errico 2015년 1월 19일
It is not obvious what you want, but my guess is you are doing some sort of calibration or mapping between color spaces. Perhaps mapping from one RGB space to another, or from RGB to another space, like L*a*b* or XYZ.
My polyfitn tool does that for you, although it only allows you to fit one model at a time. These mappings are actually three such models, done independently. Thus to map from RGB_in to RGB_out, you would build one model for each output variable. Thus effectively...
R_out = fr(RGB_in)
G_out = fg(RGB_in)
B_out = fb(RGB_in)
Having said that, polynomial models are frequently used. This does not say they are the best solution, only the most easily built. Sadly, sufficiently often you will find them inadequate for the purpose. In which case direct mappings to build lookup tables directly are the best way. Effectively, this is a low order spline model, usually piecewise linear.

추가 답변 (1개)

Image Analyst
Image Analyst 2015년 1월 19일
imresize() does that - bicubic interpolation. Is that an example that will work for you?
  댓글 수: 1
Image Analyst
Image Analyst 2015년 1월 19일
I also have a background correction that does it. It uses John D'Errico's polyfitn with an order of 4 but you can change it to 3 if you want:
polynomialOrder = 3;
Look for the line above in the code.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Get Started with Curve Fitting Toolbox에 대해 자세히 알아보기

태그

아직 태그를 입력하지 않았습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by