Borrar filtros
Borrar filtros

how to extract struct from a session variable?

1 visualización (últimos 30 días)
shorav suriyal
shorav suriyal el 16 de Ag. de 2017
Comentada: shorav suriyal el 17 de Ag. de 2017
i have a variable that i generated from the image labeler app in matlab. The variable name is labelingSession.mat , now from this variable i want to extract data variable name ROIBoundingBoxes which is a struct. i tried with load function but its not working for me. Please help me in this situation?

Respuestas (1)

Image Analyst
Image Analyst el 16 de Ag. de 2017
Editada: Image Analyst el 16 de Ag. de 2017
It looks like it would be labelingSession.ImageSet.ROIBoundingBoxes. There are 13 of them. So if you want box 9, you'd do
box9 = labelingSession.ImageSet.ROIBoundingBoxes(9);
box9 would probably then be a structure with 4 fields: box9.x, box9.y, box9.width, and box9.height.

Categorías

Más información sobre Computer Vision Toolbox 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