# Create a Layout Model in Blue Locate

Once features have been labeled, a layout model can be created. There are two different methods to create a layout model:

- The right-click menu, Create Model option
- The Tool menu, Edit Models option

Note:

One limitation of the layout model interface is that a given region may specify which feature types are valid as well as the total number of features (Feature Count) that are required for the region to be valid. More complex types of validation expressions are not supported (for example, a single region that requires one instance of FeatureA, three instances of FeatureB and two instances of FeatureC).

To implement more complex validation expressions, you can "stack" regions by creating multiple regions with the same location and dimensions, but different validation criteria for each region. For example, Region1 would have FeatureA selected, and one instance of FeatureA; Region2 would have FeatureB selected, and three instances of FeatureB; and Region3 would have FeatureC selected, and two instances of FeatureC.

In order for the model to pass, all of the regions must pass.

### Create a Layout Model – Right-click Menu Option

1. Select the features that you want included in your layout model, right-click above one of the features and select Create Layout Model.

2. The tool will automatically generate a layout model.

3. Each feature will have a corresponding layout region (the name corresponds to the feature), with the feature automatically selected for the region. Modify the regions and selected features as desired.

4. Press the Process icon of the tool to apply the model to all of the images.

### Create a Layout Model – Edit Models Option

1. Label the desired features that should be in your layout model.

2. From the Tool menu, select Edit Models.

3. In the Model Editor dialog, select Layout Model.

4. This will launch the layout model editor, where you can press the Add button to configure a region of interest that will define where to search for one or more features.

5. Configure the region of interest over the desired area of the image.

6. Select the region, and then select the feature(s) in the Feature Matching selector menu, and in the Feature Count field, set the number of instances for all of the features (in other words, the sum) within the region.

7. You can repeat steps 3 through 5 for each of the regions that should compose the model.

8. After closing the layout model (press the X button in the upper-right corner of the dialog), you will get feedback by the tool in the image/view.

   The check marks in the lower-left corner indicate if the region passed. If the features were not found, there will be an X instead of a check mark.

9. Press the Process icon of the tool to apply the model to all of the images.