Overlapping binary data and figure
3 次查看(过去 30 天)
显示 更早的评论
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 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Graphics Object Programming 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!