Image processing apparatus and image processing method
Provided are an image processing method and an image processing apparatus. The image processing method includes obtaining scan data by scanning an object including a hole, obtaining at least one parameter for recognizing an inner region of the hole from the scan data, and recognizing the inner region of the hole from the scan data based on the obtained at least one parameter.
1 . An image processing method comprising:
obtaining scan data by scanning an object including a hole, wherein the scan data includes a portion of an inner region of the hole;
obtaining, from the scan data, at least one parameter for recognizing the inner region of the hole;
recognizing the inner region of the hole from the scan data based on the obtained at least one parameter;
deleting the inner region of the hole in the scan data; and
obtaining, based on the scan data from which the inner region of the hole has been deleted, a final image indicating a form in which the hole is filled with a filler,
wherein the object includes an abutment including a screw hole.
2 . The image processing method of claim 1 , wherein the obtaining of the at least one parameter includes obtaining curvature information of vertices included in the scan data.
3 . The image processing method of claim 2 , wherein the obtaining of the curvature information of the vertices includes obtaining a maximum curvature value and a minimum curvature value at each of the vertices.
4 . The image processing method of claim 3 , wherein the recognizing of the inner region of the hole from the scan data based on the obtained at least one parameter includes
obtaining first vertices from among the vertices, the first vertices having the maximum curvature value within a predetermined first range and the minimum curvature value within a predetermined second range; and
recognizing the inner region of the hole based on the first vertices.
5 . The image processing method of claim 4 , wherein the recognizing of the inner region of the hole based on the first vertices includes
grouping the first vertices into a plurality of groups;
obtaining first cylinders respectively corresponding to the plurality of groups by performing cylinder fitting by using the first vertices grouped into a same group;
obtaining a second cylinder by merging the first cylinders;
obtaining, from among the vertices of the scan data, second vertices corresponding to side surfaces of the second cylinder; and
recognizing the second vertices as the inner region of the hole.
6 . The image processing method of claim 5 , wherein the grouping of the first vertices into the plurality of groups includes grouping of the first vertices into the plurality of groups by grouping the first vertices with vertices within a predetermined distance into a same group.
7 . The image processing method of claim 5 , wherein the obtaining of the second vertices corresponding to the side surfaces of the second cylinder among the vertices of the scan data includes obtaining vertices within a predetermined distance from the side surfaces of the second cylinder as the second vertices.
8 . The image processing method of claim 1 , further comprising: displaying the recognized inner region of the hole to be distinguished from other regions.
9 . The image processing method of claim 1 , further comprising: processing the scan data based on the recognized inner region of the hole.
10 . An image processing apparatus comprising:
a memory storing one or more instructions; and
a processor,
wherein the processor is configured to execute the one or more instructions stored in the memory to:
obtain scan data by scanning an object including a hole, wherein the scan data includes a portion of an inner region of the hole,
obtain, from the scan data, at least one parameter for recognizing the inner region of the hole,
recognize the inner region of the hole from the scan data based on the obtained at least one parameter,
delete the inner region of the hole in the scan data; and
obtain, based on the scan data from which the inner region of the hole has been deleted, a final image indicating a form in which the hole is filled with a filler,
wherein the object includes an abutment including a screw hole.
11 . The image processing apparatus of claim 10 , wherein the processor is configured to execute the one or more instructions stored in the memory to obtain the at least one parameter including curvature information of vertices included in the scan data.
12 . The image processing apparatus of claim 11 , wherein
the processor is configured to execute the one or more instructions stored in the memory to obtain curvature information of each of the vertices, and
the curvature information includes a maximum curvature value and a minimum curvature value at each of the vertices.
13 . The image processing apparatus of claim 12 , wherein the processor is configured to execute the one or more instructions stored in the memory to
obtain first vertices having the maximum curvature value within a predetermined first range and the minimum curvature value within a predetermined second range among the vertices, and
recognize the inner region of the hole based on the first vertices.
14 . The image processing apparatus of claim 13 , wherein
the processor is configured to execute the one or more instructions stored in the memory to group the first vertices into a plurality of groups,
obtain first cylinders respectively corresponding to the plurality of groups by performing cylinder fitting by using the first vertices grouped into a same group,
obtain a second cylinder by merging the first cylinders,
obtain, from among the vertices of the scan data, second vertices corresponding to side surfaces of the second cylinder, and
recognize the second vertices as the inner region of the hole.
15 . The image processing apparatus of claim 14 , wherein the processor is configured to execute the one or more instructions stored in the memory to group of the first vertices into the plurality of groups by grouping the first vertices with vertices within a predetermined distance into a same group.
16 . The image processing apparatus of claim 14 , wherein the processor is configured to execute the one or more instructions stored in the memory to obtain vertices within a predetermined distance from the side surfaces of the second cylinder as the second vertices.
17 . The image processing apparatus of claim 10 , further comprising: a display,
wherein the processor is configured to execute the one or more instructions stored in the memory to control the display to display the recognized inner region of the hole to be distinguished from other regions.
18 . A non-transitory computer-readable recording medium having recorded thereon a program including at least one instruction which, when executed by a computer, performs an image processing method, the image processing method comprising:
obtaining scan data by scanning an object including a hole, wherein the scan data includes a portion of an inner region of the hole;
obtaining, from the scan data, at least one parameter for recognizing the inner region of the hole;
recognizing the inner region of the hole from the scan data based on the obtained at least one parameter;
deleting the inner region of the hole in the scan data; and
obtaining, based on the scan data from which the inner region of the hole has been deleted, a final image indicating a form in which the hole is filled with a filler,
wherein the object includes an abutment including a screw hole.