필터 지우기
필터 지우기

heatmap gradients: change intensity

조회 수: 5 (최근 30일)
Jessica
Jessica 2015년 5월 10일
댓글: Walter Roberson 2015년 5월 10일
I have created a heatmap with coordinates on an image. The problem is that coordinates that are near each other are appearing more intense because they are clustered (not because their individual intensities are greater). Is it possible to create the heatmap such that each coordinate is displayed with an intensity that matches its exact frequency and not lumped with the surrounding coordinates.
  댓글 수: 1
Image Analyst
Image Analyst 2015년 5월 10일
Please attach screenshot(s) so we can visualize what you're talking about. Attaching sample data and a script to create the visualization would also be useful. Use the green and brown frame icon to attach the picture and the paperclip icon to attach your m-file.

댓글을 달려면 로그인하십시오.

답변 (1개)

Walter Roberson
Walter Roberson 2015년 5월 10일
pointsize = 15; %fiddle with this
scatter3(Xvector, Yvector, zeros(length(Zvector),1), pointsize, Zvector()); %use Z as color index on flat plot
grid off
view([0 90]); %look from the top onto the flat 3D plot.
  댓글 수: 2
Image Analyst
Image Analyst 2015년 5월 10일
I was thinking they'd have a continuous, solid surface like they'd use scatteredInterpolant on a handful of scattered intensity measurements.
Walter Roberson
Walter Roberson 2015년 5월 10일
Except they specifically asked for each coordinate displayed with local intensity, not consolidated with surrounding, which scatteredInterpolant would do.
I am making assumptions here about how the heatmap was generated. The heatmap routines I find such as in the Bioinformatics toolbox and in the File Exchange work with grids of data and pretty much come out the same as imagesc(Data) it appears. So I am assuming that the poster is using a different routine entirely that is gridding the data. But I don't know which routine they are using.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Data Distribution Plots에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by