WO2010083751A1 - 一种图像处理方法及装置 - Google Patents

一种图像处理方法及装置 Download PDF

Info

Publication number
WO2010083751A1
WO2010083751A1 PCT/CN2010/070269 CN2010070269W WO2010083751A1 WO 2010083751 A1 WO2010083751 A1 WO 2010083751A1 CN 2010070269 W CN2010070269 W CN 2010070269W WO 2010083751 A1 WO2010083751 A1 WO 2010083751A1
Authority
WO
WIPO (PCT)
Prior art keywords
target area
depth value
scaling
image
scaling ratio
Prior art date
Application number
PCT/CN2010/070269
Other languages
English (en)
French (fr)
Inventor
赵嵩
王静
刘源
李凯
Original Assignee
华为终端有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为终端有限公司 filed Critical 华为终端有限公司
Priority to EP10733224.9A priority Critical patent/EP2383701B1/en
Publication of WO2010083751A1 publication Critical patent/WO2010083751A1/zh
Priority to US13/189,058 priority patent/US8355062B2/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T15/003D [Three Dimensional] image rendering
    • G06T15/10Geometric effects
    • G06T15/20Perspective computation
    • G06T3/04

Definitions

  • the present invention relates to a digital image processing technology, and in particular, to an image processing method and apparatus.
  • the technical problem to be solved by the embodiments of the present invention is to provide an image processing method and apparatus for realizing that the scaled image is an image that is scaled according to the depth of the scene.
  • an embodiment of the present invention provides an image processing method, including: acquiring a depth value of an image, where the image includes a target area and a non-target area;
  • the target area and the non-target area are respectively scaled according to the scaling of the target area and the scaling of the non-target area to obtain a scaled image.
  • an embodiment of the present invention further provides an image processing apparatus, including:
  • a first acquiring unit configured to acquire a depth value of the image, where the image includes a target area and a non-target area
  • a second acquiring unit configured to acquire a scaling ratio of the target area
  • a third acquiring unit configured to be connected to the first acquiring unit and the second acquiring unit, configured to acquire a scaling ratio of the non-target area according to a depth value of the image and a scaling ratio of the target area;
  • a scaling processing unit configured to be connected to the second acquiring unit and the third acquiring unit, configured to shrink the target area and the non-target area respectively according to a scaling ratio of the target area and a scaling ratio of the non-target area Put, get the scaled image.
  • the scaling ratio of the target area and the scaling ratio of the non-target area are also different, so according to the depth value of the image, And a scaling ratio of the target area, obtaining a scaling ratio of the non-target area, and then scaling the target area and the non-target area according to the scaling ratio of the target area and the scaling ratio of the non-target area, thereby obtaining the matching depth of the scene
  • the scaling ratio of the target area and the scaling ratio of the non-target area are also different, so according to the depth value of the image, And a scaling ratio of the target area, obtaining a scaling ratio of the non-target area, and then scaling the target area and the non-target area according to the scaling ratio of the target area and the scaling ratio of the non-target area, thereby obtaining the matching depth of the scene
  • the image of the relationship since the depth value of the image target area and the depth value of the non-target area are different, in the actual scene, the scaling ratio of the target area and the scaling ratio of the non-target area are also different, so according to the depth
  • FIG. 1 is a schematic flow chart of an image processing method according to a first embodiment of the present invention
  • FIG. 2 is a flow chart showing the scaling of the non-target area in the image processing method according to the second embodiment of the present invention
  • FIG. 3 is a schematic diagram of an image processing apparatus according to an embodiment of the present invention.
  • FIG. 1 is a schematic flowchart of an image processing method according to a first embodiment of the present invention, where the method includes:
  • the depth value includes a target area depth value and a non-target area depth value
  • the depth value of the image is a difference indicating a maximum value of the image data and an actual depth value of the image acquired by the depth camera.
  • the depth value of the image represents the depth relationship of the scene represented by the image data, which is a relative relationship, and the value has no specific physical meaning.
  • the actual depth value of the image is obtained by depth camera shooting. If the maximum value of the image data is 255, the depth value of the image is 255 and the difference between the actual depth value of the image acquired by the depth camera.
  • the scaling of the target area is specified according to the user's needs, and the scaling of the target area is stored in the storage medium, and when the image is scaled, the scaling of the target area is obtained from the storage medium.
  • the target area and the non-target area are respectively scaled according to a scaling ratio of the target area and a scaling ratio of the non-target area, to obtain a scaled image.
  • the target area and the non-target area may be scaled using bilinear interpolation, or linear interpolation, or cubic convolution, or content-based scaling.
  • the image includes a target area and a non-target area, and obtaining a scaling ratio of the target area, according to a depth value of the image, and a scaling of the target area.
  • Proportion obtaining a scaling ratio of the non-target area, and scaling the target area and the non-target area according to a scaling ratio of the target area and a scaling ratio of the non-target area, respectively obtaining a scaled image, thereby obtaining a match An image of the depth relationship of the scene.
  • the image is a digital image having a depth value.
  • the average value of the depth values of the respective points in the rectangular region is calculated as the depth value of the region.
  • a square is included in the rectangle, and when the area is divided by a square, an average value of depth values of each point in the square area is calculated as a depth value of the area;
  • the area corresponding to one target scaling ratio of the plurality of target scaling ratios is regarded as the target area, and the area corresponding to the remaining target scaling ratios is regarded as the non-target area.
  • the non-target area is arranged by the serial number method, and then the sequence number of the arrangement is obtained.
  • FIG. 2 it is a schematic flowchart of obtaining the scaling ratio of the non-target area in the image processing method according to the second embodiment of the present invention.
  • the method process includes:
  • the scaling of the plurality of target areas is specified according to user requirements, and the scaling ratio of the plurality of target areas is stored in a storage medium, and when the image is scaled, the scaling ratio of the plurality of target areas is obtained from the storage medium .
  • the scaling of the target area may also include a scaling ratio of a target area, such that step 202 is based on the target area depth value, the scaling ratio of the target area, and the current The non-target area depth value corresponding to the sequence number, and the scaling ratio of the non-target area is obtained.
  • the non-target areas may also be arranged in a coordinate manner, and then coordinate points are acquired.
  • the scaling ratio of the target area and the scaling ratio of the non-target area are also different, so according to the depth of the image. a value, and a scaling ratio of the target area, obtaining a scaling ratio of the non-target area, and then scaling the target area and the non-target area according to the scaling ratio of the target area and the scaling ratio of the non-target area, thereby obtaining a match An image of the depth relationship of the scene.
  • the image is divided into four non-target areas efgh, one target area i.
  • the value indicating the image data is a data between 0 and 255
  • the actual depth value of the acquired image is captured by the depth camera.
  • the actual depth value of e is 100 f
  • the actual depth value is 101 g
  • the actual depth value is 102 h.
  • the actual depth value is 103
  • the actual depth value is 104.
  • E f g h is arranged according to the coordinate points, and the coordinate points of the arrangement are obtained; the scaling ratio of i is obtained from the storage medium; and then step - Al is performed to obtain the depth value of e corresponding to the
  • the non-target area depth value/target area depth value is decremented by 1, and the e scaling is calculated as 306/155 A3.
  • the current coordinate point is not the last coordinate point, the current coordinate point is modified to the coordinates of other bcd. Point, and obtain the depth value corresponding to the modified coordinate point, and then perform step A2 A3 in sequence.
  • the scaling of the depth value corresponding to the coordinate point is obtained point by point, and the obtained result is that the scaling ratio of f is 305/154 g and the scaling ratio of 304/153 h is 303/152.
  • the e-based scaling is 306/155 f with a scaling ratio of 305/154 g and the scaling ratio of 304/153 h is a scaling ratio of 303/152 i.
  • the scaling of efghi is performed by bilinear interpolation. , get the scaled image.
  • the scaling ratio of the target area and the scaling ratio of the non-target area are also different, so according to the depth value of the image.
  • FIG. 3 it is a schematic diagram of an image processing apparatus according to an embodiment of the present invention, which includes:
  • a first obtaining unit 301 configured to acquire a depth value of the image, where the image includes a target area and a non-target area
  • a second acquiring unit 302 configured to acquire a scaling ratio of the target area
  • the scaling of the target area is specified according to user requirements, and the scaling of the target area is stored in the storage medium.
  • the second obtaining unit 302 acquires the scaling of the target area from the storage medium.
  • the third obtaining unit 303 is connected to the first acquiring unit 301 and the second acquiring unit 302, and configured to acquire the non-target area according to a depth value of the image and a scaling ratio of the target area.
  • the scaling processing unit 304 is connected to the second obtaining unit 302 and the third obtaining unit 303, and is configured to separately target the target area according to the scaling ratio of the target area and the scaling ratio of the non-target area.
  • the non-target area is scaled to obtain a scaled image.
  • the device further includes:
  • a detecting unit 305 configured to detect whether the non-target area is more than one
  • the third obtaining unit 303 further includes:
  • the depth value obtaining unit 3031 is connected to the arranging unit 306, and is configured to obtain a non-target area depth value corresponding to the current serial number;
  • the scaling obtaining unit 3032 is connected to the second obtaining unit 302, the depth value acquiring unit 3031, and the first acquiring unit 301, and is configured to select a target area when there is a scaling ratio of the plurality of target areas. a zoom ratio, according to the selected target area depth value, the zoom ratio of the target area, and the non-target area depth value corresponding to the current serial number, obtaining a scaling ratio of the non-target area corresponding to the current serial number; 3033, connected to the scaling ratio obtaining unit 3032 and the arranging unit 306, configured to modify the current serial number to the sequence number of other non-target regions when the current serial number is not the last serial number, and obtain The depth value of the other non-target area corresponding to the modified serial number.
  • the above data processing device can be provided in a digital camera, or a video camera.
  • the present invention can be implemented by means of software plus a necessary general hardware platform, and can also be implemented by hardware, but in many cases, the former is better.
  • Implementation Based on such understanding, the technical solution of the present invention, which is essential or contributes to the prior art, may be embodied in the form of a software product stored in a readable storage medium, such as a floppy disk of a computer.
  • a hard disk or optical disk or the like includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform the methods described in various embodiments of the present invention.
  • the scaling ratio of the target area and the scaling ratio of the non-target area are also different, so according to the depth value of the image, And a scaling ratio of the target area, obtaining a scaling ratio of the non-target area, and then scaling the target area and the non-target area according to the scaling ratio of the target area and the scaling ratio of the non-target area, thereby obtaining the matching depth of the scene
  • the scaling ratio of the target area and the scaling ratio of the non-target area are also different, so according to the depth value of the image, And a scaling ratio of the target area, obtaining a scaling ratio of the non-target area, and then scaling the target area and the non-target area according to the scaling ratio of the target area and the scaling ratio of the non-target area, thereby obtaining the matching depth of the scene
  • the image of the relationship since the depth value of the image target area and the depth value of the non-target area are different, in the actual scene, the scaling ratio of the target area and the scaling ratio of the non-target area are also different, so according to the depth

Description

一种图像处理方法及装置
本申请要求于 2009年 1月 22日提交中国专利局、 申请号为 200910036908. 7、 发 明名称为 " 种图像处理方法及装置"的中国专利申请的优先权, 其全部内容通过引用 结合在本申请中。
技术领域
本发明涉及一种数字图像处理技术, 尤其涉及一种图像处理方法及装置。
发明背景
在数字图像处理领域,图像的缩放问题等效于摄像机在拍摄场景时的"拉近"或"拉 远", 图像放大等效于 "拉近", 图像缩小等效于 "拉远", 物体的缩放程度与在图像形 成过程中物体之间的相对位置关系有关。
但在现有技术中, 采用图像缩放算法对图像进行缩放时, 是用相同的缩放比例对 图像进行缩放, 没有考虑在图像形成过程中物体之间的相对位置关系, 这样得到缩放后 的图像是一幅平面画, 不符合场景的深度关系。
发明内容
本发明实施例所要解决的技术问题在于, 提供一种图像处理方法及装置, 以实现缩 放后的图像是符合场景深度关系缩放的图像。
为了解决上述技术问题, 本发明实施例提供了一种图像处理方法, 包括: 获取图像的深度值, 所述图像包括目标区域和非目标区域;
获取所述目标区域的缩放比例;
根据所述图像的深度值, 和所述目标区域的缩放比例, 获取所述非目标区域的缩放 比例;
根据目标区域的缩放比例和非目标区域的缩放比例,分别对所述目标区域和所述非 目标区域进行缩放, 获得缩放后的图像。
相应地, 本发明实施例还提供了一种图像处理装置, 包括:
第一获取单元, 用于获取图像的深度值, 所述图像包括目标区域和非目标区域; 第二获取单元, 用于获取所述目标区域的缩放比例;
第三获取单元, 与所述第一获取单元和所述第二获取单元相连, 用于根据所述图像 的深度值, 和所述目标区域的缩放比例, 获取所述非目标区域的缩放比例;
缩放处理单元, 与所述第二获取单元和所述第三获取单元相连, 用于根据目标区域 的缩放比例和非目标区域的缩放比例, 分别对所述目标区域和所述非目标区域进行缩 放, 获得缩放后的图像。
实施本发明实施例, 由于图像目标区域深度值和非目标区域深度值不同, 在实际 场景中, 目标区域的缩放比例和非目标区域的缩放比例也是不同的, 所以根据所述图像 的深度值, 和所述目标区域的缩放比例, 获取所述非目标区域的缩放比例, 然后根据目 标区域的缩放比例和非目标区域的缩放比例, 分别对目标区域和非目标区域进行缩放, 从而得到符合场景深度关系的图像。
附图简要说明
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有 技术描述中所需要使用的附图作简单地介绍, 显而易见地, 下面描述中的附图仅仅是本 发明的一些实施例, 对于本领域普通技术人员来讲, 在不付出创造性劳动的前提下, 还 可以根据这些附图获得其他的附图。
图 1是本发明第一实施例图像处理方法流程示意图;
图 2是本发明第二实施例图像处理方法中获得所述非目标区域的缩放比例的流程示 意图;
图 3是本发明实施例图像处理装置示意图。
实施本发明的方式
为使本发明的目的、 技术方案和优点更加清楚, 下面将结合附图对本发明作进一步 地详细描述。
参考图 1, 是本发明第一实施例图像处理方法流程示意图, 该方法流程包括:
101、 获取图像的深度值, 所述图像包括目标区域和非目标区域;
此处, 所述深度值包括目标区域深度值和非目标区域深度值, 图像的深度值是表示 图像数据的最大值与深度摄像机获取到的该图像的实际深度值的差值。图像的深度值表 示的是图像数据所表示的场景的深度关系,是一种相对关系,其数值没有具体物理含义。 图像的实际深度值是通过深度摄像机拍摄获取到的,如果表示图像数据的最大值是 255 则图像的深度值为 255与深度摄像机获取到的该图像的实际深度值的差值。
102、 获取所述目标区域的缩放比例;
目标区域的缩放比例是根据用户需求进行指定的,该目标区域的缩放比例存储在存 储介质中, 当对图像进行缩放处理时, 从该存储介质中获取目标区域的缩放比例。
103、 根据所述图像的深度值, 和所述目标区域的缩放比例, 获取所述非目标区域 的缩放比例; 此处, 当非目标区域为一个时, 根据图像的深度值, 和目标区域的缩放比例, 获取 非目标区域的缩放比例; 非目标区域的缩放比例为 6 = ^, 其中, k 为目标区域的 l + D 缩放比例, ^ 根据非目标区域深度值与目标区域深度值计算得出, 可以是非目 标区域深度值 /目标区域深度值减 1
104、 根据目标区域的缩放比例和非目标区域的缩放比例, 分别对所述目标区域和 所述非目标区域进行缩放, 获得缩放后的图像。
此处, 可以采用双线性插值、 或有线性插值、 或三次方卷积方法、 或基于内容的缩 放方法对所述目标区域和非目标区域进行缩放。
实施本发明第一实施例, 通过获取图像的深度值, 所述图像包括目标区域和非目标 区域, 获取所述目标区域的缩放比例, 根据所述图像的深度值, 和所述目标区域的缩放 比例, 获取所述非目标区域的缩放比例, 根据目标区域的缩放比例和非目标区域的缩放 比例, 分别对所述目标区域和所述非目标区域进行缩放, 获得缩放后的图像, 从而得到 符合场景深度关系的图像。
其中, 所述图像为具有深度值的数字图像, 当区域以长方形划分时, 计算长方形区 域内各个点深度值的平均值为所述区域的深度值。 长方形中包括正方形, 当所述区域以 正方形划分时, 计算正方形区域内各个点深度值的平均值为所述区域的深度值; 所述目 标区域的缩放比例可以包括多个目标缩放比例,多个目标缩放比例之间符合 6 = ^
\ + aD 将多个目标缩放比例中一个目标缩放比例对应的区域看作目标区域,其余的目标缩放比 例对应的区域看作非目标区域, 当所述非目标区域多于 1个时, 将所述非目标区域通过 序号方式进行排列, 然后获取排列的序号, 参考图 2, 是本发明第二实施例图像处理方 法中获得所述非目标区域的缩放比例的流程示意图, 该方法流程包括:
201、 获取当前序号对应的非目标区域深度值;
202、 选取所述多个目标区域的缩放比例中的一个目标区域的缩放比例、 根据所述 目标区域深度值、 所述一个目标区域的缩放比例, 和所述当前序号对应的非目标区域深 度值, 获取所述非目标区域的缩放比例;
多个目标区域的缩放比例是根据用户需求进行指定的,该多个目标区域的缩放比例 存储在存储介质中, 当对图像进行缩放处理时, 从该存储介质中获取多个目标区域的缩 放比例。
203、 当所述当前序号不是最后一个序号时, 将当前序号修改为其他非目标区域的 序号, 并获取修改后的序号对应的所述其他非目标区域的深度值。
上述本发明第二实施例中,所述目标区域的缩放比例也可以包括一个目标区域的缩 放比例, 这样步骤 202为根据所述目标区域深度值、 所述目标区域的缩放比例, 和所述 当前序号对应的非目标区域深度值, 获取所述非目标区域的缩放比例。 当所述非目标区 域多于 1个时, 也可以将所述非目标区域通过坐标方式进行排列, 然后获取坐标点。
实施本发明第二实施例, 由于图像目标区域深度值和非目标区域深度值不同, 在实 际场景中, 目标区域的缩放比例和非目标区域的缩放比例也是不同的, 所以根据所述图 像的深度值, 和所述目标区域的缩放比例, 获取所述非目标区域的缩放比例, 然后根据 目标区域的缩放比例和非目标区域的缩放比例, 分别对目标区域和非目标区域进行缩 放, 从而得到符合场景深度关系的图像。
下面将给出一个具体的例子对上述图像处理方法进行详细阐述。
图像分为四个非目标区域 e f g h, 一个目标区域 i, 在本实施例中, 表示图像 数据的数值是一个介于 0-255之间的数据,用深度摄像机拍摄获取到的图像的实际深度 值分别为: e的实际深度值为 100 f 的实际深度值为 101 g的实际深度值为 102 h 的实际深度值为 103 i的实际深度值为 104, 获取 e f g h i的深度值, 其中, e 的深度值为 255-100=155 f 的深度值为 255-101=154 g的深度值为 255-102=153 h 的深度值为 255-103=152 i的深度值为 255-104=151。 将 e f g h按坐标点进行排 列, 并获取排列的坐标点; 从该存储介质中获取 i的缩放比例 2; 然后执行步骤- Al、 获取当前坐标点对应的 e的深度值。
A2、 根据 i的深度值 151 i的缩放比例 2, 和当前坐标点对应的 e的深度值 155 获取 e的缩放比例; 根据非目标区域的缩放比例为 6 = ^^,其中, k为所述目标区域的缩放比例, D l + D
可以是非目标区域深度值 /目标区域深度值减 1, 计算得出 e的缩放比例为 306/155 A3、 当所述当前坐标点不是最后一个坐标点时, 将当前坐标点修改为其他 b c d 的坐标点, 并获取修改后的坐标点对应的深度值, 依次执行步骤 A2 A3
依据步骤 Al A2 A3、 逐点获取坐标点对应的深度值的缩放比例, 获取的结果是, f 的缩放比例为 305/154 g的缩放比例为 304/153 h的缩放比例为 303/152
基于 e的缩放比例为 306/155 f 的缩放比例为 305/154 g的缩放比例为 304/153 h的缩放比例为 303/152 i的缩放比例 2, 采用双线性插值分别对 e f g h i进行 缩放处理, 得到缩放后的图像。 实施本发明方法实施例, 由于图像目标区域深度值和非目标区域深度值不同, 在实 际场景中, 目标区域的缩放比例和非目标区域的缩放比例也是不同的, 所以根据所述图 像的深度值, 和所述目标区域的缩放比例, 获取所述非目标区域的缩放比例, 然后根据 目标区域的缩放比例和非目标区域的缩放比例, 分别对目标区域和非目标区域进行缩 放, 从而得到符合场景深度关系的图像。
下面将对与上述实施例对应的图像处理装置进行详细说明。
参考图 3, 是本发明实施例图像处理装置示意图, 包括:
第一获取单元 301,用于获取图像的深度值,所述图像包括目标区域和非目标区域; 第二获取单元 302, 用于获取所述目标区域的缩放比例;
目标区域的缩放比例是根据用户需求进行指定的,该目标区域的缩放比例存储在存 储介质中, 当对图像进行缩放处理时, 第二获取单元 302从该存储介质中获取目标区域 的缩放比例。
第三获取单元 303, 与所述第一获取单元 301和所述第二获取单元 302相连, 用于 根据所述图像的深度值,和所述目标区域的缩放比例,获取所述非目标区域的缩放比例; 缩放处理单元 304, 与所述第二获取单元 302和所述第三获取单元 303相连, 用于 根据目标区域的缩放比例和非目标区域的缩放比例,分别对所述目标区域和所述非目标 区域进行缩放, 获得缩放后的图像。
所述装置进一步包括:
检测单元 305, 用于检测所述非目标区域是否多于 1个;
排列单元 306, 当所述检测单元 305检测到所述非目标区域多于 1个时, 将所述非 目标区域按照序号排列, 并获取排列的序号;
所述第三获取单元 303进一步包括:
深度值获取单元 3031,与所述排列单元 306连接,用于获取当前序号对应的非目标 区域深度值;
缩放比例获取单元 3032, 与所述第二获取单元 302、 所述深度值获取单元 3031和 所述第一获取单元 301相连,用于当有多个目标区域的缩放比例时从中选取一个目标区 域的缩放比例, 根据选取的所述目标区域深度值、 所述目标区域的缩放比例, 和所述当 前序号对应的非目标区域深度值, 获取所述当前序号对应的非目标区域的缩放比例; 修改单元 3033, 与所述缩放比例获取单元 3032和所述排列单元 306连接, 用于在 所述当前序号不是最后一个序号时, 将当前序号修改为其他非目标区域的序号, 并获取 修改后的序号对应的所述其他非目标区域的深度值。
上述数据处理装置可以设置在数码相机、 或摄像机中。
通过以上的实施方式的描述,所属领域的技术人员可以清楚地了解到本发明可借助 软件加必需的通用硬件平台的方式来实现, 当然也可以通过硬件实现, 但很多情况下前 者是更佳的实施方式。 基于这样的理解, 本发明的技术方案本质上或者说对现有技术做 出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在可读取的存储 介质中, 如计算机的软盘, 硬盘或光盘等, 包括若干指令用以使得一台计算机设备(可 以是个人计算机, 服务器, 或者网络设备等) 执行本发明各个实施例所述的方法。
实施本发明实施例, 由于图像目标区域深度值和非目标区域深度值不同, 在实际场 景中, 目标区域的缩放比例和非目标区域的缩放比例也是不同的, 所以根据所述图像的 深度值, 和所述目标区域的缩放比例, 获取所述非目标区域的缩放比例, 然后根据目标 区域的缩放比例和非目标区域的缩放比例, 分别对目标区域和非目标区域进行缩放, 从 而得到符合场景深度关系的图像。
以上所揭露的仅为本发明较佳实施例而已,当然不能以此来限定本发明之权利范围, 因此依本发明权利要求所作的等同变化, 仍属本发明所涵盖的范围。

Claims

权利要求
1、 一种图像处理方法, 其特征在于, 包括:
获取图像的深度值, 所述图像包括目标区域和非目标区域;
获取所述目标区域的缩放比例;
根据所述图像的深度值, 和所述目标区域的缩放比例, 获取所述非目标区域的缩放 比例;
根据目标区域的缩放比例和非目标区域的缩放比例,分别对所述目标区域和所述非 目标区域进行缩放, 获得缩放后的图像。
2、 如权利要求所述的图像处理方法, 其特征在于, 所述非目标区域的缩放比例为 6 = ^^,其中, k为所述目标区域的缩放比例, ^ l + D
根据所述非目标区域深度值与所述目标区域深度值的比值计算得出。
3、 如权利要求 2所述的图像处理方法, 其特征在于, 所述目标区域的划分方式包 括: 以长方形划分。
4、 如权利要求 3所述的图像处理方法, 其特征在于, 当所述目的区域以长方形划 分时, 计算长方形区域内各个点深度值的平均值为所述目标区域的深度值。
5、 如权利要求 1至 4任意一项所述的图像处理方法, 其特征在于, 所述目标区域 的缩放比例包括多个目标区域的缩放比例。
6、 如权利要求 5所述的图像处理方法, 其特征在于, 所述方法进一步包括: 当所 述非目标区域多于 1个时, 将所述非目标区域按照序号进行排列, 并获取排列的序号; 所述获得所述非目标区域的缩放比例包括:
获取当前序号对应的非目标区域深度值;
选取所述多个目标区域的缩放比例中的一个目标区域的缩放比例、根据所述一个目 标区域深度值、 所述目标区域的缩放比例, 和所述当前序号对应的非目标区域深度值, 获取所述非目标区域的缩放比例;
当所述当前序号不是最后一个序号时, 将当前序号修改为其他非目标区域的序号, 并获取修改后的序号对应的所述其他非目标区域的深度值。
7、 一种图像处理装置, 其特征在于, 包括:
第一获取单元, 用于获取图像的深度值, 所述图像包括目标区域和非目标区域; 第二获取单元, 用于获取所述目标区域的缩放比例;
第三获取单元, 用于根据所述图像的深度值, 和所述目标区域的缩放比例, 获取所 述非目标区域的缩放比例;
缩放处理单元, 用于根据目标区域的缩放比例和非目标区域的缩放比例, 分别对所 述目标区域和所述非目标区域进行缩放, 获得缩放后的图像。
8、 如权利要求 7所述的图像处理装置, 其特征在于, 所述非目标区域的缩放比例 为 6 =^ ^, 其中, k 为所述目标区域的缩放比例, tD 根据所述非目标区域深度值 l + D
与所述目标区域深度值的比值计算得出。
9、 如权利要求 8所述的图像处理装置, 其特征在于, 所述装置进一步包括: 检测单元, 用于检测所述非目标区域是否多于 1个;
排列单元, 当所述检测单元检测到所述非目标区域多于 1个时, 将所述非目标区域 按照序号排列, 并获取排列的序号;
所述第三获取单元进一步包括:
深度值获取单元, 用于获取当前序号对应的非目标区域深度值;
缩放比例获取单元,用于当有多个目标区域的缩放比例时从中选取一个目标区域的 缩放比例, 根据选取的所述目标区域深度值、 所述目标区域的缩放比例, 和所述当前序 号对应的非目标区域深度值, 获取所述当前序号对应的非目标区域的缩放比例;
修改单元, 用于在所述当前序号不是最后一个序号时, 将当前序号修改为其他非目 标区域的序号, 并获取修改后的序号对应的所述其他非目标区域的深度值。
10、 如权利要求 7至 9任意一项所述的图像处理装置, 其特征在于, 所述装置设置 在数码相机、 或摄像机中。
PCT/CN2010/070269 2009-01-22 2010-01-21 一种图像处理方法及装置 WO2010083751A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
EP10733224.9A EP2383701B1 (en) 2009-01-22 2010-01-21 Image processing method and apparatus
US13/189,058 US8355062B2 (en) 2009-01-22 2011-07-22 Method and apparatus for processing image

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN200910036908.7 2009-01-22
CN200910036908.7A CN101789235B (zh) 2009-01-22 2009-01-22 一种图像处理方法及装置

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US13/189,058 Continuation US8355062B2 (en) 2009-01-22 2011-07-22 Method and apparatus for processing image

Publications (1)

Publication Number Publication Date
WO2010083751A1 true WO2010083751A1 (zh) 2010-07-29

Family

ID=42355542

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2010/070269 WO2010083751A1 (zh) 2009-01-22 2010-01-21 一种图像处理方法及装置

Country Status (4)

Country Link
US (1) US8355062B2 (zh)
EP (1) EP2383701B1 (zh)
CN (1) CN101789235B (zh)
WO (1) WO2010083751A1 (zh)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101789235B (zh) 2009-01-22 2011-12-28 华为终端有限公司 一种图像处理方法及装置
US9013552B2 (en) * 2010-08-27 2015-04-21 Broadcom Corporation Method and system for utilizing image sensor pipeline (ISP) for scaling 3D images based on Z-depth information
CN102843517B (zh) * 2012-09-04 2017-08-04 京东方科技集团股份有限公司 一种图像处理方法、装置及显示设备
US9542722B2 (en) * 2014-12-29 2017-01-10 Sony Corporation Automatic scaling of objects based on depth map for image editing
CN104616246B (zh) * 2015-01-30 2018-06-15 酷派软件技术(深圳)有限公司 一种处理图像的方法、装置及终端设备
KR20170024275A (ko) * 2015-08-25 2017-03-07 삼성전자주식회사 영상 처리 장치, 영상 처리 방법 및 이를 포함하는 전자 시스템
CN105608668B (zh) * 2015-12-22 2019-07-26 联想(北京)有限公司 一种信息处理方法及装置
JP6696092B2 (ja) * 2018-07-13 2020-05-20 エスゼット ディージェイアイ テクノロジー カンパニー リミテッドSz Dji Technology Co.,Ltd 制御装置、移動体、制御方法、及びプログラム
CN112862673A (zh) * 2019-11-12 2021-05-28 上海途擎微电子有限公司 自适应图像缩放方法及自适应图像缩放装置、存储装置
CN111415332B (zh) * 2020-03-05 2023-10-24 北京深睿博联科技有限责任公司 乳腺x射线影像联动方法和装置

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2007096816A2 (en) * 2006-02-27 2007-08-30 Koninklijke Philips Electronics N.V. Rendering an output image
CN101325040A (zh) * 2008-07-16 2008-12-17 宇龙计算机通信科技(深圳)有限公司 可调整分辨率的移动终端及移动终端的分辨率调整方法

Family Cites Families (21)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000251090A (ja) 1999-03-01 2000-09-14 Sony Computer Entertainment Inc 描画装置及び該描画装置で被写界深度を表現する方法
GB0116877D0 (en) * 2001-07-10 2001-09-05 Hewlett Packard Co Intelligent feature selection and pan zoom control
CN1322749C (zh) 2001-11-01 2007-06-20 皇家飞利浦电子股份有限公司 视频数据的面向边缘内插
US7035479B2 (en) * 2002-02-22 2006-04-25 The Regents Of The University Of California Graded zooming
US7054496B2 (en) * 2002-06-27 2006-05-30 Seiko Epson Corporation Method and apparatus for displaying arbitrarily magnified high resolution images using compressed domain processing
DE10236204A1 (de) 2002-08-07 2004-03-04 Micronas Gmbh Gradientengestütztes Verfahren zur Bildpunktinterpolation
US20050046645A1 (en) * 2003-07-24 2005-03-03 Breton Pierre Felix Autoscaling
US7171058B2 (en) * 2003-07-31 2007-01-30 Eastman Kodak Company Method and computer program product for producing an image of a desired aspect ratio
US20070097261A1 (en) 2005-10-25 2007-05-03 Brad Smith Region or frame based aspect ratio scaling
JP4608436B2 (ja) * 2006-01-05 2011-01-12 オリンパス株式会社 画像撮影装置
KR20090006068A (ko) * 2006-02-13 2009-01-14 스넬 앤드 윌콕스 리미티드 동영상 시퀀스를 수정하는 방법 및 그 장치
US20070253626A1 (en) 2006-04-27 2007-11-01 Eric Jeffrey Resizing Raw Image Data Before Storing The Data
JP2008269396A (ja) * 2007-04-23 2008-11-06 Sony Corp 画像処理装置、画像処理方法、およびプログラム
JP2008281385A (ja) * 2007-05-09 2008-11-20 Olympus Corp 画像処理装置
CN101802866B (zh) * 2007-07-09 2012-12-12 前视红外系统公司 用于处理红外图像的方法、红外图像采集系统以及计算机可读介质
US8160398B1 (en) * 2008-07-31 2012-04-17 Adobe Systems Incorporated Independent resizing of multiple image regions
CN101365077B (zh) * 2008-09-28 2012-06-20 华为终端有限公司 图像缩放方法及装置
CN101789235B (zh) 2009-01-22 2011-12-28 华为终端有限公司 一种图像处理方法及装置
JP2011147109A (ja) * 2009-12-16 2011-07-28 Canon Inc 撮像装置及び画像処理装置
US8483513B2 (en) * 2010-01-22 2013-07-09 Corel Corporation, Inc. Method of content aware image resizing
US9307134B2 (en) * 2011-03-25 2016-04-05 Sony Corporation Automatic setting of zoom, aperture and shutter speed based on scene depth map

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2007096816A2 (en) * 2006-02-27 2007-08-30 Koninklijke Philips Electronics N.V. Rendering an output image
CN101325040A (zh) * 2008-07-16 2008-12-17 宇龙计算机通信科技(深圳)有限公司 可调整分辨率的移动终端及移动终端的分辨率调整方法

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP2383701A4 *

Also Published As

Publication number Publication date
US20110273594A1 (en) 2011-11-10
CN101789235B (zh) 2011-12-28
EP2383701B1 (en) 2014-05-21
US8355062B2 (en) 2013-01-15
EP2383701A1 (en) 2011-11-02
CN101789235A (zh) 2010-07-28
EP2383701A4 (en) 2012-09-05

Similar Documents

Publication Publication Date Title
WO2010083751A1 (zh) 一种图像处理方法及装置
JP5762142B2 (ja) 撮像装置、画像処理装置およびその方法
JP5746937B2 (ja) オブジェクト追跡装置
US9851892B2 (en) Information processing device, recording medium, and information processing method
JP2015018296A (ja) 表示制御装置、プログラム及び記録媒体
JP5644461B2 (ja) 画像処理装置及びプログラム
WO2022042679A1 (zh) 一种图片处理方法、装置、设备及存储介质
TW200926062A (en) Image generation method and apparatus, program therefor, and storage medium for storing the program
JP5935694B2 (ja) 動画像配信システム、及び動画像配信方法
CN111667398A (zh) 图像处理方法、装置和计算机可读存储介质
CN109559272A (zh) 一种图像处理方法及装置、电子设备、存储介质
WO2017088228A1 (zh) 图片的缩放方法及装置
JP7134716B2 (ja) 画像処理装置、画像処理方法及びプログラム
JP5042251B2 (ja) 画像処理装置および画像処理方法
JP2009094862A (ja) 映像信号処理装置
JP6320165B2 (ja) 画像処理装置及びその制御方法、並びにプログラム
CN110852932B (zh) 图像处理方法及装置、图像设备及存储介质
CN113055615B (zh) 会议一体机、屏幕切分显示方法以及存储装置
JP6062483B2 (ja) デジタルカメラ
CN107516339B (zh) 一种信息处理方法及信息处理装置
JP6278716B2 (ja) 画像処理装置、画像処理方法及びプログラム
CN112882636B (zh) 图片处理方法及装置
JP2017182843A (ja) プログラム、表示制御装置及び表示制御方法
US8422829B2 (en) Interpolation method and interpolation circuit
JP5085589B2 (ja) 画像処理装置および方法

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 10733224

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

WWE Wipo information: entry into national phase

Ref document number: 2010733224

Country of ref document: EP