studentTeacherAnomalyDetector
R2026bDescription
Add-On Required: This feature requires the Visual Inspection Toolbox Model for Student-Teacher Anomaly Detection add-on.
The studentTeacherAnomalyDetector object detects images of
anomalies using a Student-Teacher anomaly detector network. Train the detector using the
trainStudentTeacherAnomalyDetector function. To detect anomalous images, pass
the trained detector to the classify function.
You can perform tile based anomaly detection using the Student-Teacher anomaly detector. You can train the detector on smaller tiles extracted from a larger image and then perform inference on the full image. For best results, the tiles and the full image must be of the same resolution.
Creation
Description
creates a Student-Teacher anomaly detector. detector = studentTeacherAnomalyDetector
sets writable properties using one or more name-value arguments. For example,
detector = studentTeacherAnomalyDetector(Name=Value)Network="small" specifies use a small base network for the
Student-Teacher anomaly detector network.
Name-Value Arguments
Output Arguments
Properties
Object Functions
predict | Predict unnormalized anomaly scores |
classify | Classify image as normal or anomalous |
anomalyMap | Predict per-pixel anomaly score map |
exportONNXNetwork | Export Student-Teacher anomaly detector to ONNX model format |
Examples
More About
Extended Capabilities
Version History
Introduced in R2026b