Method, electronic device and medium for adjusting depth values
First Claim
Patent Images
1. A depth processing method for an electronic device, the depth processing method comprising:
- obtaining a color image and a depth map corresponding to the color image;
extracting a plurality of regions from at least one of the depth map and the color image;
obtaining region information of the regions, and classifying the regions into at least one of a region-of-interest and a non-region-of-interest according to the region information, wherein the region information comprises area information and edge information; and
adjusting a plurality of depth values in the depth map according to the region information,wherein the regions comprises a plurality of color regions and a plurality of depth regions, the depth regions are obtained from the depth map, and a first color region of the color regions corresponds to a first depth region of the depth regions, wherein the step of adjusting the depth values in the depth map according to the region information comprises;
performing an erosion procedure on the first depth region to obtain a first boundary;
performing a dilation procedure on the first depth region to obtain a second boundary; and
mapping the first boundary and the second boundary into the color image, and performing a segmentation algorithm in an area between the first boundary and the second boundary in the color image for adjusting a contour of the first depth region.
1 Assignment
0 Petitions
Accused Products
Abstract
A depth processing method, an electronic device and a medium are provided. The depth processing method includes: obtaining a color image and a depth map corresponding to the color image; extracting a plurality of regions from at least one of the depth map and the color image; obtaining region information of the regions, and classifying the regions into at least one of a region-of-interest and a non-region-of-interest according to the region information, wherein the region information comprises area information and edge information; and adjusting a plurality of depth values in the depth map according to the region information.
11 Citations
30 Claims
-
1. A depth processing method for an electronic device, the depth processing method comprising:
-
obtaining a color image and a depth map corresponding to the color image; extracting a plurality of regions from at least one of the depth map and the color image; obtaining region information of the regions, and classifying the regions into at least one of a region-of-interest and a non-region-of-interest according to the region information, wherein the region information comprises area information and edge information; and adjusting a plurality of depth values in the depth map according to the region information, wherein the regions comprises a plurality of color regions and a plurality of depth regions, the depth regions are obtained from the depth map, and a first color region of the color regions corresponds to a first depth region of the depth regions, wherein the step of adjusting the depth values in the depth map according to the region information comprises; performing an erosion procedure on the first depth region to obtain a first boundary; performing a dilation procedure on the first depth region to obtain a second boundary; and mapping the first boundary and the second boundary into the color image, and performing a segmentation algorithm in an area between the first boundary and the second boundary in the color image for adjusting a contour of the first depth region. - View Dependent Claims (2, 3, 4, 5, 6, 7)
-
-
8. An electronic device, comprising:
-
a memory, storing a plurality of instructions; and a processor, coupled to the memory, and configured to execute the instructions to perform a plurality of steps; obtaining a color image and a depth map corresponding to the color image; extracting a plurality of regions from at least one of the depth map and the color image; obtaining region information of the regions, and classifying the regions into at least one of a region-of-interest and a non-region-of-interest according to the region information, wherein the region information comprises area information and edge information; and adjusting a plurality of depth values in the depth map according to the region information, wherein the regions comprises a plurality of color regions and a plurality of depth regions, the depth regions are obtained from the depth map, a first color region of the color regions corresponds to a first depth region of the depth regions, and the step of adjusting the depth values in the depth ma according to the region information comprises; performing an erosion procedure on the first depth region to obtain a first boundary; performing a dilation procedure on the first depth region to obtain a second boundary; and mapping the first boundary and the second boundary into the color image, and performing a segmentation algorithm in an area between the first boundary and the second boundary in the color image for adjusting a contour of the first depth region. - View Dependent Claims (9, 10, 11)
-
-
12. A non-transitory computer readable medium, for storing a plurality of instructions, and the instructions are configured to perform a plurality of steps:
-
obtaining a color image and a depth map corresponding to the color image; extracting a plurality of regions from at least one of the depth map and the color image; obtaining region information of the regions, and classifying the regions into at least one of a region-of-interest and a non-region-of-interest according to the region information, wherein the region information comprises area information and edge information; and adjusting a plurality of depth values in the depth map according to the region information, wherein the regions comprises a plurality of color regions and a plurality of depth regions, the depth regions are obtained from the depth map, a first color region of the color regions corresponds to a first depth region of the depth regions, and the step of adjusting the depth values in the depth map according to the region information comprises; performing an erosion procedure on the first depth region to obtain a first boundary; performing a dilation, procedure on the first depth region to obtain a second boundary; and mapping the first boundary and the second boundary into the color image, and performing a segmentation algorithm in an area between the first boundary and the second boundary in the color image for adjusting a contour of the first depth region. - View Dependent Claims (13, 14, 15)
-
-
16. A depth processing method for an electronic device, wherein the electronic device comprises a touch unit, and the depth processing method comprising:
-
obtaining a color image and a depth map corresponding to the color image; extracting a plurality of regions from at least one of the depth map and the color image; obtaining region information of the regions, and classifying the regions into at least one of a region-of-interest and a non-region-of-interest according to the region information, wherein the region information comprises area information and edge information; adjusting a plurality of depth values in the depth map according to the region information; detecting a touch operation on the touch unit; obtaining a touch range according to the touch operation; calculating a variance of the depth values in the touch range, wherein the depth values smaller than a first predetermined depth value and greater than a second predetermined depth value are selected for calculating the variance; and if the variance is greater than a threshold, obtaining a plurality of neighboring range next to the touch range, and setting a focal length according to the depth values in one of the neighboring ranges which has smallest variance. - View Dependent Claims (17, 18, 19, 20, 21, 22)
-
-
23. An electronic device, comprising:
-
a memory, storing a plurality of instructions; a processor, coupled to the memory; and a touch unit, wherein the processor is configured to execute the instructions to perform a plurality of steps; obtaining a color image and a depth map corresponding to the color image; extracting a plurality of regions from at least one of the depth map and the color image; obtaining region information of the regions, and classifying the regions into at least one of a region-of-interest and a non-region-of-interest according to the region information, wherein the region information comprises area information and edge information; adjusting a plurality of depth values in the depth map according to the region information; detecting a touch operation on the touch unit; obtaining a touch range according to the touch operation; calculating a variance of the depth values in the touch range, wherein the depth values smaller than a first predetermined depth value and greater than a second predetermined depth value are selected for calculating the variance; and if the variance is greater than a threshold, obtaining a plurality of neighboring range next to the touch range, and setting a focal length according to the depth values in one of the neighboring ranges which has smallest variance. - View Dependent Claims (24, 25, 26)
-
-
27. A non-transitory computer readable medium, for storing a plurality of instructions, and the instructions are configured to perform a plurality of steps:
-
obtaining a color image and a depth map corresponding to the color image; extracting a plurality of regions from at least one of the depth map and the color image; obtaining region information of the regions, and classifying the regions into at least one of a region-of-interest and a non-region-of-interest according to the region information, wherein the region information comprises area information and edge information; adjusting a plurality of depth values in the depth map according to the region information; detecting a touch operation on a touch unit; obtaining a touch range according to the touch operation; calculating a variance of the depth values in the touch range, wherein the depth values smaller than a first predetermined depth value and greater than a second predetermined depth value are selected for calculating the variance; and if the variance is greater than a threshold, obtaining a plurality of neighboring range next to the touch range, and setting a focal length according to the depth values in one of the neighboring ranges which has smallest variance. - View Dependent Claims (28, 29, 30)
-
Specification