How to plot contour on a series of image.

Hello, I was given a task to plot and label contour on a series of images (here attached) for the same object such that the contour for each successive image will overlay that of the previous. I tried the code below but received an error message as indicated during execution of the code. Please can anyone assist with what can be done to achieve this task? Thanks.
>> inputPath = 'C:\Users\Ogheneochuko\Desktop\Program for plotting contour\Images' dir(inputPath); dir([inputPath '\*.jpg']); listFiles = dir([inputPath '\*.jpg']); A = listFiles; contour(A') [C,h] = contour(A'); clabel(C,h) hold on
for i = 1:1:length(listFiles) I = imread([inputPath '\' listFiles(i).name]); B = imshow(I);
pause;
end
inputPath =
C:\Users\haisleyo\Desktop\Eng Control Sys and Instr\NME3511-Planning an Advanced Technical Project\Program for plotting contour\Thermal images and Matlab
. IR_6710.jpg .. IR_6707.jpg IR_6708.jpg IR_6709.jpg
IR_6707.jpg IR_6709.jpg IR_6708.jpg IR_6710.jpg
Error using double Conversion to double from struct is not possible.
Error in datachk (line 11) y = full(double(x));
Error in contour>parseargs (line 207) z = datachk(args{1});
Error in contour (line 82) [pvpairs, ~, msg] = parseargs(args);

Answers (0)

Asked:

on 12 Jun 2015

Community Treasure Hunt

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

Start Hunting!