Image processing apparatus and non-transitory computer readable recording medium
AssigneeKYOCERA Document Solutions Inc.
InventorYASUHIDE SATO
Life of this patent
Estimating the term…
Abstract
An image processing apparatus includes a controller circuit configured to calculate a number of multiple micro-triangles included in a region of each pixel of the multiple pixels, the region being covered by the right triangle, each micro-triangle of the multiple micro-triangles and the first micro-triangle being congruent, and calculate an area of the region of each pixel of the multiple pixels, the region being covered by the right triangle, on a basis of the number of the multiple micro-triangles and the area of the first micro-triangle.
Claims5
An image processing apparatus, comprising:
- a controller circuit configured to
- detect a first point in a pixel group, the pixel group including multiple rectangular pixels arrayed in one line in series in a scan line direction, each pixel of the multiple pixels being divided into multiple rectangular sub-pixels, the multiple rectangular sub-pixels being arranged in matrix in the scan line direction and in a perpendicular direction, the perpendicular direction being a direction perpendicular to the scan line direction, a lower side and an upper side of the pixel group being in parallel with the scan line direction, the first point being a point on which the lower side of the pixel group and an edge line cross each other, the edge line being a line indicating an edge of an image-to-be-rendered,
- detect a second point, the second point being a point on which the upper side of the pixel group and the edge line cross each other,
- select a first vertex, the first vertex being one vertex of two vertices positioned on a lower side of a first sub-pixel, the first sub-pixel being a sub-pixel including the first point out of the multiple sub-pixels,
- select a second vertex, the second vertex being one vertex of two vertices positioned on an upper side of a second sub-pixel, the second sub-pixel being a sub-pixel including the second point out of the multiple sub-pixels,
- create a right triangle, the right triangle including the image, the right triangle having a hypotenuse and a first cathetus, the hypotenuse being a line segment from the first vertex to the second vertex, the first cathetus being the upper side or the lower side of the pixel group,
- calculate an area of a first micro-triangle, the first micro-triangle being included in the first sub-pixel or the second sub-pixel, the first micro-triangle including the image, the image having a hypotenuse, one cathetus, and one other cathetus, the hypotenuse being the line segment, the one cathetus being the first cathetus of the right triangle, the one other cathetus being one side of the first sub-pixel or the second sub-pixel, the first micro-triangle and the right triangle having a geometrical similarity,
- calculate a number of multiple micro-triangles included in a region of each pixel of the multiple pixels, the region being covered by the right triangle, each micro-triangle of the multiple micro-triangles and the first micro-triangle being congruent, and
- calculate an area of the region of each pixel of the multiple pixels, the region being covered by the right triangle, on a basis of the number of the multiple micro-triangles and the area of the first micro-triangle.
A non-transitory computer readable recording medium that stores an image processing program, the image processing program causing a controller circuit of an image processing apparatus to:
- detect a first point in a pixel group, the pixel group including multiple rectangular pixels arrayed in one line in series in a scan line direction, each pixel of the multiple pixels being divided into multiple rectangular sub-pixels, the multiple rectangular sub-pixels being arranged in matrix in the scan line direction and in a perpendicular direction, the perpendicular direction being a direction perpendicular to the scan line direction, a lower side and an upper side of the pixel group being in parallel with the scan line direction, the first point being a point on which the lower side of the pixel group and an edge line cross each other, the edge line being a line indicating an edge of an image-to-be-rendered;
- detect a second point, the second point being a point on which the upper side of the pixel group and the edge line cross each other;
- select a first vertex, the first vertex being one vertex of two vertices positioned on a lower side of a first sub-pixel, the first sub-pixel being a sub-pixel including the first point out of the multiple sub-pixels;
- select a second vertex, the second vertex being one vertex of two vertices positioned on an upper side of a second sub-pixel, the second sub-pixel being a sub-pixel including the second point out of the multiple sub-pixels;
- create a right triangle, the right triangle including the image, the right triangle having a hypotenuse and a first cathetus, the hypotenuse being a line segment from the first vertex to the second vertex, the first cathetus being the upper side or the lower side of the pixel group;
- calculate an area of a first micro-triangle, the first micro-triangle being included in the first sub-pixel or the second sub-pixel, the first micro-triangle including the image, the image having a hypotenuse, one cathetus, and one other cathetus, the hypotenuse being the line segment, the one cathetus being the first cathetus of the right triangle, the one other cathetus being one side of the first sub-pixel or the second sub-pixel, the first micro-triangle and the right triangle having a geometrical similarity;
- calculate a number of multiple micro-triangles included in a region of each pixel of the multiple pixels, the region being covered by the right triangle, each micro-triangle of the multiple micro-triangles and the first micro-triangle being congruent;
- and
- calculate an area of the region of each pixel of the multiple pixels, the region being covered by the right triangle, on a basis of the number of the multiple micro-triangles and the area of the first micro-triangle.
Dependencies are inferred from the claim text.