MATLAB Answers

How to apply Matlab CNN code to analyze the image?

조회 수: 4(최근 30일)
Yun Su Kim
Yun Su Kim 8 Aug 2019
답변: Yogesh Khurana 19 Aug 2019
Using Matlab, we want to analyze the proportions of the elements inside the circle except for the outer part of the circle in the picture. The photo is part of the asphalt cross section taken by CT. The method I tried was through histogram analysis,
The black part is separated by air
If the remaining white and gray remain, the color from white to gray will be classified as aggregate (stone), and the remaining gray will be classified as asphalt (adhesive-like material).
At first, I didn't know how to do matlab at all.
I ran into a limitation in writing code and wrote to fix this.
Also, because I have thousands of related pictures
You may be able to solve the problems mentioned above through learning (CNN).
I would be very grateful if you could write some code or give advice on this.
For example, using a lot of CT data
The black part is classified as air,
White parts and intermediate colors that go from white to gray are classified as aggregates,
The gray part is classified as asphalt (adhesive-like material)
I want to find out the ratio.
My preferred method is to use CNN. In addition, I would like to see classified air, aggregate, and asphalt separately on the matlab. Parts outside the circle are always excluded from analysis.


Yogesh Khurana
Yogesh Khurana 19 Aug 2019
I am assuming that you want to create a new model for classifying the regions in attached image or similar to that. I would suggest you some links that can be useful for creating a CNN model in MATLAB and using that for object (region) classification (I think you can't use pretrained models here). Please refer to the following links for more information:
Hope it will help!

Community Treasure Hunt

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

Start Hunting!

Translated by