Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

init

  • Loading branch information...
commit 8a2fd9ca481461b445ef50c2876a3435e7fdc703 0 parents
@yehzu authored
Showing with 15 additions and 0 deletions.
  1. +15 −0 multi_dir_scratch_detection.m
15 multi_dir_scratch_detection.m
@@ -0,0 +1,15 @@
+function multi_dir_scratch_detection(img)
+
+[img_width, img_height, img_color] = size(img);
+
+%%%% step 1: preprocessing
+ % get sharp part of img
+ h = fspecial('gaussian');
+ bluredImg = imfilter(img, h);
+ sharpImg = img - bluredImg;
+
+ imshow(sharpImg);
+ % apply band-pass filter (Kass and Witkin [5])
+
+
+
Please sign in to comment.
Something went wrong with that request. Please try again.