How do I threshold only a certain portion of an image?

4 visualizaciones (últimos 30 días)
Alexander Killam
Alexander Killam el 17 de Feb. de 2014
Editada: Dishant Arora el 21 de Feb. de 2014
I am trying to find the coordinates of something in an image. For example, I have to find any image on google, select a point of interest and find the coordinates of it. For my first example I am using a baseball player throwing a baseball. I converted to gray scale and threshold to only show the white portions of the image. Although, the baseball players pants are getting into the picture along with the baseball. Is there any way I am able to only threshold where the baseball is at or something to just find the point of interest I am looking for. I have only been using Matlab for about a week. Therefore, please try and break the answer down to a dummy language where I can understand, lol. Thank you for the help.

Respuesta aceptada

Image Analyst
Image Analyst el 17 de Feb. de 2014
If the baseball is the same intensity as other pixels in the image then you're going to have to look at other things to extract only the baseball, such as area or circularity.
  4 comentarios
Alexander Killam
Alexander Killam el 21 de Feb. de 2014
You are right. i am just trying to learn from Matlab all on my own without any experience. May be going a little to advanced for what I know. Thank you.
Dishant Arora
Dishant Arora el 21 de Feb. de 2014
Editada: Dishant Arora el 21 de Feb. de 2014
To understand the program better set breakpoint in the code, go through the code line by line, step in to the functions to learn more about functions called.
And it'd be better if you have some prior knowledge of image processing before directly jumping into MATLAB. You can refer to Digital Image Processing/Digital Image Processing using MATLAB by Gonzalez to start with.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

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

Community Treasure Hunt

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

Start Hunting!

Translated by