# Supervised Mode

When using the Red Analyze tool in Supervised Mode, follow these steps:

1. If necessary, adjust the Region of Interest (ROI). Within the Display Area, right-click and select Edit ROI from the menu.

   1. After adjusting the ROI, press the Apply button and the adjusted ROI will be applied to all of the images.
   2. Press the Close button on the toolbar to continue.
2. If there is extraneous information in the image, add appropriate masks to exclude those areas of the image. Within the Display Area, right-click and select Edit Mask from the menu.

   1. From the Mask toolbar, select and edit the appropriate masks.

   2. After adding the necessary mask(s), press the Apply button and the mask(s) will be applied to all of the images when you click Yes to the Apply Mask dialog.

   3. Press the Close button on the toolbar to continue.
3. Go through all of the images and label the defects in the images.
4. Make sure that all of the images have been labeled.
5. Prior to training, ensure that the Feature Size parameter has been set. The Feature Size parameter gives the network a clue to the size of the defects that you are interested in detecting. So, if the Feature Size parameter setting is larger than the defects in your application, there is a good chance the tool will not identify the defects in your image. You can set the Feature Size by either manually adjusting the parameter value, or graphically by re-sizing the interactive Feature Size graphic.
6. Train the tool by pressing the Brain icon.
7. After training, review the results.
   1. Go through all of the images and determine whether or not the tool correctly marked the defects in the image.
      1. If the tool has correctly marked the features, right-click the image and select Accept View.
      2. If the tool has incorrectly marked the defects, or failed to identify a present defect:
         1. Right-click the image and select Accept View.
         2. Right-click the image again and select Clear Markings and Labels.
         3. Manually label the defective image.
   2. If you encountered the scenario in (a.), you are ready to use the tool. If you encountered the scenario in (b.), you will need to retrain the tool and repeat steps 7 and 8.