Sharpening a 2D histogram and finding peaks
Can you help me?
I have a bunch of 2D histograms that I’d like to sharpen so that I can identify some features. Here is an example image:
Each vertical line in the image is a scan (row) in my data and I really want to operate on a per-row basis. The sharpening needs to be primarily in the vertical (value) direction.
I’m trying to identify the center (i.e., median, mode) of the upper and the lower peak for each scan. Any intermediate peaks (for example in scans 3-10) are of lesser interest. Finding the center of the the lower peak is the primary challenge.
I have attached a data file containing the data I used to generate the plot. Here is the plotting code:
function PlotHist(plotData, plotTitle)
figure;
surf(plotData); shading("flat");
xlim([0, 4096]); xticks(0 : 512 : 4096); xlabel("Laser Value");
ylim([0, size(plotData, 1)]); ylabel("Scan");
cb = colorbar; cb.Label.String = ‘# points’;
view([90, -90])
title(plotTitle, Interpreter = ‘none’);
end
I’ve reviewed and tried a number of the Matlab answers on deblurring and sharpening, but I’m struggling to focus my results in the vertical direction.Can you help me?
I have a bunch of 2D histograms that I’d like to sharpen so that I can identify some features. Here is an example image:
Each vertical line in the image is a scan (row) in my data and I really want to operate on a per-row basis. The sharpening needs to be primarily in the vertical (value) direction.
I’m trying to identify the center (i.e., median, mode) of the upper and the lower peak for each scan. Any intermediate peaks (for example in scans 3-10) are of lesser interest. Finding the center of the the lower peak is the primary challenge.
I have attached a data file containing the data I used to generate the plot. Here is the plotting code:
function PlotHist(plotData, plotTitle)
figure;
surf(plotData); shading("flat");
xlim([0, 4096]); xticks(0 : 512 : 4096); xlabel("Laser Value");
ylim([0, size(plotData, 1)]); ylabel("Scan");
cb = colorbar; cb.Label.String = ‘# points’;
view([90, -90])
title(plotTitle, Interpreter = ‘none’);
end
I’ve reviewed and tried a number of the Matlab answers on deblurring and sharpening, but I’m struggling to focus my results in the vertical direction. Can you help me?
I have a bunch of 2D histograms that I’d like to sharpen so that I can identify some features. Here is an example image:
Each vertical line in the image is a scan (row) in my data and I really want to operate on a per-row basis. The sharpening needs to be primarily in the vertical (value) direction.
I’m trying to identify the center (i.e., median, mode) of the upper and the lower peak for each scan. Any intermediate peaks (for example in scans 3-10) are of lesser interest. Finding the center of the the lower peak is the primary challenge.
I have attached a data file containing the data I used to generate the plot. Here is the plotting code:
function PlotHist(plotData, plotTitle)
figure;
surf(plotData); shading("flat");
xlim([0, 4096]); xticks(0 : 512 : 4096); xlabel("Laser Value");
ylim([0, size(plotData, 1)]); ylabel("Scan");
cb = colorbar; cb.Label.String = ‘# points’;
view([90, -90])
title(plotTitle, Interpreter = ‘none’);
end
I’ve reviewed and tried a number of the Matlab answers on deblurring and sharpening, but I’m struggling to focus my results in the vertical direction. 2d histogram, sharpening, peak-finding MATLAB Answers — New Questions









