bounding box for ratio

1 visualización (últimos 30 días)
mohammed
mohammed el 9 de Oct. de 2013
Comentada: Sean de Wolski el 9 de Oct. de 2013
i wanted to calculate simple bounding box ratio.
m=(a1*b1)/a+b
where
a1=width of bounding box
b1=height of bounding box
a= width of image
b=height of image.
plz help me. first time i am using bounding box..

Respuesta aceptada

Sean de Wolski
Sean de Wolski el 9 de Oct. de 2013
Editada: Sean de Wolski el 9 de Oct. de 2013
doc regionprops
Will give you bounding box.
doc size
Will give you image size.
  2 comentarios
mohammed
mohammed el 9 de Oct. de 2013
Editada: mohammed el 9 de Oct. de 2013
thanks .......
but i would like to know that, can i use rgb image instead of BW image...
Sean de Wolski
Sean de Wolski el 9 de Oct. de 2013
Well then figure out how you defined a region of interest in your rgb image, once you have this, repeat with regionprops, or just use find to find the indices and compute bounding box yourself.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Image Segmentation and Analysis 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