maximum pixel intensity of image
显示 更早的评论
My current project is based on CCD and LASER. i want to calculate maximum intensity of laser strip on ccd.. so please give me a code to find maximum intensity pixel and location of that pixel as row and column..
采纳的回答
更多回答(4 个)
Matt J
2012-10-2
[maxval,idx]=max(image(:));
[row,col]=ind2sub(size(image), idx);
Lalit Patil
2012-10-3
0 个投票
5 个评论
Lalit Patil
2012-10-3
Image Analyst
2012-10-3
Yes, taking the blue channel will give you the best contrast for a red laser. Of course that doesn't solve the location (centroid) problem.
Nonu 007
2015-10-29
Hey I am doing same analysis. But now i want a cross-section line of beam at highest intensity. Can you suggest me what to do for that... Please reply asap. thanks in advance.
Image Analyst
2015-10-29
Try improfile().
Nonu 007
2015-11-1
Hello Image Analyst. I am trying that too but I am not getting a single line of cross section in 2D at highest Peak. Here i am attaching a fig. May be from that you can help me.

I want a cross section line like this from the image at max intensity.
Shel
2018-10-10
0 个投票
Hi, I am using max(I(:)) on my image but the error "Index exceeds matrix dimensions. " shows up ... do you know what the problem is?
1 个评论
类别
在 帮助中心 和 File Exchange 中查找有关 Images 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!