How can I convert a graph representation into a density image
4 ビュー (過去 30 日間)
古いコメントを表示
Hello!
It is possible to convert a signal representation of a time series like the one shown in the attached picture (left) into a density color image (right)? Red values show the most visited (v,w) points in the representation.
Thank you!
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/927759/image.png)
0 件のコメント
回答 (2 件)
yanqi liu
2022 年 3 月 16 日
yes,sir,may be use imagesc,and colormap to get pcolor image
if possible,may be upload the data mat file to analysis
0 件のコメント
Image Analyst
2022 年 3 月 16 日
You can create a sum image. Every time you visit some (row, column) location, just increment the sum image, like
sumImage = zeros(1000, 1000); % Whatever.
for k = 1 : 1000000
% Somehow get a new row and column or x,y. Then
sumImage(row, column) = sumImage(row, column) + 1;
end
imshow(sumImage, 'Colormap', turbo(256));
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Convert Image Type についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!