Can i use matlab labelled image dataset in python based deep learning algorithms?

조회 수: 18 (최근 30일)
Hi,
I have finished labelling all my images using Matlab Image labeler tool.
I am planning to use python based deep learning algorithm to train my model. Can the Matlab labelled images be used in python based deep learning algorithm??
Thanks,
Arun
  댓글 수: 3
Arunpriyan J
Arunpriyan J 2019년 1월 22일
1.png
Label_1.png
Thanks for your reply....
I have attached my original image and annotated image(Second Image). In the second image i am unable to see any pixel variation.(Its totally black image as you can see).
Thats why i am confused whether this Matlab labelled image can be used in Python for training my model....????
My python program needs file input format as *.PNG and both the original image and labelled images are in this format.
Thanks,
Arun
Alok Nimrani
Alok Nimrani 2019년 1월 22일
Hi Arun,
The following documentation represents an example regarding how to view the exported pixel label data in MATLAB: View exported pixel label data
You can follow a similar approach to use the label files in Python.
Please note that the pixel label data consists of label values which are basically the indices assigned to different objects in the image. Since these values are indices starting from 1, you will get a gray-scale image based on the maximum value of these indices. This is the reason as to why you are visualizing a black image in the above case. You can verify this from the pixel values of the blackish image shared by you.
You will need to overlay this pixel label image on the top of the actual image to visualize the different labels.
Hope this helps.

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

채택된 답변

Isee You
Isee You 2021년 3월 29일
Hi there
yes you can i did it
but to achive that you must save the ground truth as tabel , not as ground truth.
if you have more than one class ,you must do it class by class not (the tabel is only two coulm(image name- boxing))
  • export gtruth as tabel in workspace
  • run the code
note
to avoid any problem with image names(if have more than one class) rename all images with deffrent names because in python , they will be put in one folder

추가 답변 (1개)

Myat Noe Su
Myat Noe Su 2020년 11월 11일
Hi,
I have finished labelling all my images using Matlab Image labeler tool.
I am planning to use python based deep learning algorithm to train my model. Can the Matlab labelled images be used in python based deep learning algorithm??
Thanks,
Su

카테고리

Help CenterFile Exchange에서 Call Python from MATLAB에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by