How is curve fitting in image processing?

조회 수: 3 (최근 30일)
linda cummings cummingslinda14@gmail.com
I use the following code: but has an error?
v_BW = im2bw (v, level); [y x] = find(v_BW); right = x<300; xr = x(right); yr = y(right); pr = polyfit( yr, xr, 3 );
yy = linspace( 1, size(v_BW,1), 50 );
figure; imshow(v_BW, 'border', 'tight' ); hold all plot( polyval( pr, yy ), yy, '*', 'LineWidth', 3 );
floorline (1, :) = floor (xr);
floorline (2, :) = floor (yr); linda cummings: cummingslinda14 at gmail com
  댓글 수: 2
John D'Errico
John D'Errico 2016년 9월 9일
편집: John D'Errico 2016년 9월 9일
When you claim something has an error in it, provide the error message! Paste in the entire text of the error. We cannot replicate your error, since we don't have those variables to run your code.
linda cummings cummingslinda14@gmail.com
Thank you so much. I solved the problem. I found the error.

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 Surface and Mesh Plots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by