Computer-readable storage medium, image processing apparatus, image processing system, and image processing method
First Claim
1. A non-transitory computer-readable storage medium having stored thereon an image processing program which, when executed by a computer of an information processing apparatus, causes the computer to perform operations comprising:
- acquiring an image from an imaging device;
detecting from the image a series of edge pixels representing a contour of an object or of a design represented in the object;
generating a plurality of straight lines on the basis of the series of edge pixels;
detecting vertices of the contour on the basis of the plurality of straight lines;
calculating positions and orientations of the imaging device and the object relative to each other on the basis of the vertices;
setting a virtual camera in a virtual space on the basis of the calculated positions and the calculated orientations; and
displaying on a display device a virtual space image obtained by capturing the virtual space with the set virtual camera,wherein the plurality of straight lines are generated by repeatedly generating or updating a straight line clockwise or counterclockwise starting at any one of the series of edge pixels.
1 Assignment
0 Petitions
Accused Products
Abstract
First, a series of edge pixels representing a contour of an object or of a design represented in the object are detected from an image acquired from a capturing apparatus. Then, a plurality of straight lines are generated on the basis of the series of detected edge pixels, and vertices of the contour are detected on the basis of the plurality of straight lines. Further, relative positions and orientations of the capturing apparatus and the object relative to each other are calculated on the basis of the detected vertices, and a virtual camera in a virtual space is set on the basis of the positions and the orientations. Then, a virtual space image obtained by capturing the virtual space with the virtual camera is displayed on a display device.
-
Citations
20 Claims
-
1. A non-transitory computer-readable storage medium having stored thereon an image processing program which, when executed by a computer of an information processing apparatus, causes the computer to perform operations comprising:
-
acquiring an image from an imaging device; detecting from the image a series of edge pixels representing a contour of an object or of a design represented in the object; generating a plurality of straight lines on the basis of the series of edge pixels; detecting vertices of the contour on the basis of the plurality of straight lines; calculating positions and orientations of the imaging device and the object relative to each other on the basis of the vertices; setting a virtual camera in a virtual space on the basis of the calculated positions and the calculated orientations; and displaying on a display device a virtual space image obtained by capturing the virtual space with the set virtual camera, wherein the plurality of straight lines are generated by repeatedly generating or updating a straight line clockwise or counterclockwise starting at any one of the series of edge pixels. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10)
-
-
11. An image processing apparatus comprising:
-
a memory; and a processing system communicatively coupled to the memory and comprising at least one processor configured to perform operations comprising; acquiring an image from an imaging device; detecting from the image a series of edge pixels representing at least one of a contour of an object or a contour of a design represented in the object; generating a plurality of straight lines on the basis of the series of edge pixels; detecting vertices of the contour of the object or the contour of the design represented in the object on the basis of the plurality of straight lines; calculating aspects of positions and orientations of the imaging device and the object relative to each other on the basis of the vertices; setting a virtual camera in a virtual space on the basis of the calculated aspects of positions and the calculated aspects of orientations; and displaying on a display device a virtual space image obtained by capturing the virtual space with the set virtual camera, wherein the plurality of straight lines are generated by repeatedly generating or updating a straight line clockwise or counterclockwise starting at any one of the series of edge pixels. - View Dependent Claims (15, 16, 17)
-
-
12. An image processing method comprising:
-
acquiring an image from an imaging device; detecting from the image a series of edge pixels representing one or both of a contour of an object or a contour of a design represented in the object; generating a plurality of straight lines on the basis of the series of edge pixels; detecting vertices of the contour of the object or of the contour of the design represented in the object on the basis of the plurality of straight lines; calculating aspects of positions and orientations of the capturing means and the object relative to each other on the basis of the vertices; setting a virtual camera in a virtual space on the basis of the calculated aspects of positions and the calculated aspects of orientations; and displaying on a display device a virtual space image obtained by capturing the virtual space with the set virtual camera, wherein the plurality of straight lines are generated by repeatedly generating or updating a straight line clockwise or counterclockwise starting at any one of the series of edge pixels. - View Dependent Claims (18, 19, 20)
-
-
13. An image processing system comprising:
-
an imaging device; a memory; a processing system including at least one processor, the processing system communicatively coupled to the imaging device and the memory, the processing system configured to perform operations comprising; acquiring an image from the imaging device; detecting from the image a series of edge pixels representing a contour of an object or of a design represented in the object; generating a plurality of straight lines on the basis of the series of edge pixels; detecting vertices of the contour on the basis of the plurality of straight lines; calculating positions and orientations of the imaging device and the object relative to each other on the basis of the vertices; setting a virtual camera in a virtual space on the basis of the calculated positions and the calculated orientations; and displaying on a display device a virtual space image obtained by capturing the virtual space with the set virtual camera, wherein the plurality of straight lines are generated by repeatedly generating or updating a straight line clockwise or counterclockwise starting at any one of the series of edge pixels.
-
-
14. An image processing system including an image processing apparatus and a marker, the image processing apparatus comprising:
-
a capturing section for capturing the marker; a processing system comprising at least one processor, the processing system communicatively coupled to the capturing section and configured to perform operations comprising; acquiring an image from the capturing section; detecting from the image a series of edge pixels representing a contour of the marker or of a design represented in the marker; generating a plurality of straight lines on the basis of the series of edge pixels; detecting vertices of the contour on the basis of the plurality of straight lines; calculating positions and orientations of the capturing section and the marker relative to each other on the basis of the vertices; setting a virtual camera in a virtual space on the basis of the calculated positions and the calculated orientations; and displaying on a display device a virtual space image obtained by capturing the virtual space with the set virtual camera, wherein the plurality of straight lines are generated by repeatedly generating or updating a straight line clockwise or counterclockwise starting at any one of the series of edge pixels.
-
Specification