Image processing device, image processing method, and recording medium storing image processing program
First Claim
1. An image processing device comprising:
- a binary image generating part that generates binary image data from inputted image data; and
a skew angle detecting part that calculates a skew angle of the image data inputted by an input part from the binary image data generated by the binary image generating part, wherein the skew angle detecting part includes;
a Hough transform part that executes Hough transform to the binary image data generated by the binary image generating part to generate Hough space data;
a frequency calculating part that executes a specific calculation to each of frequencies of data from the Hough space data generated by the Hough transform part, and adds an attained calculation result by each angle to generate first frequency calculation data; and
an angle detecting part that calculates an angle from the first frequency calculation data generated by the frequency calculating part.
1 Assignment
0 Petitions
Accused Products
Abstract
A Hough transform unit executes Hough transform to HIGH pixels of outline binary image data inputted thereto, and stores the calculation result in a Hough space data storage. A Hough space data calculating/projecting unit sequentially reads out data stored in the Hough space data storage, executes a specific calculation, and thereafter stores the calculation result sequentially in a calculated projection data storage. An angle detector sequentially reads out calculated frequency data stored in the calculated projection data storage, calculates the maximal value of the data read out, and detects an angle that gives the maximal value as the skew angle. The image processing device, being thus configured, allows detecting and correcting the skew angle with high accuracy, even when the input image contains image elements such as photograph images and dot images.
30 Citations
25 Claims
-
1. An image processing device comprising:
-
a binary image generating part that generates binary image data from inputted image data; and
a skew angle detecting part that calculates a skew angle of the image data inputted by an input part from the binary image data generated by the binary image generating part, wherein the skew angle detecting part includes;
a Hough transform part that executes Hough transform to the binary image data generated by the binary image generating part to generate Hough space data;
a frequency calculating part that executes a specific calculation to each of frequencies of data from the Hough space data generated by the Hough transform part, and adds an attained calculation result by each angle to generate first frequency calculation data; and
an angle detecting part that calculates an angle from the first frequency calculation data generated by the frequency calculating part. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 24)
-
-
23. An image processing method that generates binary image data from inputted image data, and detects a skew angle of the inputted image data from the binary image data generated, the method comprising the steps of:
-
executing Hough transform to the binary image data to generate Hough space data;
executing a specific calculation to each of frequencies of the Hough space data and adding an attained calculation result to each angle to generate first frequency calculation data; and
calculating an angle from the first frequency calculation data.
-
-
25. A recording medium readable by a computer, the recording medium storing a program of instructions executable by the computer to perform a function for image processing, the function comprising the steps of:
-
executing Hough transform to the binary image data to generate Hough space data;
executing a specific calculation to each of frequencies of the Hough space data and adding an attained calculation result to each angle to generate first frequency calculation data; and
calculating an angle from the first frequency calculation data.
-
Specification