https://es.mathworks.com/help/vision/ref/fastflowanomalydetector.html
fastFlowAnomalyDetector - Detect anomalies using FastFlow network - MATLAB
The fastFlowAnomalyDetector object detects images of anomalies using a FastFlow anomaly detector network.
detectanomaliesusingfastflownetwork