Single Image Defocus Blur Segmentation Using Local Ternary Pattern