WO2013185695A1 - Method and device for processing mobile terminal images - Google Patents

Method and device for processing mobile terminal images Download PDF

Info

Publication number
WO2013185695A1
WO2013185695A1 PCT/CN2013/080113 CN2013080113W WO2013185695A1 WO 2013185695 A1 WO2013185695 A1 WO 2013185695A1 CN 2013080113 W CN2013080113 W CN 2013080113W WO 2013185695 A1 WO2013185695 A1 WO 2013185695A1
Authority
WO
WIPO (PCT)
Prior art keywords
pixel
interpolated
interest
region
original pixel
Prior art date
Application number
PCT/CN2013/080113
Other languages
French (fr)
Chinese (zh)
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 中兴通讯股份有限公司
Publication of WO2013185695A1 publication Critical patent/WO2013185695A1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformations in the plane of the image
    • G06T3/40Scaling of whole images or parts thereof, e.g. expanding or contracting

Definitions

  • the present invention relates to the field of image processing, and in particular, to a mobile terminal image processing method and apparatus.
  • Image enhancement In the field of image processing, image enhancement is an important direction.
  • Image enhancement technology mainly studies the original unclear image or enhances certain features of interest, and suppresses non-attention features to improve image quality, enrich information, and enhance image interpretation and recognition.
  • the existing image resolution enhancement techniques can be roughly divided into two categories. One is based on multiple low-resolution images, and the image is corrected, and then a high-resolution image is obtained by interpolation, reconstruction or learning. The effect of this kind of method depends largely on the motion parameters before the two images, and the computational complexity is generally higher.
  • the second method is to interpolate a single low-resolution image. High resolution image. This method has a wider range of applications because it involves only low-resolution images.
  • the widely used interpolation algorithms include the nearest neighbor interpolation algorithm, bilinear interpolation algorithm and bicubic interpolation algorithm.
  • the nearest neighbor interpolation algorithm assumes a linear relationship between the pixels to be interpolated and its horizontal neighbor pixels, which often causes significant distortion.
  • the bilinear interpolation algorithm increases the vertical neighborhood pixels to interpolate on the basis of the nearest neighbor interpolation. Pixel point constraints, the interpolation performance is better than the former; compared to the above interpolation algorithm only considers the influence of pixel 4 neighborhood pixels on the interpolation point, the double cubic interpolation algorithm expands the range to 16 neighborhoods, and uses a smoother curve Calculating the color value of the pixel to be interpolated, the interpolation effect is optimal, but the computational complexity is also the highest.
  • the technical problem to be solved by the embodiments of the present invention is to provide a mobile terminal image processing method and apparatus, which improve processing speed.
  • a mobile terminal image processing method includes: The region of interest is detected according to the a priori information of the region of interest obtained in advance; the resolution of the detected region of interest is improved.
  • the method further includes: before the step of performing the region of interest detection on the image to be processed according to the previously obtained region of interest prior information, the prior information of the region of interest is obtained in advance by:
  • Calculating the feature parameters of the user-targeted target of interest storing the feature parameters of the target of the user's interest as a priori information to the current user's standard interest object library.
  • the step of performing the region of interest detection on the image to be processed according to the previously obtained region of interest prior information includes:
  • the step of performing resolution improvement on the detected region of interest comprises: mapping the detected region of interest into an amplification space according to a preset image magnification N, wherein the amplification space is of interest N times the area;
  • the color value of the pixel other than the original pixel point in the magnifying space is calculated by interpolation, and the local resolution of the image is improved.
  • the method before the step of mapping the detected region of interest into the amplifying space according to the preset image magnification N, the method further includes:
  • the region of interest is regularized.
  • the step of calculating, according to the original pixel point in the enlargement space, the color value of the pixel other than the original pixel in the enlarged space by using the interpolation method includes: It is assumed that other pixels except the original pixel point in the enlarged space are pixels to be interpolated, and the following processing is performed on each pixel to be interpolated:
  • the step of calculating a correlation degree between the pixel to be interpolated and the M original pixel points in the surrounding, and generating an influence factor of the M original pixel points to the pixel to be interpolated includes:
  • r ⁇ represents the degree of correlation between the mth original pixel point and the pixel to be interpolated
  • K m ⁇ M , i, j are the horizontal and vertical coordinates of the mth original pixel point, respectively
  • x and y are The horizontal and vertical coordinates of the pixel to be interpolated
  • is the influence factor of the mth original pixel point on the pixel to be interpolated
  • r m is the degree of correlation between the mth original pixel point and the pixel to be interpolated.
  • calculating, according to an original color value of M original pixel points around the pixel to be interpolated and an influence factor of the M original pixel points to the pixel to be interpolated, calculating a color value of the pixel to be interpolated The steps include:
  • Green p Green x ⁇ ⁇ ) ⁇ - ⁇ - Green ⁇ ⁇ ) 2 - ⁇ H Green M X ( ⁇ ⁇
  • Blue p Blue x + Blue 2 x +... + Blue M x ⁇ ⁇
  • Ke is the red component of the mth original pixel
  • is the green component of the mth original pixel
  • is the mth original pixel pair
  • the influence factor of the pixel to be interpolated where lm M.
  • the M 4.
  • a mobile terminal image processing apparatus includes a region of interest detection module and a resolution enhancement module, wherein:
  • the region of interest detection module is configured to: perform region of interest detection on the image to be processed according to the a priori information of the region of interest obtained in advance;
  • the resolution enhancement module is configured to: perform resolution improvement on the region of interest detected by the region of interest detection module.
  • the device further includes a prior information obtaining module, where:
  • the a priori information obtaining module is configured to: obtain the a priori information of the region of interest in advance, where the a priori information acquiring module includes a prompting unit, a first calculating unit, and a saving unit, where:
  • the prompting unit is configured to: provide one or more images to the user, each image containing one or more targets, prompting the user to calibrate the target of interest in the provided image;
  • the first calculating unit is configured to: calculate a feature parameter of the user-calibrated target of interest; the saving unit is configured to: save the feature parameter of the target of the user's interest as a priori information to the current target target library of the current user.
  • the region of interest detection module includes a region dividing unit, a second calculating unit, and a comparing unit, where:
  • the area dividing unit is configured to: divide the image to be processed into one or more object areas according to similar features inside the image;
  • the second calculating unit is configured to: calculate a feature parameter of the object area
  • the comparison unit is configured to: compare a feature parameter of the object area with a feature parameter in a standard interest area target library, and determine an object area with a similarity of the standard feature parameter to a preset threshold as a user Area of interest.
  • the resolution enhancement module includes an amplifying unit and a color value calculating unit, where: the amplifying unit is configured to: map the detected region of interest into the amplifying space according to the preset image magnification N The magnification space is N times the region of interest;
  • the color value calculation unit is configured to: calculate, according to the original pixel point, the color value of the pixel other than the original pixel in the enlarged space according to the original pixel point, and complete the image local resolution improvement.
  • the resolution promotion module further includes a regularization processing unit, where:
  • the regularization processing unit is configured to: perform regularization processing on the region of interest detected by the region of interest detection module.
  • the color value calculation unit is configured to calculate, according to the original pixel point in the enlargement space, the color value of the pixel other than the original pixel point in the enlarged space according to the original pixel point:
  • the other pixel points outside the pixel point are pixels to be interpolated, and the color value calculation unit performs the following processing on each pixel to be interpolated:
  • the color value calculation unit is configured to calculate a correlation degree between the pixel points to be interpolated and the M original pixel points around the same, and generate an influence factor of the M original pixel points to the pixel to be interpolated:
  • the color value calculation unit calculates the degree of correlation between each original pixel point and the pixel to be interpolated by using the following formula:
  • K m ⁇ M , i, j are the horizontal and vertical coordinates of the mth original pixel, respectively, and x and y are the horizontal and vertical coordinates of the pixel to be interpolated, respectively;
  • is the influence factor of the mth original pixel point on the pixel to be interpolated
  • r m is the degree of correlation between the mth original pixel point and the pixel to be interpolated.
  • the color value calculation unit is configured to calculate the original color value of the M original pixel points around the pixel to be interpolated and the influence factor of the M original pixel points to the pixel to be interpolated according to the following manner.
  • the color value of the interpolated pixel is mentioned:
  • Green p Green x X(0 1 + Green 2 X ⁇ 3 ⁇ 4 HH Green M X C0 M
  • Blue p Blue l ⁇ ) ⁇ + Blue 2 ⁇ 2 +— h Blue M X ⁇ ⁇
  • ⁇ , G ⁇ " ⁇ te p respectively represent the red, green, and blue color components of the pixel to be interpolated
  • Re is the red component of the mth original pixel
  • is the green of the mth original pixel
  • the component is the blue component of the mth original pixel
  • is the influence factor of the mth original pixel on the pixel to be interpolated, where lm M.
  • the M 4.
  • the embodiment of the present invention includes two parts: an adaptive region of interest detection and a resolution enhancement, and the region of interest detection portion fully considers the a priori information of the user's target of interest that is known in advance, thereby improving the detection of the region of interest.
  • the accuracy, the method is more personalized, to meet the needs of different users for different views of the same image; the resolution of the region of interest is improved by only increasing the resolution of the detected region of interest, so
  • the resolution enhancement method in the embodiment of the present invention fully considers the influence of the original pixel point on the pixel to be interpolated, introduces the influence factor of the pixel point of the original image to be interpolated, and calculates the color value of the pixel to be interpolated according to the influence factor, thereby improving Interpolation performance.
  • the embodiment of the invention provides a function independent and efficient image processing method for the mobile phone user. It is convenient for users to operate, and it is possible for the user to mine more detailed information in the region of interest in the image, and to increase the user experience pleasure.
  • Embodiment 1 is a flow chart of a method according to Embodiment 1 of the present invention.
  • FIG. 2 is a schematic structural view of a device according to Embodiment 2 of the present invention.
  • FIG. 3 is a flow chart of an adaptive image region of interest detection and resolution enhancement method according to an application example of the present invention.
  • FIG. 4 is a schematic diagram of a simulated region of interest according to an application example of the present invention.
  • FIG. 5 is a schematic diagram of an analog image of a region of interest after being enlarged to a designated enlargement space according to an application example of the present invention
  • Fig. 6 is a diagram showing the effect of simulating the original image pixel points to be interpolated pixel points in an application example of the present invention. Preferred embodiment of the invention
  • this paper considers only improving the resolution of the region of interest of the user, that is, the resolution of the region of interest of the image is improved. Since the subjective interest information of the user is fully considered, the obtained result is more in line with the user's feelings, and the effect is better.
  • the processing results for the same image of different users may be different, more targeted, conforming to user emotions, and the effect is better.
  • only the image resolution of the user's region of interest in the image is improved, which helps to improve the processing speed, and also satisfies the user's need for more detailed information acquisition of the image region of interest.
  • the image processing method of this embodiment is as shown in FIG. 1 and includes the following steps:
  • Step 10 performing a region of interest detection on the image to be processed according to the a priori information of the region of interest obtained in advance;
  • the a priori information of the above-mentioned region of interest may be obtained in advance by: providing one or more images to the user, each image containing one or more targets, prompting the user to calibrate himself in the provided image The target of interest; calculating the feature parameter of the user-targeted target of interest; storing the feature parameter of the target of the user's interest as a priori information to the current target target library of the user.
  • the step of performing the region of interest detection on the image to be processed according to the previously obtained region of interest a priori information includes steps 101-103:
  • Step 101 Divide the image to be processed into one or more object regions according to similar features in the image
  • Step 102 Calculate a feature parameter of the object area.
  • Step 103 Perform similarity comparison between the feature parameter of the target area and the feature parameter in the standard interest area target library, and determine an object area with a similarity of the standard feature parameter greater than a preset threshold as the user interested area;
  • Step 20 performing resolution improvement on the detected region of interest
  • the resolution of the region of interest can be improved by using a known resolution enhancement method.
  • the detected region of interest can be improved by the following method:
  • Step 201 Map the detected region of interest into the amplifying space according to the preset image magnification N, where the zooming space is N times of the region of interest;
  • the region of interest is first regularized before mapping.
  • regularization process refers to: in the image to be processed, the following processing is performed on the detected irregular object, as a horizontal line passing through the topmost boundary point and the lowest end boundary point of the object, and the leftmost boundary point of the object and The vertical line of the rightmost boundary point, the closed area divided by the above four lines after the intersection of two and two is a regularized interest Area.
  • a simple processing method is: the original irregular region of interest is circled by a rectangular frame, and the processing of the irregular pattern can be converted into processing of the rectangular region;
  • Step 202 Calculate, according to the original pixel point in the magnifying space, the color value of the pixel other than the original pixel in the magnifying space, and complete the local resolution of the image; and set the zooming space except the original pixel
  • the other pixels are pixels to be interpolated, and the following processing is performed for each pixel to be interpolated:
  • Step 2021 Calculate a correlation degree between the pixel to be interpolated and the M original pixel points around the pixel, and generate an influence factor of the M original pixel points to the pixel to be interpolated;
  • the degree of correlation between each original pixel point and the pixel to be interpolated may be calculated by using the following formula:
  • r ⁇ represents the degree of correlation between the mth original pixel point and the pixel to be interpolated
  • K m ⁇ M , i, j are the horizontal and vertical coordinates of the mth original pixel point, respectively
  • x and y are The horizontal and vertical coordinates of the pixel to be interpolated
  • is the influence factor of the mth original pixel point on the pixel to be interpolated
  • r m is the degree of correlation between the mth original pixel point and the pixel to be interpolated
  • Step 2022 Calculate a color value of the pixel to be interpolated according to an original color value of the M original pixel points around the pixel to be interpolated and an influence factor of the M original pixel points to the pixel to be interpolated.
  • each pixel to be interpolated can be calculated by the following formula:
  • Red p Re j X + Rei 2 X ⁇ » 2 + ⁇ ⁇ ⁇ + Re M X ⁇ 3 ⁇ 4
  • Green p Green x X (0 1 + Green 2 X ⁇ 3 ⁇ 4 HH Green M X C0 M
  • Blue p Blue l ⁇ ⁇ ) ⁇ + Blue 2 ⁇ ⁇ 2 +— h Blue M X ⁇ ⁇
  • Ke is the red component of the mth original pixel
  • is the green component of the mth original pixel
  • is the mth original pixel pair
  • the influence factor of the pixel to be interpolated where lm M.
  • the apparatus for implementing the above method is as shown in FIG. 2, and includes a region of interest detection module 20 and a resolution enhancement module 21, wherein:
  • the region of interest detection module is configured to: perform region of interest detection on the image to be processed according to the a priori information of the region of interest obtained in advance;
  • the region of interest detection module 20 includes a region dividing unit 201, a second computing unit 202, and a comparing unit 203, where:
  • the area dividing unit 201 is configured to: divide the image to be processed into one or more object areas according to similar features inside the image;
  • the second calculating unit 202 is configured to: calculate a feature parameter of the object area
  • the comparison unit 203 is configured to: compare the feature parameters of the target region with the feature parameters in the standard interest region target library, and determine the object region with the similarity of the standard feature parameters greater than the preset threshold as the user sense Area of interest.
  • the resolution enhancement module 21 is configured to: perform resolution improvement on the region of interest detected by the region of interest detection module.
  • the resolution enhancement module 21 includes an amplification unit 211 and a color value calculation unit 212, where:
  • the amplifying unit 211 is configured to: map the detected region of interest into an amplifying space according to a preset image magnification N, the zooming space being N times of the region of interest;
  • the color value calculation unit 212 is configured to: calculate, according to the original pixel point, the color value of the pixel other than the original pixel in the enlarged space according to the original pixel point, and complete the image local resolution improvement.
  • the resolution enhancement module 21 may further include a regularization processing unit 213, configured to: perform regularization processing on the region of interest detected by the region of interest detection module.
  • the color value calculation unit 212 calculates the color value of the pixels other than the original pixel in the amplification space according to the original pixel point in the amplification space according to the original pixel point, and is not described here.
  • the device further includes a prior information obtaining module 22, configured to: obtain the prior information of the region of interest in advance, and include a prompting unit 221, a first calculating unit 222, and a saving unit 223, where:
  • the prompting unit 221 is configured to: provide one or more images to the user, each image containing one or more targets, prompting the user to calibrate the target of interest in the provided image;
  • the first calculating unit 222 is configured to: calculate a feature parameter of the user-calibrated target of interest; the saving unit 223 is configured to: save the feature parameter of the target of interest of the user as a priori information to the standard target target library of the current user.
  • ⁇ Adaptive image region of interest resolution enhancement method can better achieve the local zooming effect of the image region of interest.
  • Step 11 Provide multiple images containing multiple targets; Step 12: prompting the user to separately calibrate the target of interest in the plurality of images; Step 13: calculating a feature parameter of the target of interest of the user calibration;
  • Step 14 Statistics the target of interest to the user, and save the feature parameters of the target of interest to the current target target library of the current user.
  • the establishment of the standard data of the target object of interest of the user is completed, and is used for determining the region of interest of the user in the subsequent image processing.
  • the feature parameters of the above-mentioned target of interest to the user may be referred to as prior information.
  • the above steps can be performed periodically to update the user's target library of interest.
  • the image region detection process includes:
  • Step 21 Divide the input image to be processed into different object regions according to similar features in the image
  • the similar features inside the image refer to the similar similarity between the inside of the image, that is, the pixel points with the physical position are closer, and the color values are similar. Therefore, the object area can be divided according to similar features inside the image, i.e., color values.
  • Step 22 Calculate characteristic parameters of each object area mentioned above;
  • Step 23 Comparing the feature parameters of each of the object regions with the feature parameters in the target region of the standard region of interest, and the object region whose similarity with the standard feature parameter is greater than the preset threshold T is the region of interest of the user.
  • the adaptive region of interest detection process of the image to be processed is completed.
  • the resolution of the extracted region of interest can be improved.
  • Step 31 Map the region of interest to the zoom space according to the image magnification N of the preset (user setting or default setting), where the zoom space is N times of the region of interest; wherein N is a controllable parameter, the user You can enter the determination in advance.
  • the region of interest may be firstly regularized, that is, processed into a regular graph.
  • A is a region of interest of the user, and after regularization, Obtaining B, the rule pattern is preferably square or rectangular.
  • Fig. 5 The left side of Fig. 5 shows the position of four pixel points in the original image before enlargement. After zooming in four times, the position of the four pixel points is as shown in the right figure of Fig. 5.
  • Step 32 Calculate the color value of the pixels other than the original pixel in the magnifying space according to the original pixel in the magnifying space, and complete the local resolution of the image.
  • the above step 32 specifically includes the following steps:
  • the pixel to be interpolated within the original pixel point is P;
  • Step 321 Calculate the degree of correlation between the pixel to be interpolated and the four original pixel points around the pixel, and generate an influence factor of the four original pixel points to the pixel to be interpolated;
  • ⁇ ⁇ denotes the degree of correlation between the defect and the pixel to be interpolated, and so on, and ⁇ are respectively:
  • Step 322 Calculate a color value of the pixel to be interpolated according to an original color value of four original pixel points around the pixel to be interpolated and an influence factor of the four original pixel points to the pixel to be interpolated; as shown in FIG. 5 and FIG. 5
  • the color values of the pixels P to be interpolated are evaluated according to the above-mentioned influence factors and the four-point color values of A, B, C, and D, as follows:
  • Re d p Red A xo l +Red B 2 +Red c 3 +Red D x 4
  • Green p Green A o + Green B ⁇ 2 + Green c x ⁇ 3 ⁇ 4 + Green D x ⁇ ⁇
  • Blue p Blue A ⁇ ⁇ + Blue B ⁇ 2 + Blue c ⁇ 3 + Blue D x ⁇ ⁇
  • ⁇ , ⁇ and 53 ⁇ 4 ⁇ respectively represent the red, green and blue color components of the pixel p to be interpolated.
  • the image region of interest is adaptively determined, and the resolution is improved according to the user's needs, thereby improving the information amount of the image of the region of interest, and the user can view more effectively.
  • Image detail information the process ends.
  • the embodiment of the present invention includes two parts: an adaptive region of interest detection and a resolution enhancement, and the region of interest detection portion fully considers the a priori information of the user's target of interest that is known in advance, thereby improving the detection of the region of interest.
  • the accuracy, the method is more personalized, to meet the needs of different users for different views of the same image; the resolution of the region of interest is improved by only increasing the resolution of the detected region of interest, so
  • the resolution enhancement method in the embodiment of the present invention fully considers the influence of the original pixel point on the pixel to be interpolated, introduces the influence factor of the pixel point of the original image to be interpolated, and calculates the color value of the pixel to be interpolated according to the influence factor, thereby improving Interpolation performance.
  • the embodiment of the invention provides a unique and efficient image processing method for the mobile phone user, which is convenient for the user to operate, and provides the user with the possibility of mining more detailed information in the region of interest in the image, thereby increasing the user experience pleasure. Therefore, the present invention has strong industrial applicability.

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Image Processing (AREA)

Abstract

A method and a device for processing mobile terminal images are used for increasing the processing speed. The method comprises: performing area-of-interest detection on an image to be processed according to area-of-interest priori information which is obtained in advance; and improving the resolution of a detected area of interest. The device comprises an area-of-interest detection module and a resolution improving module. Compared with the prior art, an area-of-interest detection part fully takes the priori information of a user interested object which is obtained in advance into consideration, and the detection accuracy of the area of interest is improved; and the resolution improving part of the area of interest only improves the resolution of the detected area of interest, so that the processing speed can be increased.

Description

一种移动终端图像处理方法及装置  Mobile terminal image processing method and device
技术领域 Technical field
本发明涉及图像处理领域,具体涉及一种移动终端图像处理方法及装置。  The present invention relates to the field of image processing, and in particular, to a mobile terminal image processing method and apparatus.
背景技术 Background technique
在图像处理领域, 图像增强是很重要的方向。 图像增强技术主要研究将 原来不清晰的图像变得清晰或者增强某些关注的特征, 抑制非关注的特征, 以达到改善图像质量、 丰富信息量, 加强图像判读和识别效果的目的。  In the field of image processing, image enhancement is an important direction. Image enhancement technology mainly studies the original unclear image or enhances certain features of interest, and suppresses non-attention features to improve image quality, enrich information, and enhance image interpretation and recognition.
现有的图像分辨率提升技术大致可分为 2大类, 一类是基于多张低分辨 率图像, 通过对图像进行校正, 然后利用插值、 重建或者学习等方式得到一 副高分辨率图像。 这类方法效果的优劣很大程度上取决于 2副图像之前的运 动参数, 同时计算复杂度普遍较高; 第二类方法^ ^于单张低分辨率图像, 对其进行插值得到一张高分辨率图像。 这种方法由于只涉及低分辨率图像本 身, 适用范围更广。  The existing image resolution enhancement techniques can be roughly divided into two categories. One is based on multiple low-resolution images, and the image is corrected, and then a high-resolution image is obtained by interpolation, reconstruction or learning. The effect of this kind of method depends largely on the motion parameters before the two images, and the computational complexity is generally higher. The second method is to interpolate a single low-resolution image. High resolution image. This method has a wider range of applications because it involves only low-resolution images.
广泛釆用的插值算法包括最临近点插值算法、 双线性插值算法和双立方 插值算法等。 最临近点插值算法假设待插值点像素与其横向邻域像素之间呈 线性关系, 经常会造成明显的失真; 双线性插值算法在最临近点插值的基础 上, 增加纵向邻域像素点对待插值像素点的约束, 插值性能上优于前者; 相 比上述插值算法只考虑像素点 4邻域像素对待插值点的影响, 双立方插值算 法将范围扩大到 16邻域, 同时釆用更平滑的曲线计算待插值像素点色彩值, 插值效果最优, 然而计算复杂度也最高。  The widely used interpolation algorithms include the nearest neighbor interpolation algorithm, bilinear interpolation algorithm and bicubic interpolation algorithm. The nearest neighbor interpolation algorithm assumes a linear relationship between the pixels to be interpolated and its horizontal neighbor pixels, which often causes significant distortion. The bilinear interpolation algorithm increases the vertical neighborhood pixels to interpolate on the basis of the nearest neighbor interpolation. Pixel point constraints, the interpolation performance is better than the former; compared to the above interpolation algorithm only considers the influence of pixel 4 neighborhood pixels on the interpolation point, the double cubic interpolation algorithm expands the range to 16 neighborhoods, and uses a smoother curve Calculating the color value of the pixel to be interpolated, the interpolation effect is optimal, but the computational complexity is also the highest.
发明内容 Summary of the invention
本发明实施例要解决的技术问题是提供一种移动终端图像处理方法及装 置, 提高处理速度。  The technical problem to be solved by the embodiments of the present invention is to provide a mobile terminal image processing method and apparatus, which improve processing speed.
为解决上述技术问题, 釆用如下技术方案:  In order to solve the above technical problems, the following technical solutions are used:
一种移动终端图像处理方法, 包括: 根据预先获得的感兴趣区域先验信息对待处理图像进行感兴趣区域检测; 对检测出的感兴趣区域进行分辨率提升。 A mobile terminal image processing method includes: The region of interest is detected according to the a priori information of the region of interest obtained in advance; the resolution of the detected region of interest is improved.
可选地, 该方法还包括, 所述根据预先获得的感兴趣区域先验信息对待 处理图像进行感兴趣区域检测的步骤之前, 釆用以下方式预先获得所述感兴 趣区域先验信息:  Optionally, the method further includes: before the step of performing the region of interest detection on the image to be processed according to the previously obtained region of interest prior information, the prior information of the region of interest is obtained in advance by:
向用户提供一张或多张图像, 每张图像包含一种或多种目标, 提示用户 在所提供的图像中标定自己感兴趣的目标;  Providing one or more images to the user, each image containing one or more targets, prompting the user to calibrate the target of interest in the provided image;
计算用户标定的感兴趣目标的特征参数; 将用户感兴趣目标的特征参数作为先验信息保存到当前用户的标准感兴 趣目标库。  Calculating the feature parameters of the user-targeted target of interest; storing the feature parameters of the target of the user's interest as a priori information to the current user's standard interest object library.
可选地, 所述根据预先获得的感兴趣区域先验信息对待处理图像进行感 兴趣区域检测的步骤包括:  Optionally, the step of performing the region of interest detection on the image to be processed according to the previously obtained region of interest prior information includes:
根据图像内部相似特征将待处理图像划分成一个或多个对象区域; 计算所述对象区域的特征参数;  Dividing the image to be processed into one or more object regions according to similar features in the image; calculating feature parameters of the object region;
将所述对象区域的特征参数与标准感兴趣区域目标库中的特征参数进行 相似度比对, 将与标准特征参数相似度大于预设阔值的对象区域确定为用户 感兴趣区域。  Comparing the feature parameters of the object region with the feature parameters in the target region of the standard region of interest, and determining the object region with the similarity of the standard feature parameter to be greater than the preset threshold as the user region of interest.
可选地, 所述对检测出的感兴趣区域进行分辨率提升的步骤包括: 根据预设置的图像放大倍数 N, 将检测出的感兴趣区域映射到放大空间 中, 所述放大空间是感兴趣区域的 N倍;  Optionally, the step of performing resolution improvement on the detected region of interest comprises: mapping the detected region of interest into an amplification space according to a preset image magnification N, wherein the amplification space is of interest N times the area;
在所述放大空间中根据原始像素点, 釆用插值法计算所述放大空间中除 原始像素点外其他像素点的色彩值, 完成图像局部分辨率提升。  In the magnifying space, according to the original pixel point, the color value of the pixel other than the original pixel point in the magnifying space is calculated by interpolation, and the local resolution of the image is improved.
可选地, 在所述根据预设置的图像放大倍数 N, 将检测出的感兴趣区域 映射到放大空间中的步骤之前, 所述方法还包括:  Optionally, before the step of mapping the detected region of interest into the amplifying space according to the preset image magnification N, the method further includes:
将所述感兴趣区域进行规则化处理。  The region of interest is regularized.
可选地, 所述在放大空间中根据原始像素点, 釆用插值法计算放大空间 中除原始像素点外其他像素点的色彩值的步骤包括: 设放大空间中除原始像素点外其他像素点为待插值像素点, 对每个待插 值像素点进行下述处理: Optionally, the step of calculating, according to the original pixel point in the enlargement space, the color value of the pixel other than the original pixel in the enlarged space by using the interpolation method includes: It is assumed that other pixels except the original pixel point in the enlarged space are pixels to be interpolated, and the following processing is performed on each pixel to be interpolated:
计算待插值像素点与其周围的 M个原始像素点的相关程度, 生成该 M 个原始像素点到所述待插值像素点的影响因子;  Calculating a degree of correlation between the pixel to be interpolated and the M original pixel points around the pixel, and generating an influence factor of the M original pixel points to the pixel to be interpolated;
根据所述待插值像素点周围 M个原始像素点的原始色彩值以及该 M个 原始像素点到所述待插值像素点的影响因子, 计算所述待插值像素点的色彩 值。  And calculating a color value of the pixel to be interpolated according to an original color value of the M original pixel points around the pixel to be interpolated and an influence factor of the M original pixel points to the pixel to be interpolated.
可选地,所述计算待插值像素点与其周围的 M个原始像素点的相关程度, 生成该 M个原始像素点到所述待插值像素点的影响因子的步骤包括:  Optionally, the step of calculating a correlation degree between the pixel to be interpolated and the M original pixel points in the surrounding, and generating an influence factor of the M original pixel points to the pixel to be interpolated includes:
釆用下式计算每个原始像素点与所述待插值像素点的相关程度:
Figure imgf000005_0001
计算 Calculate the correlation between each original pixel and the pixel to be interpolated by using the following formula:
Figure imgf000005_0001
其中, r表示第 m个原始像素点与所述待插值像素点的相关程度,其中, K m < M , i、 j分别为第 m个原始像素点的横纵坐标, x、 y分别为所述待 插值像素点的横纵坐标; Where r represents the degree of correlation between the mth original pixel point and the pixel to be interpolated, where K m < M , i, j are the horizontal and vertical coordinates of the mth original pixel point, respectively, x and y are The horizontal and vertical coordinates of the pixel to be interpolated;
对每个原始像素点与所述待插值像素点的相关程度进行以下归一化处理 得到每个原始像素点到所述待插值像素点的影响因子: ω = , \≤m≤M  Performing the following normalization processing on the degree of correlation between each original pixel and the pixel to be interpolated to obtain an influence factor of each original pixel to the pixel to be interpolated: ω = , \ ≤ m ≤ M
(^ +r2 +··· + ¾) (^ +r 2 +··· + 3⁄4)
其中, ^为第 m个原始像素点对所述待插值像素点的影响因子, rm为第 m个原始像素点与所述待插值像素点的相关程度。 Where ^ is the influence factor of the mth original pixel point on the pixel to be interpolated, and r m is the degree of correlation between the mth original pixel point and the pixel to be interpolated.
可选地,所述根据待插值像素点周围 M个原始像素点的原始色彩值以及 该 M个原始像素点到所述待插值像素点的影响因子,计算所述待插值像素点 的色彩值的步骤包括:  Optionally, calculating, according to an original color value of M original pixel points around the pixel to be interpolated and an influence factor of the M original pixel points to the pixel to be interpolated, calculating a color value of the pixel to be interpolated The steps include:
釆用下式计算每个待插值像素点的色彩值:  计算 Calculate the color value of each pixel to be interpolated using the following formula:
R dp = Re^ x + Ret/2 x +… + Ret/ x ωΜ R d p = Re^ x + Ret/ 2 x +... + Ret/ x ω Μ
Greenp = Greenx Χ ό)λ -\ - Green Χ ύ)2 -\ H GreenM X (ύΜ Green p = Green x Χ ό) λ -\ - Green Χ ύ) 2 -\ H Green M X (ύ Μ
Bluep = Blue x + Blue2 x +… + BlueM x ωΜ Blue p = Blue x + Blue 2 x +... + Blue M x ω Μ
其中 ^、 ^^ 和^^分别表示所述待插值像素点的红、 绿、 蓝色彩 分量大小, Ke 为第 m个原始像素点的红色分量, ^为第 m个原始像素 点的绿色分量, 为第 m个原始像素点的蓝色分量, ^为第 m个原始像 素点对所述待插值像素点的影响因子, 其中 l m M。 Where ^, ^^ and ^^ respectively represent the red, green and blue colors of the pixel to be interpolated Component size, Ke is the red component of the mth original pixel, ^ is the green component of the mth original pixel, is the blue component of the mth original pixel, and ^ is the mth original pixel pair The influence factor of the pixel to be interpolated, where lm M.
可选地, 所述 M=4。  Optionally, the M=4.
一种移动终端图像处理装置, 包括感兴趣区域检测模块和分辨率提升模 块, 其中: A mobile terminal image processing apparatus includes a region of interest detection module and a resolution enhancement module, wherein:
所述感兴趣区域检测模块设置成: 根据预先获得的感兴趣区域先验信息 对待处理图像进行感兴趣区域检测;  The region of interest detection module is configured to: perform region of interest detection on the image to be processed according to the a priori information of the region of interest obtained in advance;
所述分辨率提升模块设置成: 对所述感兴趣区域检测模块检测出的感兴 趣区域进行分辨率提升。  The resolution enhancement module is configured to: perform resolution improvement on the region of interest detected by the region of interest detection module.
可选地, 该装置还包括先验信息获取模块, 其中:  Optionally, the device further includes a prior information obtaining module, where:
所述先验信息获取模块设置成: 预先获得所述感兴趣区域先验信息, 所 述先验信息获取模块包括提示单元、 第一计算单元和保存单元, 其中:  The a priori information obtaining module is configured to: obtain the a priori information of the region of interest in advance, where the a priori information acquiring module includes a prompting unit, a first calculating unit, and a saving unit, where:
所述提示单元设置成: 向用户提供一张或多张图像, 每张图像包含一种 或多种目标, 提示用户在所提供的图像中标定自己感兴趣的目标;  The prompting unit is configured to: provide one or more images to the user, each image containing one or more targets, prompting the user to calibrate the target of interest in the provided image;
所述第一计算单元设置成: 计算用户标定的感兴趣目标的特征参数; 所述保存单元设置成: 将用户感兴趣目标的特征参数作为先验信息保存 到当前用户的标准感兴趣目标库。  The first calculating unit is configured to: calculate a feature parameter of the user-calibrated target of interest; the saving unit is configured to: save the feature parameter of the target of the user's interest as a priori information to the current target target library of the current user.
可选地, 所述感兴趣区域检测模块包括区域划分单元、 第二计算单元和 对比单元, 其中:  Optionally, the region of interest detection module includes a region dividing unit, a second calculating unit, and a comparing unit, where:
所述区域划分单元设置成: 根据图像内部相似特征将待处理图像划分成 一个或多个对象区域;  The area dividing unit is configured to: divide the image to be processed into one or more object areas according to similar features inside the image;
所述第二计算单元设置成: 计算所述对象区域的特征参数;  The second calculating unit is configured to: calculate a feature parameter of the object area;
所述对比单元设置成: 将所述对象区域的特征参数与标准感兴趣区域目 标库中的特征参数进行相似度比对, 将与标准特征参数相似度大于预设阔值 的对象区域确定为用户感兴趣区域。 可选地, 所述分辨率提升模块包括放大单元和色彩值计算单元, 其中: 所述放大单元设置成: 根据预设置的图像放大倍数 N, 将检测出的感兴 趣区域映射到放大空间中, 所述放大空间是感兴趣区域的 N倍; The comparison unit is configured to: compare a feature parameter of the object area with a feature parameter in a standard interest area target library, and determine an object area with a similarity of the standard feature parameter to a preset threshold as a user Area of interest. Optionally, the resolution enhancement module includes an amplifying unit and a color value calculating unit, where: the amplifying unit is configured to: map the detected region of interest into the amplifying space according to the preset image magnification N The magnification space is N times the region of interest;
所述色彩值计算单元设置成: 在所述放大空间中根据原始像素点, 釆用 插值法计算所述放大空间中除原始像素点外其他像素点的色彩值, 完成图像 局部分辨率提升。  The color value calculation unit is configured to: calculate, according to the original pixel point, the color value of the pixel other than the original pixel in the enlarged space according to the original pixel point, and complete the image local resolution improvement.
可选地, 所述分辨率提升模块还包括规则化处理单元, 其中:  Optionally, the resolution promotion module further includes a regularization processing unit, where:
所述规则化处理单元设置成: 先将所述感兴趣区域检测模块检测出的感 兴趣区域进行规则化处理。  The regularization processing unit is configured to: perform regularization processing on the region of interest detected by the region of interest detection module.
可选地, 所述色彩值计算单元设置成按照如下方式在放大空间中根据原 始像素点,釆用插值法计算放大空间中除原始像素点外其他像素点的色彩值: 设放大空间中除原始像素点外其他像素点为待插值像素点, 所述色彩值 计算单元对每个待插值像素点进行下述处理:  Optionally, the color value calculation unit is configured to calculate, according to the original pixel point in the enlargement space, the color value of the pixel other than the original pixel point in the enlarged space according to the original pixel point: The other pixel points outside the pixel point are pixels to be interpolated, and the color value calculation unit performs the following processing on each pixel to be interpolated:
计算待插值像素点与其周围的 M个原始像素点的相关程度, 生成该 M 个原始像素点到所述待插值像素点的影响因子;  Calculating a degree of correlation between the pixel to be interpolated and the M original pixel points around the pixel, and generating an influence factor of the M original pixel points to the pixel to be interpolated;
根据所述待插值像素点周围 M个原始像素点的原始色彩值以及该 M个 原始像素点到所述待插值像素点的影响因子, 计算所述待插值像素点的色彩 值。  And calculating a color value of the pixel to be interpolated according to an original color value of the M original pixel points around the pixel to be interpolated and an influence factor of the M original pixel points to the pixel to be interpolated.
可选地, 所述色彩值计算单元设置成按照如下方式计算待插值像素点与 其周围的 M个原始像素点的相关程度, 生成该 M个原始像素点到所述待插 值像素点的影响因子:  Optionally, the color value calculation unit is configured to calculate a correlation degree between the pixel points to be interpolated and the M original pixel points around the same, and generate an influence factor of the M original pixel points to the pixel to be interpolated:
所述色彩值计算单元釆用下式计算每个原始像素点与所述待插值像素点 的相关程度:
Figure imgf000007_0001
The color value calculation unit calculates the degree of correlation between each original pixel point and the pixel to be interpolated by using the following formula:
Figure imgf000007_0001
其中, 表示第 m个原始像素点与所述待插值像素点的相关程度,其中, Wherein, indicating the degree of correlation between the mth original pixel point and the pixel to be interpolated, wherein
K m < M , i、 j分别为第 m个原始像素点的横纵坐标, x、 y分别为所述待 插值像素点的横纵坐标; 所述色彩值计算单元对每个原始像素点与所述待插值像素点的相关程度 进行以下归一化处理得到每个原始像素点到所述待插值像素点的影响因子: ω = ,\≤m≤M K m < M , i, j are the horizontal and vertical coordinates of the mth original pixel, respectively, and x and y are the horizontal and vertical coordinates of the pixel to be interpolated, respectively; The color value calculation unit performs normalization processing on the correlation degree of each original pixel point and the pixel to be interpolated to obtain an influence factor of each original pixel point to the pixel to be interpolated: ω = , \ ≤ m ≤ M
(^+r2 +··· + ¾) (^+r 2 +··· + 3⁄4)
其中, ^为第 m个原始像素点对所述待插值像素点的影响因子, rm为第 m个原始像素点与所述待插值像素点的相关程度。 Where ^ is the influence factor of the mth original pixel point on the pixel to be interpolated, and r m is the degree of correlation between the mth original pixel point and the pixel to be interpolated.
可选地, 所述色彩值计算单元设置成按照如下方式根据待插值像素点周 围 M个原始像素点的原始色彩值以及该 M个原始像素点到所述待插值像素 点的影响因子, 计算所述待插值像素点的色彩值:  Optionally, the color value calculation unit is configured to calculate the original color value of the M original pixel points around the pixel to be interpolated and the influence factor of the M original pixel points to the pixel to be interpolated according to the following manner. The color value of the interpolated pixel is mentioned:
所述色彩值计算单元釆用下式计算每个待插值像素点的色彩值: Redp = Redlxa)l +Ret2 x<¾ + --- + RedM χωΜ The color value calculation unit calculates the color value of each pixel to be interpolated by the following formula: Red p = Red l xa) l +Ret 2 x<3⁄4 + --- + Red M χω Μ
Green p = Greenx X(01 + Green2 X <¾ H H GreenM X C0M Green p = Green x X(0 1 + Green 2 X <3⁄4 HH Green M X C0 M
Bluep = Bluel Χύ)ι + Blue2 χω2 +— h BlueM X ωΜ Blue p = Blue l Χύ) ι + Blue 2 χω 2 +— h Blue M X ω Μ
其中 ^、 G^"^^tep分别表示所述待插值像素点的红、 绿、 蓝色彩 分量大小, Re 为第 m个原始像素点的红色分量, ^为第 m个原始像素 点的绿色分量, 为第 m个原始像素点的蓝色分量, ^为第 m个原始像 素点对所述待插值像素点的影响因子, 其中 l m M。 Where ^, G^"^^te p respectively represent the red, green, and blue color components of the pixel to be interpolated, Re is the red component of the mth original pixel, and ^ is the green of the mth original pixel The component is the blue component of the mth original pixel, and ^ is the influence factor of the mth original pixel on the pixel to be interpolated, where lm M.
可选地, 所述 M=4。  Optionally, the M=4.
与相关技术相比较, 本发明实施例包括自适应感兴趣区域检测与分辨率 提升两部分, 感兴趣区域检测部分充分考虑事先获知的用户感兴趣目标这一 先验信息, 提高了感兴趣区域检测的准确性, 方法更有个性化, 满足不同用 户对同一图像不同侧重喜好的需求; 感兴趣区域分辨率提升部分由于仅对检 测出的感兴趣区域进行分辨率提升, 因此能够提高处理速度, 另外, 本发明 实施例中的分辨率提升方法充分考虑了原始像素点对待插值像素点的影响, 引入了原始图像像素点对待插值像素点的影响因子, 根据此影响因子计算待 插值点色彩值, 提高插值性能。 Compared with the related art, the embodiment of the present invention includes two parts: an adaptive region of interest detection and a resolution enhancement, and the region of interest detection portion fully considers the a priori information of the user's target of interest that is known in advance, thereby improving the detection of the region of interest. The accuracy, the method is more personalized, to meet the needs of different users for different views of the same image; the resolution of the region of interest is improved by only increasing the resolution of the detected region of interest, so The resolution enhancement method in the embodiment of the present invention fully considers the influence of the original pixel point on the pixel to be interpolated, introduces the influence factor of the pixel point of the original image to be interpolated, and calculates the color value of the pixel to be interpolated according to the influence factor, thereby improving Interpolation performance.
本发明实施例为手机用户提供了一种功能独立、 高效的图像处理方法, 方便用户操作, 为用户挖掘图像中感兴趣区域中更加细节的信息提供可能, 增加用户体验愉悦感。 The embodiment of the invention provides a function independent and efficient image processing method for the mobile phone user. It is convenient for users to operate, and it is possible for the user to mine more detailed information in the region of interest in the image, and to increase the user experience pleasure.
附图概述 BRIEF abstract
图 1是本发明实施例 1的方法流程图;  1 is a flow chart of a method according to Embodiment 1 of the present invention;
图 2是本发明实施例 2的装置结构示意图;  2 is a schematic structural view of a device according to Embodiment 2 of the present invention;
图 3是本发明应用示例的自适应图像感兴趣区域检测与分辨率提升方法 流程图;  3 is a flow chart of an adaptive image region of interest detection and resolution enhancement method according to an application example of the present invention;
图 4是本发明应用示例的模拟感兴趣区域示意图;  4 is a schematic diagram of a simulated region of interest according to an application example of the present invention;
图 5是本发明应用示例的模拟感兴趣区域图像放大到指定放大空间后的 示意图;  5 is a schematic diagram of an analog image of a region of interest after being enlarged to a designated enlargement space according to an application example of the present invention;
图 6是本发明应用示例的模拟原始图像像素点对待插值像素点的影响示 意图。 本发明的较佳实施方式  Fig. 6 is a diagram showing the effect of simulating the original image pixel points to be interpolated pixel points in an application example of the present invention. Preferred embodiment of the invention
考虑到在大多数场合, 用户感兴趣的并非整幅图像, 若将分辨率提升方 法应用到整幅图像, 将极大的增加计算复杂度, 同时处理时间也大大增加。 为了保证在低的计算复杂度的前提下, 实现较好的插值性能, 因此本文考虑 只对用户感兴趣区域提升分辨率, 即图像感兴趣区域分辨率提升。 由于充分 考虑了用户主观感兴趣信息, 获得的结果更符合用户感情, 效果更佳。  Considering that in most cases, the user is not interested in the entire image, if the resolution enhancement method is applied to the entire image, the computational complexity will be greatly increased, and the processing time will be greatly increased. In order to ensure better interpolation performance under the premise of low computational complexity, this paper considers only improving the resolution of the region of interest of the user, that is, the resolution of the region of interest of the image is improved. Since the subjective interest information of the user is fully considered, the obtained result is more in line with the user's feelings, and the effect is better.
对感兴趣区域检测时, 考虑用户参与信息, 由于不同的用户感兴趣区域 往往不同, 因此针对不同用户同一幅图像的处理结果可能是不同的, 更有针 对性, 符合用户情感, 效果更佳。 此外, 仅对图像中用户感兴趣区域进行图 像分辨率提升, 有助于提高处理速度, 同时也更加满足用户对感兴趣图像区 域更细节信息获取的需要。  When detecting the region of interest, considering the user participation information, since the different user regions of interest are often different, the processing results for the same image of different users may be different, more targeted, conforming to user emotions, and the effect is better. In addition, only the image resolution of the user's region of interest in the image is improved, which helps to improve the processing speed, and also satisfies the user's need for more detailed information acquisition of the image region of interest.
为使本发明的目的、 技术方案和优点更加清楚明白, 下文中将结合附图 对本发明的实施例进行详细说明。 需要说明的是, 在不冲突的情况下, 本申 请中的实施例及实施例中的特征可以相互任意组合。 In order to make the objects, the technical solutions and the advantages of the present invention more clearly, the embodiments of the present invention will be described in detail below with reference to the accompanying drawings. It should be noted that in the absence of conflict, this application The features of the embodiments and the embodiments may be arbitrarily combined with each other.
实施例 1  Example 1
本实施例的图像处理方法如图 1所示, 包括以下步骤:  The image processing method of this embodiment is as shown in FIG. 1 and includes the following steps:
步骤 10,根据预先获得的感兴趣区域先验信息对待处理图像进行感兴趣 区域 ^检测;  Step 10: performing a region of interest detection on the image to be processed according to the a priori information of the region of interest obtained in advance;
可选地, 上述感兴趣区域先验信息可以釆用以下方式预先获得: 向用户 提供一张或多张图像, 每张图像包含一种或多种目标, 提示用户在所提供的 图像中标定自己感兴趣的目标; 计算用户标定的感兴趣目标的特征参数; 将 用户感兴趣目标的特征参数作为先验信息保存到当前用户的标准感兴趣目标 库。  Optionally, the a priori information of the above-mentioned region of interest may be obtained in advance by: providing one or more images to the user, each image containing one or more targets, prompting the user to calibrate himself in the provided image The target of interest; calculating the feature parameter of the user-targeted target of interest; storing the feature parameter of the target of the user's interest as a priori information to the current target target library of the user.
可选地, 上述根据预先获得的感兴趣区域先验信息对待处理图像进行感 兴趣区域检测的步骤包括步骤 101-103 :  Optionally, the step of performing the region of interest detection on the image to be processed according to the previously obtained region of interest a priori information includes steps 101-103:
步骤 101 , 根据图像内部相似特征将待处理图像划分成一个或多个对象 区域;  Step 101: Divide the image to be processed into one or more object regions according to similar features in the image;
步骤 102, 计算所述对象区域的特征参数;  Step 102: Calculate a feature parameter of the object area.
步骤 103 , 将所述对象区域的特征参数与标准感兴趣区域目标库中的特 征参数进行相似度比对, 将与标准特征参数相似度大于预设阔值的对象区域 确定为用户感兴趣区域;  Step 103: Perform similarity comparison between the feature parameter of the target area and the feature parameter in the standard interest area target library, and determine an object area with a similarity of the standard feature parameter greater than a preset threshold as the user interested area;
步骤 20 , 对检测出的感兴趣区域进行分辨率提升;  Step 20: performing resolution improvement on the detected region of interest;
可以釆用已知的分辨率提升方法对该感兴趣区域进行分辨率提升, 可选 地, 也可釆用以下方法对检测出的感兴趣区域进行分辨率提升:  The resolution of the region of interest can be improved by using a known resolution enhancement method. Alternatively, the detected region of interest can be improved by the following method:
步骤 201 , 根据预设置的图像放大倍数 N, 将检测出的感兴趣区域映射 到放大空间中, 该放大空间是感兴趣区域的 N倍;  Step 201: Map the detected region of interest into the amplifying space according to the preset image magnification N, where the zooming space is N times of the region of interest;
可选地, 如果感兴趣区域为不规则图形, 为了后续处理方便, 在映射之 前, 先将该感兴趣区域进行规则化处理。 所谓规则化处理是指: 在待处理图 像中, 对检测出的不规则的对象进行以下处理, 作经过该对象最顶端边界点 和最低端边界点的水平线, 以及经过该对象最左端边界点和最右端边界点的 垂直线, 上述四条线两两相交后划分的封闭区域为经过规则化处理的感兴趣 区域。一种简单的处理方法是:将原始的不规则感兴趣区域用矩形框圈起来, 对该不规则图形的处理, 即可转成对该矩形区域的处理; Optionally, if the region of interest is an irregular graphic, for convenience of subsequent processing, the region of interest is first regularized before mapping. The so-called regularization process refers to: in the image to be processed, the following processing is performed on the detected irregular object, as a horizontal line passing through the topmost boundary point and the lowest end boundary point of the object, and the leftmost boundary point of the object and The vertical line of the rightmost boundary point, the closed area divided by the above four lines after the intersection of two and two is a regularized interest Area. A simple processing method is: the original irregular region of interest is circled by a rectangular frame, and the processing of the irregular pattern can be converted into processing of the rectangular region;
步骤 202 , 在该放大空间中根据原始像素点, 釆用插值法计算该放大空 间中除原始像素点外其他像素点的色彩值, 完成图像局部分辨率提升; 设放大空间中除原始像素点外其他像素点为待插值像素点, 对每个待插 值像素点进行下述处理:  Step 202: Calculate, according to the original pixel point in the magnifying space, the color value of the pixel other than the original pixel in the magnifying space, and complete the local resolution of the image; and set the zooming space except the original pixel The other pixels are pixels to be interpolated, and the following processing is performed for each pixel to be interpolated:
步骤 2021,计算待插值像素点与其周围的 M个原始像素点的相关程度, 生成该 M个原始像素点到所述待插值像素点的影响因子;  Step 2021: Calculate a correlation degree between the pixel to be interpolated and the M original pixel points around the pixel, and generate an influence factor of the M original pixel points to the pixel to be interpolated;
可选地, 可釆用下式计算每个原始像素点与所述待插值像素点的相关程 度:
Figure imgf000011_0001
Optionally, the degree of correlation between each original pixel point and the pixel to be interpolated may be calculated by using the following formula:
Figure imgf000011_0001
其中, r表示第 m个原始像素点与所述待插值像素点的相关程度,其中, K m < M , i、 j分别为第 m个原始像素点的横纵坐标, x、 y分别为所述待 插值像素点的横纵坐标; Where r represents the degree of correlation between the mth original pixel point and the pixel to be interpolated, where K m < M , i, j are the horizontal and vertical coordinates of the mth original pixel point, respectively, x and y are The horizontal and vertical coordinates of the pixel to be interpolated;
对每个原始像素点与所述待插值像素点的相关程度进行以下归一化处理 得到每个原始像素点到所述待插值像素点的影响因子: ω = ,\≤m≤M  Performing the following normalization processing on the degree of correlation between each original pixel and the pixel to be interpolated to obtain an influence factor of each original pixel to the pixel to be interpolated: ω = , \ ≤ m ≤ M
(^ + r2 +··· + ¾) (^ + r 2 +··· + 3⁄4)
其中, ^为第 m个原始像素点对所述待插值像素点的影响因子, rm为第 m个原始像素点与所述待插值像素点的相关程度; Where ^ is the influence factor of the mth original pixel point on the pixel to be interpolated, and r m is the degree of correlation between the mth original pixel point and the pixel to be interpolated;
步骤 2022, 根据所述待插值像素点周围 M个原始像素点的原始色彩值 以及该 M个原始像素点到所述待插值像素点的影响因子,计算所述待插值像 素点的色彩值。  Step 2022: Calculate a color value of the pixel to be interpolated according to an original color value of the M original pixel points around the pixel to be interpolated and an influence factor of the M original pixel points to the pixel to be interpolated.
可选地, 可釆用下式计算每个待插值像素点的色彩值:  Alternatively, the color value of each pixel to be interpolated can be calculated by the following formula:
Redp = Re j X + Rei 2 X <»2 + · · · + Re M X <¾ Red p = Re j X + Rei 2 X <» 2 + · · · + Re M X <3⁄4
Green p = Greenx X (01 + Green2 X <¾ H H GreenM X C0M Green p = Green x X (0 1 + Green 2 X <3⁄4 HH Green M X C0 M
Bluep = Bluel Χ ύ)ι + Blue2 χ ω2 +— h BlueM X ωΜ Blue p = Blue l Χ ύ) ι + Blue 2 χ ω 2 +— h Blue M X ω Μ
其中 ^、 G^"^^tep分别表示所述待插值像素点的红、 绿、 蓝色彩 分量大小, Ke 为第 m个原始像素点的红色分量, ^为第 m个原始像素 点的绿色分量, 为第 m个原始像素点的蓝色分量, ^为第 m个原始像 素点对所述待插值像素点的影响因子, 其中 l m M。 Where ^, G^"^^te p respectively represent the red, green, and blue colors of the pixel to be interpolated Component size, Ke is the red component of the mth original pixel, ^ is the green component of the mth original pixel, is the blue component of the mth original pixel, and ^ is the mth original pixel pair The influence factor of the pixel to be interpolated, where lm M.
在上述步骤 2021和 2022中, 参与计算的原始像素点数目越多, 分辨率 提升效果也越好, 但是计算复杂度也越高, 所以为了得到折中的效果, 优选 M=4。  In the above steps 2021 and 2022, the more the number of original pixel points participating in the calculation, the better the resolution improvement effect, but the higher the computational complexity, so in order to obtain the compromise effect, M=4 is preferable.
分辨率提升方法虽然有很多, 但是为了得到较好的分辨率提升效果, 往 往需要付出巨大的计算复杂度的代价, 釆用本实施例方法计算复杂度低, 而 且由于釆用的是类似低通滤波的方法, 较好的保持了图像的全局信息。  Although there are many resolution enhancement methods, in order to obtain a better resolution improvement effect, it often takes a huge computational complexity. The calculation complexity of this method is low, and the low-pass is similar. The filtering method better preserves the global information of the image.
实施例 2 Example 2
实现上述方法的装置如图 2所示,包括感兴趣区域检测模块 20和分辨率 提升模块 21 , 其中:  The apparatus for implementing the above method is as shown in FIG. 2, and includes a region of interest detection module 20 and a resolution enhancement module 21, wherein:
该感兴趣区域检测模块设置成:根据预先获得的感兴趣区域先验信息 对待处理图像进行感兴趣区域检测;  The region of interest detection module is configured to: perform region of interest detection on the image to be processed according to the a priori information of the region of interest obtained in advance;
可选地, 该感兴趣区域检测模块 20包括区域划分单元 201、 第二计算单 元 202和对比单元 203 , 其中:  Optionally, the region of interest detection module 20 includes a region dividing unit 201, a second computing unit 202, and a comparing unit 203, where:
该区域划分单元 201设置成: 根据图像内部相似特征将待处理图像划分 成一个或多个对象区域;  The area dividing unit 201 is configured to: divide the image to be processed into one or more object areas according to similar features inside the image;
该第二计算单元 202设置成: 计算该对象区域的特征参数;  The second calculating unit 202 is configured to: calculate a feature parameter of the object area;
该对比单元 203设置成: 将该对象区域的特征参数与标准感兴趣区域目 标库中的特征参数进行相似度比对, 将与标准特征参数相似度大于预设阔值 的对象区域确定为用户感兴趣区域。  The comparison unit 203 is configured to: compare the feature parameters of the target region with the feature parameters in the standard interest region target library, and determine the object region with the similarity of the standard feature parameters greater than the preset threshold as the user sense Area of interest.
该分辨率提升模块 21设置成: 对所述感兴趣区域检测模块检测出的 感兴趣区域进行分辨率提升。  The resolution enhancement module 21 is configured to: perform resolution improvement on the region of interest detected by the region of interest detection module.
可选地,该分辨率提升模块 21包括放大单元 211和色彩值计算单元 212 , 其中: 该放大单元 211设置成: 根据预设置的图像放大倍数 N, 将检测出的感 兴趣区域映射到放大空间中, 该放大空间是感兴趣区域的 N倍; Optionally, the resolution enhancement module 21 includes an amplification unit 211 and a color value calculation unit 212, where: The amplifying unit 211 is configured to: map the detected region of interest into an amplifying space according to a preset image magnification N, the zooming space being N times of the region of interest;
该色彩值计算单元 212设置成: 在该放大空间中根据原始像素点, 釆用 插值法计算所述放大空间中除原始像素点外其他像素点的色彩值, 完成图像 局部分辨率提升。  The color value calculation unit 212 is configured to: calculate, according to the original pixel point, the color value of the pixel other than the original pixel in the enlarged space according to the original pixel point, and complete the image local resolution improvement.
可选地,该分辨率提升模块 21还可包括一规则化处理单元 213 ,设置成: 先将所述感兴趣区域检测模块检测出的感兴趣区域进行规则化处理。  Optionally, the resolution enhancement module 21 may further include a regularization processing unit 213, configured to: perform regularization processing on the region of interest detected by the region of interest detection module.
上述色彩值计算单元 212在放大空间中根据原始像素点, 釆用插值法计 算放大空间中除原始像素点外其他像素点的色彩值的过程参见实施例 1 , 此 处不再赘述。  The color value calculation unit 212 calculates the color value of the pixels other than the original pixel in the amplification space according to the original pixel point in the amplification space according to the original pixel point, and is not described here.
可选地, 该装置还包括先验信息获取模块 22, 设置成: 预先获得所述感 兴趣区域先验信息, 包括提示单元 221、 第一计算单元 222和保存单元 223 , 其中:  Optionally, the device further includes a prior information obtaining module 22, configured to: obtain the prior information of the region of interest in advance, and include a prompting unit 221, a first calculating unit 222, and a saving unit 223, where:
该提示单元 221设置成: 向用户提供一张或多张图像, 每张图像包含一 种或多种目标, 提示用户在所提供的图像中标定自己感兴趣的目标;  The prompting unit 221 is configured to: provide one or more images to the user, each image containing one or more targets, prompting the user to calibrate the target of interest in the provided image;
该第一计算单元 222设置成: 计算用户标定的感兴趣目标的特征参数; 该保存单元 223设置成: 将用户感兴趣目标的特征参数作为先验信息保 存到当前用户的标准感兴趣目标库。  The first calculating unit 222 is configured to: calculate a feature parameter of the user-calibrated target of interest; the saving unit 223 is configured to: save the feature parameter of the target of interest of the user as a priori information to the standard target target library of the current user.
应用示例 Application example
釆用自适应图像感兴趣区域分辨率提升方法可以较好的实现图像感兴趣 区域局部放大效果,下面以 M=4为例分别就自适应图像感兴趣区域检测和感 兴趣区域分辨率提升方法进行说明。 如图 3所示。  自适应Adaptive image region of interest resolution enhancement method can better achieve the local zooming effect of the image region of interest. The following is an example of adaptive image region detection and region of interest resolution enhancement method with M=4 as an example. Description. As shown in Figure 3.
一, 图像感兴趣区域检测:  First, the image region of interest detection:
在进行图像感兴趣区域检测之前, 需要先釆用以下步骤建立用户感兴趣 目标库, 获取先验信息:  Before performing image area detection, you need to use the following steps to establish a target library of interest to the user to obtain a priori information:
步骤 11 : 提供多张包含多种目标的图像; 步骤 12: 提示用户在上述多张图像中分别标定自己感兴趣的目标; 步骤 13: 计算用户标定的感兴趣目标的特征参数; Step 11: Provide multiple images containing multiple targets; Step 12: prompting the user to separately calibrate the target of interest in the plurality of images; Step 13: calculating a feature parameter of the target of interest of the user calibration;
步骤 14: 统计用户感兴趣目标, 将用户感兴趣目标的特征参数保存到当 前用户的标准感兴趣目标库。  Step 14: Statistics the target of interest to the user, and save the feature parameters of the target of interest to the current target target library of the current user.
通过上述步骤完成用户感兴趣目标对象标准数据的确立, 用于在后续的 图像处理中确定用户感兴趣区域。 上述用户感兴趣目标的特征参数可称为先 验信息。 为了适应用户喜好的变化, 可以定期执行上述步骤, 更新用户的标 准感兴趣目标库。  Through the above steps, the establishment of the standard data of the target object of interest of the user is completed, and is used for determining the region of interest of the user in the subsequent image processing. The feature parameters of the above-mentioned target of interest to the user may be referred to as prior information. In order to adapt to changes in user preferences, the above steps can be performed periodically to update the user's target library of interest.
图像感兴趣区域检测过程包括:  The image region detection process includes:
步骤 21:根据图像内部相似特征将输入的待处理图像划分成不同的对象 区域;  Step 21: Divide the input image to be processed into different object regions according to similar features in the image;
图像内部相似特征是指图像内部之间的相近相似性, 即物理位置较近的 像素点, 其色彩值也越相似。 因此, 可根据图像内部相似特征即色彩值来划 分对象区域。  The similar features inside the image refer to the similar similarity between the inside of the image, that is, the pixel points with the physical position are closer, and the color values are similar. Therefore, the object area can be divided according to similar features inside the image, i.e., color values.
步骤 22: 计算上述各对象区域的特征参数;  Step 22: Calculate characteristic parameters of each object area mentioned above;
步骤 23: 分别将上述各对象区域的特征参数与标准感兴趣区域目标库中 的特征参数进行相似度比对, 与标准特征参数相似度大于预设阈值 T的对象 区域即为用户感兴趣区域。  Step 23: Comparing the feature parameters of each of the object regions with the feature parameters in the target region of the standard region of interest, and the object region whose similarity with the standard feature parameter is greater than the preset threshold T is the region of interest of the user.
通过上述步骤完成了对待处理图像的自适应感兴趣区域检测过程, 为了 实现对该部分目标的信息增强, 提高其分辨率, 下面就可以对提取的感兴趣 区域进行分辨率提升了。  Through the above steps, the adaptive region of interest detection process of the image to be processed is completed. In order to enhance the information of the target and improve the resolution, the resolution of the extracted region of interest can be improved.
二, 图像自适应感兴趣区域分辨率提升:  Second, the image adaptive region of interest resolution is improved:
步骤 31 , 根据预设置(用户设置或者默认设置)的图像放大倍数 N, 分 别将感兴趣区域映射到放大空间中, 该放大空间是感兴趣区域的 N倍; 其中, N为可控参数, 用户可以事先输入确定。  Step 31: Map the region of interest to the zoom space according to the image magnification N of the preset (user setting or default setting), where the zoom space is N times of the region of interest; wherein N is a controllable parameter, the user You can enter the determination in advance.
可选地,在进行放大前,为了后续处理方便,可先将感兴趣区域规则化, 即处理为规则图形, 如图 4所示, A为用户感兴趣区域, 经过规则化处理后 得到 B, 规则图形优选为方形或者长方形。 Optionally, before performing the enlargement, for the convenience of subsequent processing, the region of interest may be firstly regularized, that is, processed into a regular graph. As shown in FIG. 4, A is a region of interest of the user, and after regularization, Obtaining B, the rule pattern is preferably square or rectangular.
放大处理如如图 5所示, 图 5左侧图为放大前的原始图像中 4个像素点 的位置, 放大 4倍后, 该 4个像素点的位置如图 5右侧图所示。  The enlargement process is as shown in Fig. 5. The left side of Fig. 5 shows the position of four pixel points in the original image before enlargement. After zooming in four times, the position of the four pixel points is as shown in the right figure of Fig. 5.
步骤 32: 在放大空间中根据原始像素点, 釆用插值法计算放大空间中除 原始像素点外其他像素点的色彩值, 完成图像局部分辨率提升。  Step 32: Calculate the color value of the pixels other than the original pixel in the magnifying space according to the original pixel in the magnifying space, and complete the local resolution of the image.
上述步骤 32具体包括以下步骤:  The above step 32 specifically includes the following steps:
设 4个原始像素点为 、 、 Ο 和。 , 原始像素点范围内 的待插值像素点为 P;  Let the 4 original pixels be , , , , and . , the pixel to be interpolated within the original pixel point is P;
步骤 321 , 分别计算待插值像素点与其周围的 4个原始像素点的相关程 度, 生成该 4个原始像素点到待插值像素点的影响因子;  Step 321 : Calculate the degree of correlation between the pixel to be interpolated and the four original pixel points around the pixel, and generate an influence factor of the four original pixel points to the pixel to be interpolated;
以图 5所示 P点为例, 分别计算 A、 B、 C、 D四个原始像素点到 P点的 相关程度, 归一化该相关程度得到 4个原始像素点色彩值对 P点色彩值的影 响因子 、 《2、 《3和《4 , 如图 6所示。 根据图 6, 设 A点坐标 (z', , 则 B点 坐标 ('·,·/ + Λ , C点坐标 ( + ΛΓ' ), D点坐标 ( + Λ+ ΛΓ) , 设待插值像素点 Ρ坐 标为(χ, , 首先计算八、 B、 C、 D四点分别与待插值像素点 P的相关程度如 下, 可釆用如下的负指数欧氏距离方法:Taking the P point shown in Figure 5 as an example, calculate the correlation degree of the four original pixel points A to B, respectively, and normalize the correlation degree to obtain the color value of the four original pixel points and the color value of the P point. The impact factor, " 2 , " 3 and " 4 , as shown in Figure 6. According to Figure 6, set the coordinates of point A ( z ', , then the coordinates of point B ('·, ·· + Λ , C point coordinates ( + ΛΓ ' ), D point coordinates ( + Λ+ ΛΓ ), set to be interpolated The pixel point Ρ coordinate is ( χ , , first calculate the correlation between the four points of B, C, D and the pixel point P to be interpolated as follows, the following negative index Euclidean distance method can be used:
Figure imgf000015_0001
其中^ ^表示 Α点与待插值像素点 Ρ的相关程度,以此类推, 、 和^ 分别为:
Figure imgf000015_0002
Figure imgf000015_0001
Where ^ ^ denotes the degree of correlation between the defect and the pixel to be interpolated, and so on, and ^ are respectively:
Figure imgf000015_0002
r _ -((x-i-W)2+(j- )2 ) r _ p-((x-i-N†+(y-j-N†~) 然后根据上述相关程度, 分别计算八、 B、 C、 D四点对待插值像素点 P 的影响因子, 即将上述相关程度归一化如下: r _ -((xiW) 2 +(j- ) 2 ) r _ p -((xiN†+( y -jN†~) Then calculate the eight, B, C, D four points to interpolate according to the above correlation degree The influence factor of pixel P is to normalize the above correlation degree as follows:
r_BP r_BP
^ i ^ i
其中 为 A点对 P点的影响因子, B、 C、 D点对 P的影响因子分别为 , 和 。 步骤 322,根据待插值像素点周围 4个原始像素点的原始色彩值以及该 4 个原始像素点到待插值像素点的影响因子, 计算待插值像素点的色彩值; 以图 5和图 5所示例子, 根据上述影响因子及 A、 B、 C、 D四点色彩值 评估待插值像素点 P的色彩值, 如下:  Among them, the influence factor of point A on point P, and the influence factors of point B, C and D on P are respectively , and . Step 322: Calculate a color value of the pixel to be interpolated according to an original color value of four original pixel points around the pixel to be interpolated and an influence factor of the four original pixel points to the pixel to be interpolated; as shown in FIG. 5 and FIG. 5 For example, the color values of the pixels P to be interpolated are evaluated according to the above-mentioned influence factors and the four-point color values of A, B, C, and D, as follows:
Re dp = RedAx ol +RedB 2+Redc 3+RedDx 4 Re d p = Red A xo l +Red B 2 +Red c 3 +Red D x 4
Greenp = GreenA o + GreenB ω2+ Greenc x<¾ + GreenD x ωΛ Green p = Green A o + Green B ω 2 + Green c x<3⁄4 + Green D x ω Λ
Bluep = BlueA χωι+ BlueB ω2+ Bluec ω3+ BlueD x ωΛ Blue p = Blue A χω ι + Blue B ω 2 + Blue c ω 3 + Blue D x ω Λ
其中 ^、 ^ 和5¾^分别表示待插值像素点 p的红、 绿、 蓝色彩分 量大小。  Where ^, ^ and 53⁄4^ respectively represent the red, green and blue color components of the pixel p to be interpolated.
经过上述图像自适应感兴趣区域检测与分辨率提升步骤后, 图像感兴趣 区域得到自适应确定, 并根据用户需要得到分辨率提升, 提高了感兴趣区域 图像的信息量, 用户可以更有效的查看图像细节信息, 流程结束。  After the above-mentioned image adaptive region of interest detection and resolution enhancement step, the image region of interest is adaptively determined, and the resolution is improved according to the user's needs, thereby improving the information amount of the image of the region of interest, and the user can view more effectively. Image detail information, the process ends.
本领域普通技术人员可以理解上述方法中的全部或部分步骤可通过程序 来指令相关硬件完成, 所述程序可以存储于计算机可读存储介质中, 如只读 存储器、 磁盘或光盘等。 可选地, 上述实施例的全部或部分步骤也可以使用 一个或多个集成电路来实现。 相应地, 上述实施例中的各模块 /单元可以釆用 硬件的形式实现, 也可以釆用软件功能模块的形式实现。 本发明不限制于任 何特定形式的硬件和软件的结合。 One of ordinary skill in the art will appreciate that all or a portion of the above steps may be accomplished by a program instructing the associated hardware, such as a read-only memory, a magnetic disk, or an optical disk. Alternatively, all or part of the steps of the above embodiments may also be implemented using one or more integrated circuits. Correspondingly, each module/unit in the above embodiment may be implemented in the form of hardware or in the form of a software function module. The invention is not limited to any specific form of combination of hardware and software.
当然, 本发明还可有其他多种实施例, 在不背离本发明精神及其实质的 但这些相应的改变和变形都应属于本发明所附的权利要求的保护范围。 工业实用性 It is a matter of course that the invention may be embodied in various other forms and modifications without departing from the spirit and scope of the invention. Industrial applicability
与相关技术相比较, 本发明实施例包括自适应感兴趣区域检测与分辨率 提升两部分, 感兴趣区域检测部分充分考虑事先获知的用户感兴趣目标这一 先验信息, 提高了感兴趣区域检测的准确性, 方法更有个性化, 满足不同用 户对同一图像不同侧重喜好的需求; 感兴趣区域分辨率提升部分由于仅对检 测出的感兴趣区域进行分辨率提升, 因此能够提高处理速度, 另外, 本发明 实施例中的分辨率提升方法充分考虑了原始像素点对待插值像素点的影响, 引入了原始图像像素点对待插值像素点的影响因子, 根据此影响因子计算待 插值点色彩值, 提高插值性能。 本发明实施例为手机用户提供了一种功能独 立、 高效的图像处理方法, 方便用户操作, 为用户挖掘图像中感兴趣区域中 更加细节的信息提供可能, 增加用户体验愉悦感。 因此本发明具有很强的工 业实用性。  Compared with the related art, the embodiment of the present invention includes two parts: an adaptive region of interest detection and a resolution enhancement, and the region of interest detection portion fully considers the a priori information of the user's target of interest that is known in advance, thereby improving the detection of the region of interest. The accuracy, the method is more personalized, to meet the needs of different users for different views of the same image; the resolution of the region of interest is improved by only increasing the resolution of the detected region of interest, so The resolution enhancement method in the embodiment of the present invention fully considers the influence of the original pixel point on the pixel to be interpolated, introduces the influence factor of the pixel point of the original image to be interpolated, and calculates the color value of the pixel to be interpolated according to the influence factor, thereby improving Interpolation performance. The embodiment of the invention provides a unique and efficient image processing method for the mobile phone user, which is convenient for the user to operate, and provides the user with the possibility of mining more detailed information in the region of interest in the image, thereby increasing the user experience pleasure. Therefore, the present invention has strong industrial applicability.

Claims

权利要求书 Claim
1、 一种移动终端图像处理方法, 包括:  1. A mobile terminal image processing method, comprising:
根据预先获得的感兴趣区域先验信息对待处理图像进行感兴趣区域检测; 对检测出的感兴趣区域进行分辨率提升。  The region of interest is detected according to the a priori information of the region of interest obtained in advance; the resolution of the detected region of interest is improved.
2、如权利要求 1所述的移动终端图像处理方法, 该方法还包括, 所述根 据预先获得的感兴趣区域先验信息对待处理图像进行感兴趣区域检测的步骤 之前, 釆用以下方式预先获得所述感兴趣区域先验信息:  The mobile terminal image processing method according to claim 1, further comprising: pre-obtaining in the following manner before the step of performing the region of interest detection on the image to be processed according to the previously obtained region of interest prior information; The prior information of the region of interest:
向用户提供一张或多张图像, 每张图像包含一种或多种目标, 提示用户 在所提供的图像中标定自己感兴趣的目标;  Providing one or more images to the user, each image containing one or more targets, prompting the user to calibrate the target of interest in the provided image;
计算用户标定的感兴趣目标的特征参数;  Calculating characteristic parameters of the user-targeted target of interest;
将用户感兴趣目标的特征参数作为先验信息保存到当前用户的标准感兴 趣目标库。  The feature parameters of the target of interest of the user are saved as a priori information to the current user's standard interest object library.
3、如权利要求 2所述的移动终端图像处理方法, 其中, 所述根据预先获 得的感兴趣区域先验信息对待处理图像进行感兴趣区域检测的步骤包括: 根据图像内部相似特征将待处理图像划分成一个或多个对象区域; 计算所述对象区域的特征参数;  The mobile terminal image processing method according to claim 2, wherein the step of performing region of interest detection on the image to be processed according to the previously obtained region of interest prior information comprises: processing the image to be processed according to similar features within the image Dividing into one or more object regions; calculating feature parameters of the object region;
将所述对象区域的特征参数与标准感兴趣区域目标库中的特征参数进行 相似度比对, 将与标准特征参数相似度大于预设阔值的对象区域确定为用户 感兴趣区域。  Comparing the feature parameters of the object region with the feature parameters in the target region of the standard region of interest, and determining the object region with the similarity of the standard feature parameter to be greater than the preset threshold as the user region of interest.
4、如权利要求 1或 2或 3所述的移动终端图像处理方法, 其中, 所述对 检测出的感兴趣区域进行分辨率提升的步骤包括:  The mobile terminal image processing method according to claim 1 or 2 or 3, wherein the step of performing resolution improvement on the detected region of interest comprises:
根据预设置的图像放大倍数 N, 将检测出的感兴趣区域映射到放大空间 中, 所述放大空间是感兴趣区域的 N倍;  Mapping the detected region of interest into an amplification space according to a preset image magnification N, the magnification space being N times the region of interest;
在所述放大空间中根据原始像素点, 釆用插值法计算所述放大空间中除 原始像素点外其他像素点的色彩值, 完成图像局部分辨率提升。  In the magnifying space, according to the original pixel point, the color value of the pixel other than the original pixel point in the magnifying space is calculated by interpolation, and the local resolution of the image is improved.
5、如权利要求 4所述的移动终端图像处理方法, 其中, 在所述根据预设 置的图像放大倍数 N,将检测出的感兴趣区域映射到放大空间中的步骤之前, 所述方法还包括: The mobile terminal image processing method according to claim 4, wherein, before the step of mapping the detected region of interest to the enlarged space according to the preset image magnification N, The method further includes:
将所述感兴趣区域进行规则化处理。  The region of interest is regularized.
6、如权利要求 4所述的移动终端图像处理方法, 其中, 所述在放大空间 中根据原始像素点, 釆用插值法计算放大空间中除原始像素点外其他像素点 的色彩值的步骤包括:  The mobile terminal image processing method according to claim 4, wherein the step of calculating, according to the original pixel point in the enlargement space, the color value of the pixel other than the original pixel in the enlarged space by using the interpolation method comprises: :
设放大空间中除原始像素点外其他像素点为待插值像素点, 对每个待插 值像素点进行下述处理:  Let other pixels in the magnifying space besides the original pixel point be the pixels to be interpolated, and perform the following processing on each pixel to be interpolated:
计算待插值像素点与其周围的 M个原始像素点的相关程度, 生成该 M 个原始像素点到所述待插值像素点的影响因子;  Calculating a degree of correlation between the pixel to be interpolated and the M original pixel points around the pixel, and generating an influence factor of the M original pixel points to the pixel to be interpolated;
根据所述待插值像素点周围 M个原始像素点的原始色彩值以及该 M个 原始像素点到所述待插值像素点的影响因子, 计算所述待插值像素点的色彩 值。  And calculating a color value of the pixel to be interpolated according to an original color value of the M original pixel points around the pixel to be interpolated and an influence factor of the M original pixel points to the pixel to be interpolated.
7、如权利要求 6所述的移动终端图像处理方法, 其中, 所述计算待插值 像素点与其周围的 M个原始像素点的相关程度, 生成该 M个原始像素点到 所述待插值像素点的影响因子的步骤包括:  The mobile terminal image processing method according to claim 6, wherein the calculating the degree of correlation between the pixel to be interpolated and the M original pixel points around the M pixel, and generating the M original pixel points to the pixel to be interpolated The steps of the impact factor include:
釆用下式计算每个原始像素点与所述待插值像素点的相关程度:
Figure imgf000019_0001
计算 Calculate the correlation between each original pixel and the pixel to be interpolated by using the following formula:
Figure imgf000019_0001
其中, r表示第 m个原始像素点与所述待插值像素点的相关程度,其中, K m < M , i、 j分别为第 m个原始像素点的横纵坐标, x、 y分别为所述待 插值像素点的横纵坐标; Where r represents the degree of correlation between the mth original pixel point and the pixel to be interpolated, where K m < M , i, j are the horizontal and vertical coordinates of the mth original pixel point, respectively, x and y are The horizontal and vertical coordinates of the pixel to be interpolated;
对每个原始像素点与所述待插值像素点的相关程度进行以下归一化处理 得到每个原始像素点到所述待插值像素点的影响因子: ω = ,\≤m≤M  Performing the following normalization processing on the degree of correlation between each original pixel and the pixel to be interpolated to obtain an influence factor of each original pixel to the pixel to be interpolated: ω = , \ ≤ m ≤ M
(^ +r2 +··· + ¾) (^ +r 2 +··· + 3⁄4)
其中, ^为第 m个原始像素点对所述待插值像素点的影响因子, rm为第 m个原始像素点与所述待插值像素点的相关程度。 Where ^ is the influence factor of the mth original pixel point on the pixel to be interpolated, and r m is the degree of correlation between the mth original pixel point and the pixel to be interpolated.
8、如权利要求 7所述的移动终端图像处理方法, 其中, 所述根据待插值 像素点周围 M个原始像素点的原始色彩值以及该 M个原始像素点到所述待 插值像素点的影响因子, 计算所述待插值像素点的色彩值的步骤包括: 釆用下式计算每个待插值像素点的色彩值: The mobile terminal image processing method according to claim 7, wherein the original color value of the M original pixel points around the pixel to be interpolated and the M original pixel points are to the to-be-interpolated The interpolation factor of the interpolation pixel, the step of calculating the color value of the pixel to be interpolated includes: 计算 calculating the color value of each pixel to be interpolated by using the following formula:
R dp = Re^ x + Ret/2 x +… + Ret/ x ωΜ R d p = Re^ x + Ret/ 2 x +... + Ret/ x ω Μ
Greenp = Greenx Χ ό)λ -\ - Green Χ ύ)2 -\ H GreenM X (ύΜ Green p = Green x Χ ό) λ -\ - Green Χ ύ) 2 -\ H Green M X (ύ Μ
Bluep = Blue x + Blue2 x +… + BlueM x ωΜ Blue p = Blue x + Blue 2 x +... + Blue M x ω Μ
其中 ^、 ^^ 和^^分别表示所述待插值像素点的红、 绿、 蓝色彩 分量大小, Re 为第 m个原始像素点的红色分量, ^为第 m个原始像素 点的绿色分量, 为第 m个原始像素点的蓝色分量, ^为第 m个原始像 素点对所述待插值像素点的影响因子, 其中 l m M。 Where ^, ^^ and ^^ respectively represent the red, green and blue color components of the pixel to be interpolated, Re is the red component of the mth original pixel, and ^ is the green component of the mth original pixel. For the blue component of the mth original pixel point, ^ is the influence factor of the mth original pixel point on the pixel to be interpolated, where lm M.
9、 如权利要求 6或 7或 8所述的移动终端图像处理方法, 其中, 所述 The mobile terminal image processing method according to claim 6 or 7 or 8, wherein
M=4。 M=4.
10、 一种移动终端图像处理装置, 包括感兴趣区域检测模块和分辨率提 升模块, 其中: 所述感兴趣区域检测模块设置成: 根据预先获得的感兴趣区域先验信息 对待处理图像进行感兴趣区域检测;  10. A mobile terminal image processing apparatus, comprising: a region of interest detection module and a resolution enhancement module, wherein: the region of interest detection module is configured to: be interested in processing an image according to a prior information of a prior region of interest Area detection
所述分辨率提升模块设置成: 对所述感兴趣区域检测模块检测出的感兴 趣区域进行分辨率提升。  The resolution enhancement module is configured to: perform resolution improvement on the region of interest detected by the region of interest detection module.
11、如权利要求 10所述的移动终端图像处理装置,该装置还包括先验信 息获取模块, 其中:  The mobile terminal image processing apparatus according to claim 10, further comprising a priori information acquisition module, wherein:
所述先验信息获取模块设置成: 预先获得所述感兴趣区域先验信息, 所 述先验信息获取模块包括提示单元、 第一计算单元和保存单元, 其中: 所述提示单元设置成: 向用户提供一张或多张图像, 每张图像包含一种 或多种目标, 提示用户在所提供的图像中标定自己感兴趣的目标; 所述第一计算单元设置成: 计算用户标定的感兴趣目标的特征参数; 所述保存单元设置成: 将用户感兴趣目标的特征参数作为先验信息保存 到当前用户的标准感兴趣目标库。  The a priori information obtaining module is configured to: obtain the a priori information of the region of interest in advance, where the a priori information acquiring module includes a prompting unit, a first calculating unit, and a saving unit, where: the prompting unit is configured to: The user provides one or more images, each image containing one or more targets, prompting the user to calibrate the target of interest in the provided image; the first computing unit is configured to: calculate the user's calibrated interest The feature parameter of the target; the saving unit is configured to: save the feature parameter of the target of interest of the user as a priori information to the standard target object library of the current user.
12、如权利要求 11所述的移动终端图像处理装置, 其中, 所述感兴趣区 域检测模块包括区域划分单元、 第二计算单元和对比单元, 其中: The image processing apparatus for a mobile terminal according to claim 11, wherein said region of interest The domain detection module includes a region division unit, a second calculation unit, and a comparison unit, where:
所述区域划分单元设置成: 根据图像内部相似特征将待处理图像划分成 一个或多个对象区域;  The area dividing unit is configured to: divide the image to be processed into one or more object areas according to similar features inside the image;
所述第二计算单元设置成: 计算所述对象区域的特征参数;  The second calculating unit is configured to: calculate a feature parameter of the object area;
所述对比单元设置成: 将所述对象区域的特征参数与标准感兴趣区域目 标库中的特征参数进行相似度比对, 将与标准特征参数相似度大于预设阔值 的对象区域确定为用户感兴趣区域。  The comparison unit is configured to: compare a feature parameter of the object area with a feature parameter in a standard interest area target library, and determine an object area with a similarity of the standard feature parameter to a preset threshold as a user Area of interest.
13、如权利要求 10或 11或 12所述的装置, 其中, 所述分辨率提升模块 包括放大单元和色彩值计算单元, 其中:  The apparatus according to claim 10 or 11 or 12, wherein the resolution enhancement module comprises an amplification unit and a color value calculation unit, wherein:
所述放大单元设置成: 根据预设置的图像放大倍数 N, 将检测出的感兴 趣区域映射到放大空间中, 所述放大空间是感兴趣区域的 N倍;  The amplifying unit is configured to: map the detected interest area into the enlargement space according to a preset image magnification N, wherein the enlargement space is N times of the region of interest;
所述色彩值计算单元设置成: 在所述放大空间中根据原始像素点, 釆用 插值法计算所述放大空间中除原始像素点外其他像素点的色彩值, 完成图像 局部分辨率提升。  The color value calculation unit is configured to: calculate, according to the original pixel point, the color value of the pixel other than the original pixel in the enlarged space according to the original pixel point, and complete the image local resolution improvement.
14、如权利要求 13所述的装置, 其中, 所述分辨率提升模块还包括规则 化处理单元, 其中:  The apparatus of claim 13, wherein the resolution enhancement module further comprises a regularization processing unit, wherein:
所述规则化处理单元设置成: 先将所述感兴趣区域检测模块检测出的感 兴趣区域进行规则化处理。  The regularization processing unit is configured to: perform regularization processing on the region of interest detected by the region of interest detection module.
15、如权利要求 13所述的装置, 其中, 所述色彩值计算单元设置成按照 如下方式在放大空间中根据原始像素点, 釆用插值法计算放大空间中除原始 像素点外其他像素点的色彩值:  The device according to claim 13, wherein the color value calculation unit is configured to calculate, in the enlargement space, the pixel points other than the original pixel point in the enlargement space according to the original pixel point in the enlargement space. Color value:
设放大空间中除原始像素点外其他像素点为待插值像素点, 所述色彩值 计算单元对每个待插值像素点进行下述处理:  It is assumed that other pixels in the enlargement space except the original pixel point are pixels to be interpolated, and the color value calculation unit performs the following processing on each pixel to be interpolated:
计算待插值像素点与其周围的 M个原始像素点的相关程度, 生成该 M 个原始像素点到所述待插值像素点的影响因子;  Calculating a degree of correlation between the pixel to be interpolated and the M original pixel points around the pixel, and generating an influence factor of the M original pixel points to the pixel to be interpolated;
根据所述待插值像素点周围 M个原始像素点的原始色彩值以及该 M个 原始像素点到所述待插值像素点的影响因子, 计算所述待插值像素点的色彩 值。 Calculating a color value of the pixel to be interpolated according to an original color value of the M original pixel points around the pixel to be interpolated and an influence factor of the M original pixel points to the pixel to be interpolated.
16、如权利要求 15所述的装置, 其中, 所述色彩值计算单元设置成按照 如下方式计算待插值像素点与其周围的 M个原始像素点的相关程度,生成该 M个原始像素点到所述待插值像素点的影响因子: The apparatus according to claim 15, wherein the color value calculation unit is configured to calculate a degree of correlation between the pixel to be interpolated and the M original pixel points around the same, and generate the M original pixel points to the location The influence factor of the interpolated pixel is mentioned:
所述色彩值计算单元釆用下式计算每个原始像素点与所述待插值像素点 的相关程度:
Figure imgf000022_0001
The color value calculation unit calculates the degree of correlation between each original pixel point and the pixel to be interpolated by using the following formula:
Figure imgf000022_0001
其中, r表示第 m个原始像素点与所述待插值像素点的相关程度,其中, K m < M , i、 j分别为第 m个原始像素点的横纵坐标, x、 y分别为所述待 插值像素点的横纵坐标; Where r represents the degree of correlation between the mth original pixel point and the pixel to be interpolated, where K m < M , i, j are the horizontal and vertical coordinates of the mth original pixel point, respectively, x and y are The horizontal and vertical coordinates of the pixel to be interpolated;
所述色彩值计算单元对每个原始像素点与所述待插值像素点的相关程度 进行以下归一化处理得到每个原始像素点到所述待插值像素点的影响因子: ω = ,\≤m≤M  The color value calculation unit performs normalization processing on the correlation degree of each original pixel point and the pixel to be interpolated to obtain an influence factor of each original pixel point to the pixel to be interpolated: ω = , \ ≤ m ≤ M
(^ +r2 +··· + ¾) 其中, ^为第 m个原始像素点对所述待插值像素点的影响因子, rm为第 m个原始像素点与所述待插值像素点的相关程度。 (^ +r 2 +··· + 3⁄4) where ^ is the influence factor of the mth original pixel point on the pixel to be interpolated, r m is the mth original pixel point and the pixel to be interpolated Relevance.
17、如权利要求 16所述的装置, 其中, 所述色彩值计算单元设置成按照 如下方式根据待插值像素点周围 M个原始像素点的原始色彩值以及该 M个 原始像素点到所述待插值像素点的影响因子, 计算所述待插值像素点的色彩 值:  The apparatus according to claim 16, wherein the color value calculation unit is configured to: according to the original color value of the M original pixel points around the pixel to be interpolated and the M original pixel points to the waiting Interpolating the influence factor of the pixel, and calculating the color value of the pixel to be interpolated:
所述色彩值计算单元釆用下式计算每个待插值像素点的色彩值: Redp = Re j X + Rei 2 X <»2 + · · · + Re M X <¾ The color value calculation unit calculates the color value of each pixel to be interpolated by the following formula: Red p = Re j X + Rei 2 X <» 2 + · · · + Re M X <3⁄4
Green p = Greenx X (01 + Green2 X <¾ H H GreenM X C0M Green p = Green x X (0 1 + Green 2 X <3⁄4 HH Green M X C0 M
Bluep = Bluel Χ ύ)ι + Blue2 χ ω2 +— h BlueM X ωΜ Blue p = Blue l Χ ύ) ι + Blue 2 χ ω 2 +— h Blue M X ω Μ
其中 ^、 G^"^^tep分别表示所述待插值像素点的红、 绿、 蓝色彩 分量大小, Re 为第 m个原始像素点的红色分量, ^为第 m个原始像素 点的绿色分量, 为第 m个原始像素点的蓝色分量, ^为第 m个原始像 素点对所述待插值像素点的影响因子, 其中 l m M。 Where ^, G^"^^te p respectively represent the red, green, and blue color components of the pixel to be interpolated, Re is the red component of the mth original pixel, and ^ is the green of the mth original pixel The component is the blue component of the mth original pixel, and ^ is the influence factor of the mth original pixel on the pixel to be interpolated, where lm M.
18、 如权利要求 15或 16或 17所述的装置, 其中, 所述 M=4。  18. Apparatus according to claim 15 or 16 or 17, wherein said M = 4.
PCT/CN2013/080113 2012-08-30 2013-07-25 Method and device for processing mobile terminal images WO2013185695A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201210315345.7 2012-08-30
CN2012103153457A CN102915521A (en) 2012-08-30 2012-08-30 Method and device for processing mobile terminal images

Publications (1)

Publication Number Publication Date
WO2013185695A1 true WO2013185695A1 (en) 2013-12-19

Family

ID=47613876

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2013/080113 WO2013185695A1 (en) 2012-08-30 2013-07-25 Method and device for processing mobile terminal images

Country Status (2)

Country Link
CN (1) CN102915521A (en)
WO (1) WO2013185695A1 (en)

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102915521A (en) * 2012-08-30 2013-02-06 中兴通讯股份有限公司 Method and device for processing mobile terminal images
US9508121B2 (en) * 2015-01-14 2016-11-29 Lucidlogix Technologies Ltd. Method and apparatus for controlling spatial resolution in a computer system by rendering virtual pixel into physical pixel
CN105279734B (en) * 2015-09-23 2018-10-12 联想(北京)有限公司 A kind of image processing method and device, electronic equipment
CN106971374B (en) * 2016-01-13 2020-06-23 北大方正集团有限公司 Picture pixelization method and picture pixelization system
JP2017224970A (en) * 2016-06-15 2017-12-21 ソニー株式会社 Image processor, image processing method, and imaging apparatus
WO2018120519A1 (en) * 2016-12-26 2018-07-05 华为技术有限公司 Image processing method and device
CN107358190A (en) * 2017-07-07 2017-11-17 广东中星电子有限公司 A kind of image key area management method and device
CN110211039B (en) * 2019-04-29 2021-03-23 西安电子科技大学 Image processing method and device
CN110955243B (en) * 2019-11-28 2023-10-20 新石器慧通(北京)科技有限公司 Travel control method, apparatus, device, readable storage medium, and mobile apparatus
CN113822799B (en) * 2020-06-19 2024-06-18 南宁富联富桂精密工业有限公司 Image magnification method, device and computer readable storage medium
CN113065553A (en) * 2021-04-01 2021-07-02 杭州思看科技有限公司 Data processing method and device, three-dimensional scanning system and electronic device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101216935A (en) * 2008-01-17 2008-07-09 四川虹微技术有限公司 Image amplification method based on spline function interpolation algorithm
CN101242474A (en) * 2007-02-09 2008-08-13 中国科学院计算技术研究所 A dynamic video browse method for phone on small-size screen
EP1976271A2 (en) * 2007-03-30 2008-10-01 Samsung Electronics Co., Ltd Mobile communication terminal and method for displaying image using focus information thereof
CN101789120A (en) * 2010-02-08 2010-07-28 上海交通大学 Image interpolation method based on cosine polynomial
CN101960491A (en) * 2008-03-18 2011-01-26 汤姆森许可贸易公司 Method and apparatus for adaptive feature of interest color model parameters estimation
CN102915521A (en) * 2012-08-30 2013-02-06 中兴通讯股份有限公司 Method and device for processing mobile terminal images

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101093491A (en) * 2006-06-23 2007-12-26 郝红卫 Interactive image retrieval method
CN100433016C (en) * 2006-09-08 2008-11-12 北京工业大学 Image retrieval algorithm based on abrupt change of information
US8218895B1 (en) * 2006-09-27 2012-07-10 Wisconsin Alumni Research Foundation Systems and methods for generating and displaying a warped image using fish eye warping

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101242474A (en) * 2007-02-09 2008-08-13 中国科学院计算技术研究所 A dynamic video browse method for phone on small-size screen
EP1976271A2 (en) * 2007-03-30 2008-10-01 Samsung Electronics Co., Ltd Mobile communication terminal and method for displaying image using focus information thereof
CN101216935A (en) * 2008-01-17 2008-07-09 四川虹微技术有限公司 Image amplification method based on spline function interpolation algorithm
CN101960491A (en) * 2008-03-18 2011-01-26 汤姆森许可贸易公司 Method and apparatus for adaptive feature of interest color model parameters estimation
CN101789120A (en) * 2010-02-08 2010-07-28 上海交通大学 Image interpolation method based on cosine polynomial
CN102915521A (en) * 2012-08-30 2013-02-06 中兴通讯股份有限公司 Method and device for processing mobile terminal images

Also Published As

Publication number Publication date
CN102915521A (en) 2013-02-06

Similar Documents

Publication Publication Date Title
WO2013185695A1 (en) Method and device for processing mobile terminal images
CN108537733B (en) Super-resolution reconstruction method based on multi-path deep convolutional neural network
CN108961303B (en) Image processing method and device, electronic equipment and computer readable medium
CN110574026B (en) Convolution engine, electronic device and method for processing data
TWI672667B (en) Method and device for training neural network model for image processing and computer readable storage medium
JP2023545565A (en) Image detection method, model training method, image detection device, training device, equipment and program
CN109584179A (en) A kind of convolutional neural networks model generating method and image quality optimization method
CN110637297A (en) Convolution engine with per-channel processing of interleaved channel data
Liang et al. Improved non-local iterative back-projection method for image super-resolution
WO2018082308A1 (en) Image processing method and terminal
WO2021237732A1 (en) Image alignment method and apparatus, electronic device, and storage medium
CN108876716B (en) Super-resolution reconstruction method and device
CN110399826B (en) End-to-end face detection and identification method
WO2018113224A1 (en) Picture reduction method and device
WO2022046725A1 (en) Spatiotemporal recycling network
WO2020078102A1 (en) Image enhancement method and apparatus, and computer-readable storage medium
CN115471413A (en) Image processing method and device, computer readable storage medium and electronic device
CN103685858A (en) Real-time video processing method and equipment
WO2024082925A1 (en) Surface defect data enhancement method and apparatus, and electronic device and storage medium
JP2024037722A (en) Content based image processing
CN106683129B (en) Relative reduction texture decomposition method and device based on bilateral kernel regression
US12094079B2 (en) Reference-based super-resolution for image and video enhancement
CN110766631A (en) Face image modification method and device, electronic equipment and computer readable medium
CN108198140A (en) Three-dimensional collaboration filtering and noise reduction method based on NCSR models
CN115210758A (en) Motion blur robust image feature matching

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: 13805111

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 13805111

Country of ref document: EP

Kind code of ref document: A1