EasySegmentSupervisedInference
Support |
|
||||||
Required licenses |
EasySegment |
||||||
Recommended images |
In the Deep Learning Additional Resources, the images from the folder EasySegment Supervised/Coffee/Images |
||||||
Location |
Deep Learning Inspection\EasySegmentSupervisedInference \ |
||||||
Direct links
|
Purpose
This sample program demonstrates how to:
□ | Perform an inference with EasySegment Supervised. |
□ | Display the results. |
Code highlights
In the Deep Learning Additional Resources, use the tool EasySegment Supervised/Coffee/Tool 1/Coffee.edltool.
1. | Apply the EasySegment Supervised tool on an image. |
ESupervisedSegmenterResult m_Result = m_Segmenter.Apply(m_Img);
2. | Draw the image. |
if (!pDoc->m_Img.IsVoid())
{
pDoc->m_Img.Draw(hDC, 2.f, 2.f, -20, -20);
}
3. | Draw the segmentation map. |
pDoc->m_Result.Draw(hDC);