IP Library Granted Patent US 7,324,704
Granted Patent B2
US 7,324,704 · App. 10/659,265 · Granted Jan 29, 2008

Method of repairing scratches in digital images

View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 7,324,704
App. No.
10/659,265
Granted
Jan 29, 2008
Kind
B2
Abstract

A method of repairing scratches in a digital image includes counting the number of abnormal pixels among neighboring pixels of a selected pixel. The selected pixels that are surrounded by abnormal pixels in a number greater than a predetermined value are designed as particular pixels. An area surrounding each particular pixel is divided into a plurality of blocks. Furthermore, brightness difference between two of the blocks are calculated. Scratch pixels are found from the particular pixels based on brightness difference between blocks. Then, an area surrounded by scratch pixels are subdivided and filled up. Thereby, the scratch pixels can be precisely found and repaired without the need of hardware.

Claims (20)

1. A method of repairing scratches in digital images, the method comprising:

calculating a brightness difference between a selected pixel and one of neighboring pixels surrounding the selected pixel;

counting the number of abnormal pixels among the neighboring pixels;

designating as particular pixels the selected pixels surrounded by the abnormal pixels, wherein the number of abnormal pixels is more than a predetermined value;

dividing an area surrounding each particular pixel into a plurality of blocks, and calculating a brightness difference between the blocks;

finding out scratch pixels from the particular pixels based on brightness difference between blocks; and

subdividing and filling up an area surrounded by scratch pixels,

wherein the step of calculating brightness difference between the blocks includes estimating a mean square error of each block which has a plurality of pixels, and calculating the difference between the mean square errors.

2. The method of claim 1 , wherein a neighboring pixel is an abnormal pixel when an absolute value of the brightness difference between the neighboring pixel and its corresponding selected pixel is greater than an abnormal standard.

3. The method of claim 1 , wherein the particular pixels include scratch pixels and edge pixels.

4. The method of claim 1 , wherein the area surrounding each particular pixel is divided into 4 blocks.

5. The method of claim 1 , wherein the area surrounding each particular pixel is divided into 3 blocks.

6. The method of claim 1 , wherein the area surrounding each particular pixel is divided into 8 blocks.

7. The method of claim 1 , wherein if the number of blocks is 4, then the difference between the mean square errors is obtained according to the following expression:

Dif=MaxVar−2MidVar+MinVar,

wherein Dif is a difference of the mean square errors, MaxVar is a maximum mean square error, MinVar is a minimum mean square error, and MidVar is a middle among the three mean square error values.

8. The method of claim 1 , wherein if the number of blocks is 3, then the difference between the mean square errors is obtained according to the following expression:

Dif=MaxVar−2MidVar+MinVar,

wherein Dif is a difference of the mean sqaure errors, MaxVar is a maximum mean square error, MinVar is a minimum mean square error, and MidVar is a middle among the three mean square error values.

9. The method of claim 1 , wherein at the step of finding out scratch pixels from the particular pixels based on brightness difference between blocks, if the particular pixel has a Dif smaller than a difference standard, then the particular pixel is a scratch pixel, otherwise the particular pixel is an edge pixel.

Assignments (3)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Oct 3, 2006
From: DESTINY TECHNOLOGY CORPORATION
To: PRIMAX ELECTRONICS LTD.
Reel/Frame 018342/0543 →
CORRECTIVE ASSIGNMENT TO CORRECT ASSIGNEE'S ADDRESS PREVIOUSLY RECORDED AT REEL 014485, FRAME 0413. Recorded Aug 3, 2005
From: JIANG, YAN-RU; YEH, PO-CHIANG; DONG, RUI-JING
To: DESTINY TECHNOLOGY CORPORATION
Reel/Frame 016858/0886 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Sep 11, 2003
From: JIANG, YAN-RU; YEH, PO-CHIANG; DONG, RUI-JING
To: DESTINY TECHNOLOGY CORPORATION
Reel/Frame 014485/0413 →