* This example program shows you how to use the novelty detection mode of
* the SVM classifier to perform a web inspection task. The novelty detection
* basically classifies feature vectors that are not contained in the training
* samples as a new class (hence the name). For the web inspection task,
* the SVM hence can be used to detect textures that do not correspond to the
* texture of the trained good objects.
* 这个示例程序向您展示了如何使用SVM分类器的新颖性检测模式来执行web检查任务。
新颖性检测基本上是将不包含在训练样本中的特征向量分类为一个新类(因此得名)。
因此,在web检测任务中,SVM可以用来检测与训练好的目标纹理不一致的纹理。
*显示设置
dev_update_off ()
*
read_image (Image, 'plastic_mesh/plastic_mesh_01')//读图
get_image_size (Image, Width, Height)//获得图像尺寸
dev_close_window ()
dev_open_window (0, 0, Width, Height, 'black', WindowHandle)
dev_set_color ('red')
set_display_font (WindowHandle, 16, 'mono', 'true', 'false')
* The texture filters used for the classification will return artifacts at the image
* borders because the images of the plastic mesh to be in