Remove object from plot
古いコメントを表示
Hello People, i have following code
pic01=imread("1.tiff");
pic1=im2gray(pic01);
i=1;
boundaries=[];
for i=3:25:222;
pic050=im2gray( imread(i+".tiff") );
%pic50=im2gray(pic050);
newpicture=imsubtract(pic01,pic050);
%imshow(newpicture)
level = graythresh(newpicture);
level = 0.19;
newbinpic = imbinarize(newpicture,level);
%imshowpair(newpicture,newbinpic,'montage')
newbinpic2=bwpropfilt(newbinpic,'perimeter',1);
% imshowpair(newbinpic2,newpicture,'montage');
boundariesi = bwboundaries(newbinpic2,'noholes');
boundaries=[boundaries;boundariesi];
binaryImage = 0.6< newbinpic2 & newbinpic2<1;
end
%figure;
%imshow(pic01);
t = 0:1:2000; %setup time
clors= hsv(numel(t)); %create a color map of different color for each time
figure(1),clf,hold on
%hold on
t1=1;
for k=1:length(boundaries)
thisBoundary = boundaries{k};
x = thisBoundary(:,2);
y = thisBoundary(:,1);
plot(x,y,'color',clors(t1,:),'Linewidth',2);
t1 = t1+10;
end
axis off
grid off
Which takes a series of photos and creates this 'plot' out of it

My question is, does anyone maybe have an idea on how to remove the nozzle (this thing in middle) along with the tube it kinda ruins the plot i think. Thanks very much bois and girls!
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Image Processing Toolbox についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
