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!
