maximum pixel intensity of image
Mostrar comentarios más antiguos
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..
Respuesta aceptada
Más respuestas (4)
Matt J
el 2 de Oct. de 2012
[maxval,idx]=max(image(:));
[row,col]=ind2sub(size(image), idx);
Lalit Patil
el 2 de Oct. de 2012
0 votos
Lalit Patil
el 3 de Oct. de 2012
0 votos
5 comentarios
Lalit Patil
el 3 de Oct. de 2012
Image Analyst
el 3 de Oct. de 2012
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
el 29 de Oct. de 2015
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
el 29 de Oct. de 2015
Try improfile().
Nonu 007
el 1 de Nov. de 2015
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
el 10 de Oct. de 2018
0 votos
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 comentario
Categorías
Más información sobre Images en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!