Overlapping binary data and figure

조회 수: 1 (최근 30일)
ajk1
ajk1 2016년 9월 9일
편집: ajk1 2016년 9월 10일
Hi, I have 11 binary datasets of the same object (all size 297x258) saved in data1 (hyperlink to binary data) and I would like to produce an image with these data overlapped on each other, each assigned a different colour with the background removed (white). An example of the desired output is shown in the attachment. I generate the figure of these datasets using:
figure, imshow(data1{1}),axis image, colormap(jet) % to generate figure of data1{1}, data1{2},...data1{11}
Additionally any help finding the average increase in size (increase in y-axis) between 'data1{1}' and 'data1{11}' for every x value increment is also appreciated. Each set of data: data1{1}, data1{2}, ...data1{11} is representative of times 1, 2, ...11 respectively and I would like to plot a graph of (average increase in y-axis divided by time) against the X-axis (1:297). Your help is very much appreciated.
My thoughts so far are:
for x=1:x_dim % where xdim is 297 (along the X-axis)
for y=1:ydim % where ydim is 258 (along the y-axis)
%execute code to determine increase in y-direction between binary datasets data1{1}, data1{2},...data1{11}.
%Then compute average for growth in the y-direction between each time
end
%Plot figure of average increase in y-axis against x-axis.
end

답변 (0개)

카테고리

Help CenterFile Exchange에서 Convert Image Type에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by