# High Detail Quick Mode

When using the Red Analyze Tool in Red Analyze Tool – High Detail Quick, follow these steps:

1. If a pose from a Blue Locate tool is being used to transform the orientation of the View being used as an input to the Red Analyze tool, process the images (press the Scissors icon) before opening the Red Analyze tool.

2. 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.
3. 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 will be applied to the current image.

      If you click Apply All and click Yes button on the ensuing Apply Mask dialog after adding the necessary masks, the same mask will be applied on all the images. If you click No on the dialog, the mask will not be applied and you go back to the Edit Mask window.

   3. Press the Close button on the toolbar to continue.

4. Go through all of the images and label the defects in the images. Make sure that all of the images have been labeled. See Applying Labels and High Detail Quick Mode – Labeling Defects for the details of labeling.

5. Add images to the training set.
   1. Select the images in the View Browser, and on the right-click pop-up menu click Add views to training set. To select multiple images in the View Browser, use the Shift + Left Mouse Button.
   2. Or, use Display Filters to show the desired images for the training only and add them to the training set by clicking Actions for ... views → Add views to training set.

6. Prior to training, you need to set parameters in Tool Parameters. You can configure Training and Processing parameters or just use the default values of these.

   1. Red Analyze High Detail Quick mode doesn't have Sampling parameters as it doesn't use feature-based sampler but it samples from the entire pixel of each view. For the details of training and perturbation parameters, refer to High Detail Quick Mode Tool Parameters.
   2. If you want to apply filter on the results from Database Overview, turn on Expert Mode on Help menu to initialize filter bar on Database Overview.
7. Train the tool by pressing the Brain icon.
   1. If you stop training in the middle of it by pressing the Stop icon, you can stop training with saving the current tool so far trained. You can later load this tool and process images with it, but you cannot continue the training from where the last training was stopped.
8. After training, review the results. Open Database Overview panel and review the Scores/ROC graph, the Confusion Matrix, and its F1 Score with switching over between categories in Count drop-down list. Review Precision, Recall, F-Score (Region Area Metrics) to understand the results in pixel level. See Red Analyze Tool – Statistics for the details of interpreting results.
9. After reviewing the results, go through all of the images and see how the tool correctly or incorrectly 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 again and select Clear Markings and Labels.
      2. Manually label the defective pixels.
   3. If you want to tune the result by affecting the processing, you can manipulate Processing parameters and re-process by clicking Magnifier icon to get the changed results. For example, to change the decision boundary which is determined by T1 and T2, you can manipulate the Threshold parameter.
   4. 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 the steps 6 ~ 9.