Here we choose two parameters contour_ratio and RD_ratio as the features of SVM, which are the average number of contour points in current CU and the average RD cost in adjacent (left, left-up, up) three CU. Suppose contour_sum is the total contour number in an current CU,and pixel_sum is the number of pixels in current CU, then contour_ratio is calculated by