histogram change over time
조회 수: 8 (최근 30일)
이전 댓글 표시
hello!
I have a collation of images. each image was taken in different time, meaning: img1(t=0), img2(t=T),img2(t=2T), ... I want to show the change in histogram over time. I want to plot 3d figure where: axis x and z will be histogram of each img and axis y will be the time count.
for example, for y=0, I will see the histogram of img1 on x & z axis for y=1, I will see the histogram of img2 on x & z axis and so on.
ideas?
댓글 수: 0
답변 (1개)
Pawel Jastrzebski
2018년 1월 9일
If you're looking for inspiration, check out the link below with plenty of examples and source code:
Or check out the code below as a starting point:
% Matrix 't' represents photos
% 1 row = 1 photo
t = randn(5,50)
binNo = 10 % number of bins for the histogram
bins = zeros(size(t,1),binNo) % preallocation
% 'FOR' loop to get the histogram values for each photo
for i=1:size(t,1)
h = histogram(t(i,:),...
binNo)
bins(i,:) = h.Values
end
% plot histogram bins as 3D bar-chart
b = bar3(bins)
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Histograms에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!