フィルターのクリア

create a 3D view from a 2D section

1 回表示 (過去 30 日間)
marcel
marcel 2012 年 7 月 17 日
hello everybody. I have 2D image are the measure of diameter of a pipe, this measure is carried out are of a variable distance, how I can build a 3D view from these 2D sections respecting the height, and especially the rotation thereof following the xy plane? I add my code thank you all
%
clear all
close all
M=importdata('Scanner.txt');
[R,C] = find(M>0);
Ma=max(R);
for i=1:Ma
V=find(R==i);
x=(C(V))';
y=M(i,x);
%élimination des points abérants
MEDIAN=mean(y);
I=find(y>MEDIAN-10 & y<MEDIAN+10);
xcalcul=x(I);ycalcul=y(I);
[Xcalcul,Ycalcul] = pol2cart(xcalcul/1800*pi,ycalcul);
[X,Y] = pol2cart(x/1800*pi,y);
MAT(i) = fit_ellipse( Xcalcul,Ycalcul,gca);
end
and i use fit_ellipse fonction to create my 2D image

回答 (0 件)

カテゴリ

Help Center および File ExchangeImages についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by