Mean Square Error (MSE) of Bezier Curve.
조회 수: 3 (최근 30일)
이전 댓글 표시
I have a question. How can I find MSE of cubic Bezier Curve? Any helps regarding the command/code?
t=0:0.001:1;
b0=(1-t).^3;
b1=3*t.*(1-t).^2;
b2=3*t.^2.*(1-t);
b3=t.^4;
figure (1)
plot(t,b0)
hold on
plot(t,b1)
plot(t,b2)
plot(t,b3)
P0=[191,36];
P1=[134,-100];
P2=[-237,103];
P3=[129,326];
x=P0(1)*b0 + P1(1)*b1 + P2(1)*b2 + P3(1)*b3;
y=P0(2)*b0 + P1(2)*b1 + P2(2)*b2 + P3(2)*b3;
P=[P0;P1;P2;P3];
% C = [x(t),y(t)]
figure (2)
plot (x,y)
hold on
plot (P(:,1),P(:,2))
댓글 수: 0
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Interpolation에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!