how to extract struct from a session variable?

조회 수: 3 (최근 30일)
shorav suriyal
shorav suriyal 2017년 8월 16일
댓글: shorav suriyal 2017년 8월 17일
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?

답변 (1개)

Image Analyst
Image Analyst 2017년 8월 16일
편집: Image Analyst 2017년 8월 16일
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.
  댓글 수: 1
shorav suriyal
shorav suriyal 2017년 8월 17일
Thank you so much you saved my life....Thanks again

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Image Processing and Computer Vision에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by