I have an image and some lat long points on that particular image. I need to visualize which block of the image has the most number of points and I need to use a png image as the xy plane of my 3d histogram.

3 visualizaciones (últimos 30 días)
I used hist3(lat,lon) to generate a 3D histogram. I would like to use the png image as the xy plane. lat and long are vectors containing latitudes and longitudes points.
I need my output to be something like this image but instead of a colored grid, I need my png image to be there.
  3 comentarios
Aswathnarayan Radhakrishnan
Aswathnarayan Radhakrishnan el 2 de Nov. de 2018
Editada: Aswathnarayan Radhakrishnan el 2 de Nov. de 2018
I have georegistered the image by using these commands:
imdata = imread('VIS.png');
[nr,nc] = size(imdata);
lonAx = linspace(-84.1010600000000039,-84.0783799999999957,nc);
latAx = linspace(39.7945199999999986,39.7789500000000018,nr);
cla,imagesc(lonAx,latAx,imdata),colormap(gray)
So the regular hist3 command exactly displays the highest bar over the region where there are the most number of points. So it makes sense to overlay it on top of the image. So is it possible to do that?
Image Analyst
Image Analyst el 2 de Nov. de 2018
No, I don't believe it does. Please attach vis.png and include your code where you took the histogram, like where you called histcounts() or histogram() or histogram2() or the old hist3(). If you called histogram2() or hist3(), then say what the two features you used were. Note that a simple surface plot or bar chart, where image intensity is mapped to a height above a surface, is NOT a histogram. A histogram is a plot of the frequency of intensity values, not the intensity values themselves.

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Histograms en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by