CN105427247B - A kind of mobile terminal and image processing method of image procossing - Google Patents
A kind of mobile terminal and image processing method of image procossing Download PDFInfo
- Publication number
- CN105427247B CN105427247B CN201510843545.3A CN201510843545A CN105427247B CN 105427247 B CN105427247 B CN 105427247B CN 201510843545 A CN201510843545 A CN 201510843545A CN 105427247 B CN105427247 B CN 105427247B
- Authority
- CN
- China
- Prior art keywords
- pixel
- pixel value
- original image
- enlarged drawing
- image
- Prior art date
- Legal status (The legal status 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 status listed.)
- Active
Links
- 238000003672 processing method Methods 0.000 title claims abstract description 20
- 238000000034 method Methods 0.000 claims abstract description 30
- 230000009466 transformation Effects 0.000 abstract description 12
- 230000000694 effects Effects 0.000 abstract description 3
- 238000004891 communication Methods 0.000 description 25
- 230000003321 amplification Effects 0.000 description 23
- 238000003199 nucleic acid amplification method Methods 0.000 description 23
- 230000015654 memory Effects 0.000 description 15
- 230000008569 process Effects 0.000 description 12
- 238000010586 diagram Methods 0.000 description 8
- 230000006870 function Effects 0.000 description 8
- 238000010295 mobile communication Methods 0.000 description 8
- 238000005516 engineering process Methods 0.000 description 5
- 230000014509 gene expression Effects 0.000 description 5
- NJPPVKZQTLUDBO-UHFFFAOYSA-N novaluron Chemical compound C1=C(Cl)C(OC(F)(F)C(OC(F)(F)F)F)=CC=C1NC(=O)NC(=O)C1=C(F)C=CC=C1F NJPPVKZQTLUDBO-UHFFFAOYSA-N 0.000 description 4
- 230000005236 sound signal Effects 0.000 description 4
- 230000005540 biological transmission Effects 0.000 description 3
- 238000007726 management method Methods 0.000 description 3
- 230000001413 cellular effect Effects 0.000 description 2
- 238000010276 construction Methods 0.000 description 2
- 230000003068 static effect Effects 0.000 description 2
- 230000002123 temporal effect Effects 0.000 description 2
- 230000001225 therapeutic effect Effects 0.000 description 2
- 101150012579 ADSL gene Proteins 0.000 description 1
- 102100020775 Adenylosuccinate lyase Human genes 0.000 description 1
- 108700040193 Adenylosuccinate lyases Proteins 0.000 description 1
- 241000196324 Embryophyta Species 0.000 description 1
- 241001062009 Indigofera Species 0.000 description 1
- 230000001133 acceleration Effects 0.000 description 1
- 230000009471 action Effects 0.000 description 1
- 230000000712 assembly Effects 0.000 description 1
- 238000000429 assembly Methods 0.000 description 1
- 238000005314 correlation function Methods 0.000 description 1
- 238000000354 decomposition reaction Methods 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 230000005611 electricity Effects 0.000 description 1
- 230000005764 inhibitory process Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 230000007774 longterm Effects 0.000 description 1
- 239000002184 metal Substances 0.000 description 1
- 238000013468 resource allocation Methods 0.000 description 1
- 230000002441 reversible effect Effects 0.000 description 1
- 238000012163 sequencing technique Methods 0.000 description 1
- 238000001228 spectrum Methods 0.000 description 1
- 239000010409 thin film Substances 0.000 description 1
- 230000002463 transducing effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T3/00—Geometric image transformations in the plane of the image
- G06T3/40—Scaling of whole images or parts thereof, e.g. expanding or contracting
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Image Processing (AREA)
- Editing Of Facsimile Originals (AREA)
Abstract
The invention discloses a kind of mobile terminal of image procossing and image processing method, the above method includes:Input unit inputs pending original image;Controller determines the corresponding first processing image of original image;In a first direction, the enlarged drawing of original image in a first direction is obtained into row interpolation to original image and corresponding first processing image;Determine the corresponding second processing image of the enlarged drawing of original image in a first direction;In a second direction, the final enlarged drawing of original image is obtained into row interpolation to original image enlarged drawing in a first direction and corresponding second processing image;Wherein, first direction is perpendicular to second direction.Image processing method and device disclosed by the invention, the principle based on wavelet inverse transformation can improve the reproduction effect of original image detailed information.
Description
Technical field
The present invention relates to image processing field, the mobile terminal and image processing method of espespecially a kind of image procossing.
Background technology
In image procossing, image scaling is common processing mode.In the application of image procossing, many places need
Carry out image scaling.Such as image magnification is realized by image interpolation.Briefly, interpolation is the parameter according to central pixel point
The method for simulating neighboring pixel value.Currently used Image Zooming Algorithm is bi-cubic interpolation algorithm.By bi-cubic interpolation
Each pixel in the image exported after algorithm process is the operation result of 16 pixels (i.e. 4 × 4 regions) in original image.It changes
Yan Zhi, bi-cubic interpolation algorithm with 16 pixels in 4 × 4 region of surrounding by obtaining a final pixel point.However,
Bi-cubic interpolation operation can bring heavy losses to image border, in the image of interpolation amplification, the detailed information of original image
Reproduction effect it is to be improved.
Invention content
In order to solve the above technical problem, the present invention provides a kind of mobile terminal of image procossing and image processing methods
Method, the principle based on wavelet inverse transformation can improve the reproduction effect of original image detailed information.
In order to realize that the object of the invention, the present invention provide a kind of mobile terminal of image procossing, including:Input unit and
Controller;Input unit, for inputting pending original image;Controller, for determining at original image corresponding first
Manage image;In a first direction, original image is obtained first into row interpolation to original image and corresponding first processing image
The enlarged drawing in direction;Determine the corresponding second processing image of the enlarged drawing of original image in a first direction;In second direction
On, to original image enlarged drawing in a first direction and corresponding second processing image into row interpolation, obtain original image
Final enlarged drawing;Wherein, first direction is perpendicular to second direction.
Further, the first direction is the line direction of pixel, and the second direction is the column direction of pixel;Or
Person, the first direction are the column direction of pixel, and the second direction is the line direction of pixel.
Further, the controller determines the corresponding first processing image of the original image, refers to:
The controller is according to the pixel (h, w) and the left and right sides arranged positioned at h rows, w in the original image
The pixel value of pixel determines that the pixel value positioned at h rows, the w pixel arranged in corresponding first processing image is:
P1_high (h, w)=(2 × P1 (h, w)-P1 (h, w-1)-P1 (h, w+1))/4,
Wherein, P1_high (h, w) indicates to be located at h rows, w row in the corresponding first processing image of the original image
Pixel pixel value, P1 (h, w) indicate in the original image be located at h rows, w arrange pixel (h, w) pixel
Value, P1 (h, w-1) indicate that the pixel value of the leftmost pixel point of the pixel in the original image, P1 (h, w+1) indicate that this is original
The pixel value of the right pixels point of the pixel in image, h and w are the integer more than or equal to 0;
Each pixel in original image described in the controller searching loop obtains in corresponding first processing image
The corresponding pixel value of each pixel, with the corresponding first processing image of the determination original image.
Further, the controller in a first direction, to the original image and it is corresponding first processing image into
Row interpolation obtains the enlarged drawing of the original image in a first direction, refers to:
When the first direction is the line direction of pixel, the controller determines in enlarged drawing in a first direction
The pixel value of the pixel arranged positioned at h rows, 2 × w-1 is equal to the first pixel value and the second pixel value and value, and determine and exist
It is located at h rows in the enlarged drawing of first direction, the pixel value for the pixel that 2 × w is arranged is equal to the first pixel value and the second picture
The difference of element value, wherein first pixel value is the pixel for being located at h rows, the pixel that w is arranged in the original image
Value, second pixel value are the pixel for being located at h rows, w row in the corresponding first processing image of the original image
Pixel value, wherein h, w are the integer more than or equal to 0;
Original image described in the controller searching loop and each pixel in corresponding first processing image, obtain
The pixel value of each pixel in enlarged drawing in a first direction, to determine the enlarged drawing of original image in a first direction
Picture;
Alternatively,
When the first direction is the column direction of pixel, the controller determines in enlarged drawing in a first direction
Be equal to the first pixel value and the second pixel value positioned at the pixel value of 2 × h-1 rows, the pixel of w rows and value, and determine and exist
Pixel value in the enlarged drawing of first direction positioned at 2 × h rows, the pixel of w rows is equal to the first pixel value and the second picture
The difference of element value, wherein first pixel value is the pixel for being located at h rows, the pixel that w is arranged in the original image
Value, second pixel value are the pixel for being located at h rows, w row in the corresponding first processing image of the original image
Pixel value, wherein h, w are the integer more than or equal to 0;
Original image described in the controller searching loop and each pixel in corresponding first processing image, obtain
The pixel value of each pixel in enlarged drawing in a first direction, to determine the enlarged drawing of original image in a first direction
Picture.
Further, the controller determines the corresponding second processing of the enlarged drawing of the original image in a first direction
Image refers to:
The controller is according to the pixel for being located at h rows in the enlarged drawing of the original image first direction, w is arranged
The pixel value of point (h, w) and left and right sides pixel determines the picture for being located at h rows, w row in corresponding second processing image
The pixel value of vegetarian refreshments is:
P2_high (h, w)=(2 × P1_out (h, w)-P1_out (h, w-1)-P1_out (h, w+1))/4,
Wherein, P2_high (h, w) indicates the corresponding second processing image of enlarged drawing in the original image first direction
In be located at h rows, w arrange pixel pixel value, P1_out (h, w) indicate the original image first direction enlarged drawing
It is located at the pixel value of h rows, the pixel (h, w) that w is arranged as in, P1_out (h, w-1) indicates the original image first direction
Enlarged drawing in the pixel leftmost pixel point pixel value, P1_out (h, w+1) indicates the original image first direction
Enlarged drawing in the pixel right pixels point pixel value, h and w are the integer more than or equal to 0;
Each pixel in the enlarged drawing of original image first direction described in the controller searching loop, obtains pair
Each corresponding pixel value of pixel in the second processing image answered, with the enlarged drawing of the determination original image first direction
Corresponding second processing image.
Further, the controller in a second direction, to original image enlarged drawing in a first direction and
Corresponding second processing image obtains the final enlarged drawing of the original image, refers into row interpolation:
When the first direction is the line direction of pixel, the controller is determined is located at the in final enlarged drawing
2 × h-1 rows, w rows pixel pixel value be equal to third pixel value and the 4th pixel value and value, and determination is finally being put
Pixel value in big image positioned at 2 × h rows, the pixel of w rows is equal to the difference of third pixel value and the 4th pixel value,
In, the third pixel value is the picture for being located at h rows, the pixel that w is arranged in the enlarged drawing of original image first direction
Element value, the 4th pixel value are to be located at h in the corresponding second processing image of enlarged drawing of original image first direction
The pixel value for the pixel that row, w are arranged, wherein h, w are the integer more than or equal to 0;
Each picture in controller searching loop enlarged drawing in a first direction and corresponding second processing image
Vegetarian refreshments obtains the pixel value of each pixel in final enlarged drawing, to determine the final enlarged drawing of original image;
Alternatively,
When the first direction is the column direction of pixel, the controller is determined is located at the in final enlarged drawing
H rows, 2 × w-1 rows pixel pixel value be equal to third pixel value and the 4th pixel value and value, and determination is finally being put
Pixel value in big image positioned at h rows, the pixel of 2 × w rows is equal to the difference of third pixel value and the 4th pixel value,
In, the third pixel value is the picture for being located at h rows, the pixel that w is arranged in the enlarged drawing of original image first direction
Element value, the 4th pixel value are to be located at h in the corresponding second processing image of enlarged drawing of original image first direction
The pixel value for the pixel that row, w are arranged, wherein h, w are the integer more than or equal to 0;
Each picture in controller searching loop enlarged drawing in a first direction and corresponding second processing image
Vegetarian refreshments obtains the pixel value of each pixel in final enlarged drawing, to determine the final enlarged drawing of original image.
The present invention also provides a kind of image processing methods, including:Input unit inputs pending original image;Controller
Determine the corresponding first processing image of original image;In a first direction, to original image and it is corresponding first processing image into
Row interpolation obtains the enlarged drawing of original image in a first direction;Controller determines the enlarged drawing of original image in a first direction
As corresponding second processing image;In a second direction, the enlarged drawing and corresponding second to original image in a first direction
Image is handled into row interpolation, obtains the final enlarged drawing of original image;Wherein, first direction is perpendicular to second direction.
Further, the first direction is the line direction of pixel, and the second direction is the column direction of pixel;Or
Person, the first direction are the column direction of pixel, and the second direction is the line direction of pixel.
Further, the controller determines the corresponding first processing image of the original image, including:
The controller is according to the pixel (h, w) and the left and right sides arranged positioned at h rows, w in the original image
The pixel value of pixel determines that the pixel value positioned at h rows, the w pixel arranged in corresponding first processing image is:
P1_high (h, w)=(2 × P1 (h, w)-P1 (h, w-1)-P1 (h, w+1))/4,
Wherein, P1_high (h, w) indicates to be located at h rows, w row in the corresponding first processing image of the original image
Pixel pixel value, P1 (h, w) indicate in the original image be located at h rows, w arrange pixel (h, w) pixel
Value, P1 (h, w-1) indicate that the pixel value of the leftmost pixel point of the pixel in the original image, P1 (h, w+1) indicate that this is original
The pixel value of the right pixels point of the pixel in image, h and w are the integer more than or equal to 0;
Each pixel in original image described in the controller searching loop obtains in corresponding first processing image
The corresponding pixel value of each pixel, with the corresponding first processing image of the determination original image.
Further, the controller in a first direction, to the original image and it is corresponding first processing image into
Row interpolation obtains the enlarged drawing of the original image in a first direction, including:
When the first direction is the line direction of pixel, the controller determines in enlarged drawing in a first direction
The pixel value of the pixel arranged positioned at h rows, 2 × w-1 is equal to the first pixel value and the second pixel value and value, and determine and exist
It is located at h rows in the enlarged drawing of first direction, the pixel value for the pixel that 2 × w is arranged is equal to the first pixel value and the second picture
The difference of element value, wherein first pixel value is the pixel for being located at h rows, the pixel that w is arranged in the original image
Value, second pixel value are the pixel for being located at h rows, w row in the corresponding first processing image of the original image
Pixel value, wherein h, w are the integer more than or equal to 0;
Original image described in the controller searching loop and each pixel in corresponding first processing image, obtain
The pixel value of each pixel in enlarged drawing in a first direction, to determine the enlarged drawing of original image in a first direction
Picture;
Alternatively,
When the first direction is the column direction of pixel, the controller determines in enlarged drawing in a first direction
Be equal to the first pixel value and the second pixel value positioned at the pixel value of 2 × h-1 rows, the pixel of w rows and value, and determine and exist
Pixel value in the enlarged drawing of first direction positioned at 2 × h rows, the pixel of w rows is equal to the first pixel value and the second picture
The difference of element value, wherein first pixel value is the pixel for being located at h rows, the pixel that w is arranged in the original image
Value, second pixel value are the pixel for being located at h rows, w row in the corresponding first processing image of the original image
Pixel value, wherein h, w are the integer more than or equal to 0;
Original image described in the controller searching loop and each pixel in corresponding first processing image, obtain
The pixel value of each pixel in enlarged drawing in a first direction, to determine the enlarged drawing of original image in a first direction
Picture.
Compared with prior art, in the present invention, input unit inputs pending original image;Controller determines original
The corresponding first processing image of image;In a first direction, original image and corresponding first processing image are obtained into row interpolation
To the enlarged drawing of original image in a first direction;It is then determined the enlarged drawing of original image in a first direction corresponding
Two processing images;In a second direction, to original image enlarged drawing in a first direction and corresponding second processing image into
Row interpolation obtains the final enlarged drawing of original image;Wherein, first direction is perpendicular to second direction.In this way, the present invention is based on
Wavelet inverse transformation principle carries out image interpolation amplification, and the details for enabling amplified image preferably to retain original image is believed
Breath.
Description of the drawings
Attached drawing is used for providing further understanding technical solution of the present invention, and a part for constitution instruction, with this
The embodiment of application technical solution for explaining the present invention together, does not constitute the limitation to technical solution of the present invention.
The hardware architecture diagram of Fig. 1 mobile terminals of each embodiment to realize the present invention;
Fig. 2 is the wireless communication system schematic diagram of mobile terminal as shown in Figure 1;
Fig. 3 is the flow chart of image processing method provided in an embodiment of the present invention;
Fig. 4 is the schematic diagram that wavelet transformation once decomposes;
Fig. 5 is the flow chart for the image processing method that the specific embodiment of the invention one provides;
Fig. 6 is the flow chart for the image processing method that the specific embodiment of the invention two provides;
Fig. 7 is the flow chart for the image processing method that the specific embodiment of the invention three provides;
Fig. 8 is the schematic diagram of the mobile terminal of image procossing provided in an embodiment of the present invention;
Fig. 9 is the structural schematic diagram of the mobile terminal of image procossing provided in an embodiment of the present invention.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific implementation mode
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
The mobile terminal of each embodiment of the present invention is realized in description with reference to the drawings.In subsequent description, use
For indicate element such as " module ", " component " or " unit " suffix only for be conducive to the present invention explanation, itself
There is no specific meanings.Therefore, " module " can be used mixedly with " component ".
Mobile terminal can be implemented in a variety of manners.For example, terminal described in the present invention may include such as moving
Phone, smart phone, laptop, digit broadcasting receiver, PDA (personal digital assistant), PAD (tablet computer), PMP
The mobile terminal of (portable media player), navigation device etc. and such as number TV, desktop computer etc. are consolidated
Determine terminal.Hereinafter it is assumed that terminal is mobile terminal.However, it will be understood by those skilled in the art that in addition to being used in particular for moving
Except the element of purpose, construction according to the embodiment of the present invention can also apply to the terminal of fixed type.
Fig. 1 to realize the present invention the mobile terminal of each embodiment hardware configuration signal.
Mobile terminal 100 may include wireless communication unit 110, A/V (audio/video) input unit 120, user's input
Unit 130, sensing unit 140, output unit 150, memory 160, interface unit 170, controller 180 and power supply unit 190
Etc..Fig. 1 shows the mobile terminal with various assemblies, it should be understood that being not required for implementing all groups shown
Part.More or fewer components can alternatively be implemented.The element of mobile terminal will be discussed in more detail below.
Wireless communication unit 110 generally includes one or more components, allows mobile terminal 100 and wireless communication system
Or the radio communication between network.For example, wireless communication unit may include broadcasting reception module 111, mobile communication module
112, at least one of wireless Internet module 113, short range communication module 114 and location information module 115.
Broadcasting reception module 111 receives broadcast singal and/or broadcast via broadcast channel from external broadcast management server
Relevant information.Broadcast channel may include satellite channel and/or terrestrial channel.Broadcast management server can be generated and sent
The broadcast singal and/or broadcast related information that the server or reception of broadcast singal and/or broadcast related information generate before
And send it to the server of terminal.Broadcast singal may include TV broadcast singals, radio signals, data broadcasting
Signal etc..Moreover, broadcast singal may further include the broadcast singal combined with TV or radio signals.Broadcast phase
Closing information can also provide via mobile communications network, and in this case, broadcast related information can be by mobile communication mould
Block 112 receives.Broadcast singal can exist in a variety of manners, for example, it can be with the electronics of digital multimedia broadcasting (DMB)
Program guide (EPG), digital video broadcast-handheld (DVB-H) electronic service guidebooks (ESG) etc. form and exist.Broadcast
Receiving module 111 can receive signal broadcast by using various types of broadcast systems.Particularly, broadcasting reception module 111
It can be wide by using such as multimedia broadcasting-ground (DMB-T), digital multimedia broadcasting-satellite (DMB-S), digital video
It broadcasts-holds (DVB-H), forward link media (MediaFLO@) Radio Data System, received terrestrial digital broadcasting integrated service
(ISDB-T) etc. digit broadcasting system receives digital broadcasting.Broadcasting reception module 111, which may be constructed such that, to be adapted to provide for extensively
Broadcast the various broadcast systems of signal and above-mentioned digit broadcasting system.Via broadcasting reception module 111 receive broadcast singal and/
Or broadcast related information can be stored in memory 160 (or other types of storage medium).
Mobile communication module 112 sends radio signals to base station (for example, access point, node B etc.), exterior terminal
And at least one of server and/or receive from it radio signal.Such radio signal may include that voice is logical
Talk about signal, video calling signal or the various types of data for sending and/or receiving according to text and/or Multimedia Message.
Wireless Internet module 113 supports the Wi-Fi (Wireless Internet Access) of mobile terminal.The module can be internally or externally
It is couple to terminal.Wi-Fi (Wireless Internet Access) technology involved by the module may include WLAN (Wireless LAN) (Wi-Fi), Wibro
(WiMAX), Wimax (worldwide interoperability for microwave accesses), HSDPA (high-speed downlink packet access) etc..
Short range communication module 114 is the module for supporting short range communication.Some examples of short-range communication technology include indigo plant
ToothTM, radio frequency identification (RFID), Infrared Data Association (IrDA), ultra wide band (UWB), purple honeybeeTMEtc..
Location information module 115 is the module of the location information for checking or obtaining mobile terminal.Location information module
Typical case be GPS (global positioning system).According to current technology, GPS module 115, which calculates, comes from three or more satellites
Range information and correct time information and the Information application triangulation for calculating, to according to longitude, latitude
Highly accurately calculate three-dimensional current location information.Currently, it is defended using three for the method for calculating position and temporal information
Star and the error that calculated position and temporal information are corrected by using an other satellite.In addition, GPS module 115
It can be by Continuous plus current location information in real time come calculating speed information.
A/V input units 120 are for receiving audio or video signal.A/V input units 120 may include 121 He of camera
Microphone 1220, camera 121 in video acquisition mode or image capture mode by image capture apparatus obtain static map
The image data of piece or video is handled.Treated, and picture frame may be displayed on display unit 151.At camera 121
Picture frame after reason can be stored in memory 160 (or other storage mediums) or be carried out via wireless communication unit 110
It sends, two or more cameras 1210 can be provided according to the construction of mobile terminal.Microphone 122 can be in telephone relation mould
Sound (audio data) is received via microphone in formula, logging mode, speech recognition mode etc. operational mode, and can be incited somebody to action
Such acoustic processing is audio data.Audio that treated (voice) data can be converted in the case of telephone calling model
For the format output of mobile communication base station can be sent to via mobile communication module 112.Microphone 122 can implement various types
Noise eliminate (or inhibit) algorithm with eliminate noise that (or inhibition) generates during sending and receiving audio signal or
Person interferes.
User input unit 130 can generate key input data to control each of mobile terminal according to order input by user
Kind operation.User input unit 130 allows user to input various types of information, and may include keyboard, metal dome, touch
Plate (for example, sensitive component of detection variation of resistance, pressure, capacitance etc. caused by being contacted), idler wheel, rocking bar etc.
Deng.Particularly, when touch tablet is superimposed upon in the form of layer on display unit 151, touch screen can be formed.
Sensing unit 140 detects the current state of mobile terminal 100, (for example, mobile terminal 100 opens or closes shape
State), the position of mobile terminal 100, user is for the presence or absence of contact (that is, touch input) of mobile terminal 100, mobile terminal
100 orientation, the acceleration or deceleration movement of mobile terminal 100 and direction etc., and generate for controlling mobile terminal 100
The order of operation or signal.For example, when mobile terminal 100 is embodied as sliding-type mobile phone, sensing unit 140 can sense
The sliding-type phone is to open or close.In addition, sensing unit 140 can detect power supply unit 190 whether provide electric power or
Whether person's interface unit 170 couples with external device (ED).
Interface unit 170 be used as at least one external device (ED) connect with mobile terminal 100 can by interface.For example,
External device (ED) may include wired or wireless headphone port, external power supply (or battery charger) port, wired or nothing
Line data port, memory card port, the port for connecting the device with identification module, audio input/output (I/O) end
Mouth, video i/o port, ear port etc..Identification module can store to use each of mobile terminal 100 for verifying user
It plants information and may include subscriber identification module (UIM), client identification module (SIM), Universal Subscriber identification module (USIM)
Etc..In addition, the device with identification module can (hereinafter referred to as " identification device ") take the form of smart card therefore to know
Other device can be connect via port or other attachment devices with mobile terminal 100.Interface unit 170, which can be used for receiving, to be come from
The input (for example, data information, electric power etc.) of external device (ED) and the input received is transferred in mobile terminal 100
One or more elements can be used for the transmission data between mobile terminal and external device (ED).
In addition, when mobile terminal 100 is connect with external base, interface unit 170 may be used as allowing will be electric by it
Power provides to the path of mobile terminal 100 from pedestal or may be used as that the various command signals inputted from pedestal is allowed to pass through it
It is transferred to the path of mobile terminal.The various command signals or electric power inputted from pedestal, which may be used as mobile terminal for identification, is
The no signal being accurately fitted on pedestal.Output unit 150 is configured to provide with vision, audio and/or tactile manner defeated
Go out signal (for example, audio signal, vision signal, alarm signal, vibration signal etc.).Output unit 150 may include display
Unit 151, audio output module 152, alarm unit 153 etc..
Display unit 151 may be displayed on the information handled in mobile terminal 100.For example, when mobile terminal 100 is in electricity
When talking about call mode, display unit 151 can show and converse or other communicate (for example, text messaging, multimedia file
Download etc.) relevant user interface (UI) or graphic user interface (GUI).When mobile terminal 100 is in video calling pattern
Or when image capture mode, display unit 151 can show the image of capture and/or the image of reception, show video or figure
The UI or GUI etc. of picture and correlation function.
Meanwhile when display unit 151 and touch tablet in the form of layer it is superposed on one another to form touch screen when, display unit
151 may be used as input unit and output device.Display unit 151 may include liquid crystal display (LCD), thin film transistor (TFT)
In LCD (TFT-LCD), Organic Light Emitting Diode (OLED) display, flexible display, three-dimensional (3D) display etc. at least
It is a kind of.Some in these displays may be constructed such that transparence to allow user to be watched from outside, this is properly termed as transparent
Display, typical transparent display can be, for example, TOLED (transparent organic light emitting diode) display etc..According to specific
Desired embodiment, mobile terminal 100 may include two or more display units (or other display devices), for example, moving
Dynamic terminal may include outernal display unit (not shown) and inner display unit (not shown).Touch screen, which can be used for detecting, to be touched
Input pressure and touch input position and touch input area.
Audio output module 152 can mobile terminal be in call signal reception pattern, call mode, logging mode,
It is that wireless communication unit 110 is received or in memory 160 when under the isotypes such as speech recognition mode, broadcast reception mode
The audio data transducing audio signal of middle storage and to export be sound.Moreover, audio output module 152 can provide and movement
The relevant audio output of specific function (for example, call signal receives sound, message sink sound etc.) that terminal 100 executes.
Audio output module 152 may include loud speaker, buzzer etc..
Alarm unit 153 can provide output notifying event to mobile terminal 100.Typical event can be with
Including calling reception, message sink, key signals input, touch input etc..Other than audio or video exports, alarm unit
153 can provide output with the generation of notification event in different ways.For example, alarm unit 153 can be in the form of vibration
Output is provided, when receiving calling, message or some other entrance communications (incomingcommunication), alarm list
Member 153 can provide tactile output (that is, vibration) to notify to user.It is exported by tactile as offer, even if
When the mobile phone of user is in the pocket of user, user also can recognize that the generation of various events.Alarm unit 153
The output of the generation of notification event can be provided via display unit 151 or audio output module 152.
Memory 160 can store the software program etc. of the processing and control operation that are executed by controller 180, Huo Zheke
Temporarily to store oneself data (for example, telephone directory, message, still image, video etc.) through exporting or will export.And
And memory 160 can be stored about when the vibration and audio signal for touching the various modes that the when of being applied to touch screen exports
Data.
Memory 160 may include the storage medium of at least one type, and the storage medium includes flash memory, hard disk, more
Media card, card-type memory (for example, SD or DX memories etc.), random access storage device (RAM), static random-access storage
Device (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read only memory
(PROM), magnetic storage, disk, CD etc..Moreover, mobile terminal 100 can execute memory with by network connection
The network storage device of 160 store function cooperates.
The overall operation of the usually control mobile terminal of controller 180.For example, controller 180 executes and voice communication, data
Communication, video calling etc. relevant control and processing.In addition, controller 180 may include for reproducing (or playback) more matchmakers
The multi-media module 181 of volume data, multi-media module 181 can construct in controller 180, or can be structured as and control
Device 180 detaches.Controller 180 can be with execution pattern identifying processing, by the handwriting input executed on the touchscreen or picture
It draws input and is identified as character or image.
Power supply unit 190 receives external power or internal power under the control of controller 180 and provides operation each member
Electric power appropriate needed for part and component.
Various embodiments described herein can with use such as computer software, hardware or any combination thereof calculating
Machine readable medium is implemented.Hardware is implemented, embodiment described herein can be by using application-specific IC
(ASIC), digital signal processor (DSP), digital signal processing device (DSPD), programmable logic device (PLD), scene can
Programming gate array (FPGA), controller, microcontroller, microprocessor, is designed to execute function described herein processor
At least one of electronic unit is implemented, and in some cases, such embodiment can be implemented in controller 180.
For software implementation, the embodiment of such as process or function can with allow to execute the individual of at least one functions or operations
Software module is implemented.Software code can by the software application (or program) write with any programming language appropriate Lai
Implement, software code can be stored in memory 160 and be executed by controller 180.
So far, oneself according to its function through describing mobile terminal.In the following, for the sake of brevity, will description such as folded form,
Slide type mobile terminal in various types of mobile terminals of board-type, oscillating-type, slide type mobile terminal etc., which is used as, to be shown
Example.Therefore, the present invention can be applied to any kind of mobile terminal, and be not limited to slide type mobile terminal.
Mobile terminal 100 as shown in Figure 1 may be constructed such that using via frame or grouping transmission data it is all if any
Line and wireless communication system and satellite-based communication system operate.
The communication system that mobile terminal wherein according to the present invention can operate is described referring now to Fig. 2.
Such communication system can use different air interface and/or physical layer.For example, used by communication system
Air interface includes such as frequency division multiple access (FDMA), time division multiple acess (TDMA), CDMA (CDMA) and universal mobile communications system
System (UMTS) (particularly, long term evolution (LTE)), global system for mobile communications (GSM) etc..As non-limiting example, under
The description in face is related to cdma communication system, but such introduction is equally applicable to other types of system.
With reference to figure 2, cdma wireless communication system may include multiple mobile terminals 100, multiple base stations (BS) 270, base station
Controller (BSC) 275 and mobile switching centre (MSC) 280.MSC280 is configured to and Public Switched Telephony Network (PSTN)
290 form interface.MSC280 is also structured to form interface with the BSC275 that can be couple to base station 270 via back haul link.
Back haul link can be constructed according to any one of several known interfaces, the interface include such as E1/T1, ATM, IP,
PPP, frame relay, HDSL, ADSL or xDSL.It will be appreciated that system may include multiple BSC2750 as shown in Figure 2.
Each BS270 can service one or more subregions (or region), by multidirectional antenna or the day of direction specific direction
Each subregion of line covering is radially far from BS270.Alternatively, each subregion can be by two or more for diversity reception
Antenna covers.Each BS270, which may be constructed such that, supports multiple frequency distribution, and each frequency distribution has specific frequency spectrum
(for example, 1.25MHz, 5MHz etc.).
What subregion and frequency were distributed, which intersects, can be referred to as CDMA Channel.BS270 can also be referred to as base station transceiver
System (BTS) or other equivalent terms.In this case, term " base station " can be used for broadly indicating single
BSC275 and at least one BS270.Base station can also be referred to as " cellular station ".Alternatively, each subregion of specific BS270 can be claimed
For multiple cellular stations.
As shown in Figure 2, broadcast singal is sent to the mobile terminal operated in system by broadcsting transmitter (BT) 295
100.Broadcasting reception module 111 as shown in Figure 1 is arranged at mobile terminal 100 to receive the broadcast sent by BT295
Signal.In fig. 2 it is shown that several global positioning system (GPS) satellites 300.The help of satellite 300 positions multiple mobile terminals
At least one of 100.
In fig. 2, multiple satellites 300 are depicted, it is understood that, any number of satellite can be utilized to obtain useful
Location information.GPS module 115 as shown in Figure 1 is generally configured to coordinate with satellite 300 to be believed with obtaining desired positioning
Breath.It substitutes GPS tracking techniques or except GPS tracking techniques, the other of the position that can track mobile terminal can be used
Technology.In addition, at least one GPS satellite 300 can optionally or additionally handle satellite dmb transmission.
As a typical operation of wireless communication system, BS270 receives the reverse link from various mobile terminals 100
Signal.Mobile terminal 100 usually participates in call, information receiving and transmitting and other types of communication.Each of the reception of certain base station 270 is anti-
It is handled in specific BS270 to link signal.The data of acquisition are forwarded to relevant BSC275.BSC provides call
The mobile management function of resource allocation and coordination including the soft switching process between BS270.The number that BSC275 will also be received
According to MSC280 is routed to, the additional route service for forming interface with PSTN290 is provided.Similarly, PSTN290 with
MSC280 forms interface, and MSC and BSC275 form interface, and BSC275 correspondingly controls BS270 with by forward link signals
It is sent to mobile terminal 100.
Fig. 3 is the flow chart of image processing method provided in an embodiment of the present invention.As shown in figure 3, provided in this embodiment
Image processing method includes the following steps:
Step 301:Input unit inputs pending original image.
In this, original image is, for example, RGB image.However, the present invention does not limit this.The present embodiment is equally applicable to
Other kinds of image (such as gray level image).
Step 302:Controller determines the corresponding first processing image of original image;In a first direction, to original image
And corresponding first processing image obtains the enlarged drawing of original image in a first direction into row interpolation.
In this, controller determines the corresponding first processing image of original image, including:
Controller is according to the pixel (h, w) and left and right sides pixel arranged positioned at h rows, w in original image
Pixel value determines that the pixel value positioned at h rows, the w pixel arranged in corresponding first processing image is:
P1_high (h, w)=(2 × P1 (h, w)-P1 (h, w-1)-P1 (h, w+1))/4,
Wherein, P1_high (h, w) indicates to be located at h rows, w row in the corresponding first processing image of the original image
Pixel pixel value, P1 (h, w) indicate in the original image be located at h rows, w arrange pixel (h, w) pixel
Value, P1 (h, w-1) indicate that the pixel value of the leftmost pixel point of the pixel in the original image, P1 (h, w+1) indicate that this is original
The pixel value of the right pixels point of the pixel in image, h and w are the integer more than or equal to 0;
Each pixel in controller searching loop original image obtains each pixel in corresponding first processing image
The corresponding pixel value of point, to determine the corresponding first processing image of original image.
In this, controller in a first direction, to original image and corresponding first processing image into row interpolation, obtains original
The enlarged drawing of beginning image in a first direction, including:
When first direction is the line direction of pixel, controller, which determines in enlarged drawing in a first direction, is located at h
Row, 2 × w-1 row pixel pixel value be equal to the first pixel value and the second pixel value and value, and determine in first party
To enlarged drawing in be located at h rows, the pixel value for the pixel that 2 × w is arranged is equal to the first pixel value and the second pixel value
Difference, wherein first pixel value is the pixel value for being located at h rows, the pixel that w is arranged in original image, described the
Two pixel values are the pixel value for being located at h rows, the pixel that w is arranged in the corresponding first processing image of original image, wherein
H, w is the integer more than or equal to 0;
Each pixel in controller searching loop original image and corresponding first processing image, obtains in first party
To enlarged drawing in each pixel pixel value, to determine the enlarged drawing of original image in a first direction;
Alternatively,
When first direction is the column direction of pixel, controller, which determines in enlarged drawing in a first direction, is located at the 2nd
× h-1 rows, w rows pixel pixel value be equal to the first pixel value and the second pixel value and value, and determine in first party
To enlarged drawing in be located at 2 × h rows, the pixel value of pixel of w rows is equal to the first pixel value and the second pixel value
Difference, wherein first pixel value is the pixel value for being located at h rows, the pixel that w is arranged in original image, described the
Two pixel values are the pixel value for being located at h rows, the pixel that w is arranged in the corresponding first processing image of original image, wherein
H, w is the integer more than or equal to 0;
Each pixel in controller searching loop original image and corresponding first processing image, obtains in first party
To enlarged drawing in each pixel pixel value, to determine the enlarged drawing of original image in a first direction.
Step 303:Controller determines the corresponding second processing image of the enlarged drawing of original image in a first direction;
On two directions, to original image enlarged drawing in a first direction and corresponding second processing image into row interpolation, obtain original
The final enlarged drawing of image.
In this, controller determines the corresponding second processing image of the enlarged drawing of original image in a first direction, including:
Controller is according to the pixel (h, w) for being located at h rows in the enlarged drawing of original image first direction, w is arranged
And the pixel value of left and right sides pixel, it determines in corresponding second processing image positioned at h rows, the w pixel arranged
Pixel value is:
P2_high (h, w)=(2 × P1_out (h, w)-P1_out (h, w-1)-P1_out (h, w+1))/4,
Wherein, P2_high (h, w) indicates the corresponding second processing image of enlarged drawing in the original image first direction
In be located at h rows, w arrange pixel pixel value, P1_out (h, w) indicate the original image first direction enlarged drawing
It is located at the pixel value of h rows, the pixel (h, w) that w is arranged as in, P1_out (h, w-1) indicates the original image first direction
Enlarged drawing in the pixel leftmost pixel point pixel value, P1_out (h, w+1) indicates the original image first direction
Enlarged drawing in the pixel right pixels point pixel value, h and w are the integer more than or equal to 0;
Each pixel in the enlarged drawing of controller searching loop original image first direction, obtains corresponding second
The corresponding pixel value of each pixel in image is handled, to determine at the enlarged drawing of original image first direction corresponding second
Manage image.
In this, controller in a second direction, at the enlarged drawing and corresponding second of original image in a first direction
Image is managed into row interpolation, obtains the final enlarged drawing of original image, including:
When first direction is the line direction of pixel, controller is determined is located at 2 × h-1 in final enlarged drawing
Row, w rows pixel pixel value be equal to third pixel value and the 4th pixel value and value, and determine in final enlarged drawing
In be located at 2 × h rows, w rows pixel pixel value be equal to third pixel value and the 4th pixel value difference, wherein institute
It is the pixel value for being located at h rows, the pixel that w is arranged in the enlarged drawing of original image first direction to state third pixel value,
4th pixel value is to be located at h rows, w in the corresponding second processing image of enlarged drawing of original image first direction
The pixel value of the pixel of row, wherein h, w are the integer more than or equal to 0;
Each pixel in controller searching loop enlarged drawing in a first direction and corresponding second processing image,
The pixel value of each pixel in final enlarged drawing is obtained, to determine the final enlarged drawing of original image;
Alternatively,
When first direction is the column direction of pixel, controller is determined is located at h rows, the 2nd in final enlarged drawing
The pixel value of the pixel of × w-1 rows is equal to third pixel value and the 4th pixel value and value, and determine in final enlarged drawing
In be located at h rows, 2 × w rows pixel pixel value be equal to third pixel value and the 4th pixel value difference, wherein institute
It is the pixel value for being located at h rows, the pixel that w is arranged in the enlarged drawing of original image first direction to state third pixel value,
4th pixel value is to be located at h rows, w in the corresponding second processing image of enlarged drawing of original image first direction
The pixel value of the pixel of row, wherein h, w are the integer more than or equal to 0;
Each pixel in controller searching loop enlarged drawing in a first direction and corresponding second processing image,
The pixel value of each pixel in final enlarged drawing is obtained, to determine the final enlarged drawing of original image.
In this, first direction is perpendicular to second direction.In an embodiment, first direction is the line direction of pixel, the
Two directions are the column direction of pixel.In another embodiment, first direction is the column direction of pixel, and second direction is pixel
The line direction of point.
In this, image interpolation amplification provided in this embodiment is based on wavelet inverse transformation principle.Specifically, wavelet transformation
Original image is mainly decomposed into four subgraphs by primary decompose, four subgraphs be respectively LL images, LH images, HL images and
HH images, wherein LL images represent the low-frequency information of original image, for embodying the main body in image, excess-three image generation
The detail of the high frequency of table original image, for embodying the detail section in image.
Fig. 4 is a decomposition diagram of wavelet transformation.As shown in figure 4, in a decomposable process of wavelet transformation, first
Original image shown in Fig. 4 (a) is decomposed into the subgraph that two height are identical and width is original image width half (such as to scheme
Shown in 4 (b)), it then, then is decomposed, obtains four subgraphs as shown in Fig. 4 (c).In Fig. 4 (c), the figure in the upper left corner
As being LL images, the image in the lower left corner is LH images, and the image in the upper right corner is HL images, and the image in the lower right corner is HH images.
According to above-mentioned wavelet transform procedure it is found that wavelet inverse transformation process is to obtain the mistake of original image according to subgraph
Journey.
The present embodiment is based on the image interpolation amplification process that above-mentioned wavelet inverse transformation principle carries out:By input picture
(enlarged drawing of such as original image or original image in a first direction) once decomposes obtained low-frequency image as wavelet transformation,
According to the low-frequency image, the corresponding high-frequency therapeutic treatment image of the low-frequency image is estimated, then, utilizes the low frequency in the corresponding direction
Image and obtained high-frequency therapeutic treatment image carry out interpolation amplification, obtain the enlarged drawing in the corresponding direction of input picture.
In addition, in this present embodiment, when the pixel value of each pixel of the original image includes at least two components
When, in a first direction, the corresponding first processing image of each component image and each component image to original image divides controller
Not into row interpolation, the enlarged drawing of each component in a first direction is obtained;Controller in a second direction, to each component in first party
To enlarged drawing and corresponding second processing image respectively into row interpolation, the final enlarged drawing of each component is obtained, according to each
The final enlarged drawing of component determines the final enlarged drawing of original image.
In other words, first to the image on each component when the pixel value of the pixel of original image includes multiple components
Interpolation obtains corresponding final enlarged drawing in a first direction and in second direction afterwards, then by the final enlarged drawing on each component
As being combined to determine the final enlarged drawing of original image.
For example, for using original image as RGB (RGB, Red Green Blue) image, each of RGB image
Pixel value includes R component, G components and B component.Controller by determining the final enlarged drawing in R component, on G components respectively
Final enlarged drawing and B component on final enlarged drawing, obtain the final enlarged drawing of original image.
In this way, through the embodiment of the present invention, image interpolation amplification, obtained enlarged drawing are carried out based on wavelet inverse transformation principle
Detailed information as can preferably retain original image.
Based on above-mentioned mobile terminal hardware configuration and communication system, each embodiment of the method for the present invention is proposed.
Embodiment one
Fig. 5 is the flow chart for the image processing method that the specific embodiment of the invention one provides.As shown in figure 5, the present embodiment
The image processing method of offer is applied to mobile terminal (such as mobile phone, tablet computer etc.), includes the following steps:
Step 501:Input unit inputs pending original image.
In this, original image is illustrated by taking RGB image as an example.However, the present invention does not limit this.The present embodiment is same
Sample is suitable for other kinds of image (such as gray level image).
Step 502:Controller in the row direction, is respectively put the R component of RGB image, G components and B component into row interpolation
Greatly.
In this, it is described in detail by taking G components as an example.
First, controller is that the image of G components determines corresponding first processing image.Specifically, according in G components
It is located at the pixel value of h rows, the pixel (h, w) that w is arranged and the pixel at left and right sides of it in image, determines corresponding the
It is located at h rows in one processing image, the pixel value for the pixel that w is arranged is:
G1_high (h, w)=(2 × G1 (h, w)-G1 (h, w-1)-G1 (h, w+1))/4,
Wherein, G1_high (h, w) indicates to arrange positioned at h rows, w in the corresponding first processing image of G component images
The pixel value of pixel, G1 (h, w) indicate the pixel for being located at h rows, the pixel (h, w) that w is arranged in the image of G components
Value, G1 (h, w-1) indicate that the pixel value of the leftmost pixel point of the pixel in G component images, G1 (h, w+1) indicate G component maps
The pixel value of the right pixels point of the pixel as in, h and w are the integer more than or equal to 0;Later, searching loop G components
Each pixel in image, to obtain the corresponding first processing image of G component images.
Secondly, controller in the row direction, using the image and corresponding first processing image of G components into row interpolation,
Obtain enlarged drawing of the image in line direction of G components.Specifically, carrying out interpolation according to following formulas:
G1_out (h, 2 × w-1)=G1 (h, w)+G1_high (h, w)
G1_out (h, 2 × w)=G1 (h, w)-G1_high (h, w),
Wherein, G1_out (h, 2 × w-1) indicates to be located at h rows, 2 × w- in the enlarged drawing of the line direction of G components
The pixel value of the pixel of 1 row, G1_out (h, 2 × w) indicate to be located at h rows, the in the enlarged drawing of the line direction of G components
The pixel value of the pixel of 2 × w row, G1 (h, w) indicate the pixel for being located at h rows, the pixel that w is arranged in G component images
Value, G1_high (h, w) indicate the picture for being located at h rows, the pixel that w is arranged in the corresponding first processing image of G component images
Element value;Later, each pixel in searching loop G component images and corresponding first processing image, to obtain the G components side of being expert at
To enlarged drawing.
It is original G component images width 2 that can obtain a constant and width of G component image height according to above-mentioned interpolation formula
Enlarged drawing again.Similarly, interpolation amplification is carried out also according to the description of step 502 for R component image and B component image,
Obtain R component line direction enlarged drawing and B component line direction enlarged drawing.
Step 503:Controller in a column direction, respectively to R component in the enlarged drawing of line direction, G components in line direction
Enlarged drawing and B component line direction enlarged drawing carry out interpolation amplification.
In this, still illustrated by taking G components as an example.
First, controller is that G components determine corresponding second processing image in the enlarged drawing of line direction.Specifically,
According to the pixel (h, w) and the pixel at left and right sides of it arranged positioned at h rows, w in the line direction enlarged drawing of G components
The pixel value of point determines that the pixel value in corresponding second processing image positioned at h rows, the w pixel arranged is:
G2_high (h, w)=(2 × G1_out (h, w)-G1_out (h, w-1)-G1_out (h, w+1))/4,
Wherein, G2_high (h, w) expressions are located in the corresponding second processing image of enlarged drawing of G component line directions
The pixel value for the pixel that h rows, w are arranged, G1_out (h, w) indicate to be located at h in the line direction enlarged drawing of G components
It goes, the pixel value of the pixel (h, w) of w row, the pixel in the line direction enlarged drawing of G1_out (h, w-1) expression G components
Point leftmost pixel point pixel value, G1_out (h, w+1) indicate G components line direction enlarged drawing in the pixel the right
The pixel value of pixel, h and w are the integer more than or equal to 0;Later, enlarged drawing of the searching loop G components in line direction
In each pixel, the corresponding second processing image of line direction enlarged drawing to obtain G components.
Secondly, controller in a column direction, the enlarged drawing in line direction and corresponding second processing figure using G components
As into row interpolation, obtaining the line direction enlarged drawing of G components in the enlarged drawing of column direction, the i.e. final enlarged drawing of G components.Tool
For body, interpolation is carried out according to following formulas:
G2_out (2 × h-1, w)=G1_out (h, w)+G2_high (h, w)
G2_out (2 × h, w)=G1_out (h, w)-G2_high (h, w),
Wherein, G2_out (2 × h-1, w) indicates to be located at 2 × h-1 rows, w row in the final enlarged drawing of G components
Pixel pixel value, G2_out (2 × h, w) indicates to be located at 2 × h rows in the final enlarged drawing of G components, w is arranged
Pixel pixel value, G1_out (h, w) indicate in the line direction enlarged drawing of G components be located at h rows, w arrange picture
The pixel value of vegetarian refreshments, G2_high (h, w) expressions are located in the corresponding second processing image of line direction enlarged drawing of G components
The pixel value for the pixel that h rows, w are arranged;Later, at the line direction enlarged drawing of searching loop G components and corresponding second
Each pixel in image is managed, to obtain G components in the enlarged drawing of column direction, i.e., final enlarged drawing.
According to above-mentioned interpolation formula can obtain a line direction enlarged drawing width relative to G components it is constant and height be
2 times of enlarged drawing of the height of the line direction enlarged drawing of G components.Similarly, same for R component image and B component image
Interpolation amplification is carried out according to the description of step 503, obtains R component in the enlarged drawing and B component of column direction in column direction
Enlarged drawing.
It can according to the final enlarged drawing of the final enlarged drawing of G components, the final enlarged drawing of B component and R component
To obtain the final enlarged drawing of original RGB image.
Embodiment two
Fig. 6 is the flow chart for the image processing method that the specific embodiment of the invention two provides.As shown in fig. 6, the present embodiment
The image processing method of offer includes the following steps:
Step 601:Input unit inputs pending original image.
In this, original image is illustrated by taking RGB image as an example.However, the present invention does not limit this.The present embodiment is same
Sample is suitable for other kinds of image (such as gray level image).
Step 602:Controller in a column direction, is respectively put the R component of RGB image, G components and B component into row interpolation
Greatly.
In this, it is described in detail by taking G components as an example.
First, controller is that the image of G components determines corresponding first processing image.Specifically, according in G components
It is located at the pixel value of h rows, the pixel (h, w) that w is arranged and the pixel at left and right sides of it in image, determines corresponding the
It is located at h rows in one processing image, the pixel value for the pixel that w is arranged is:
G1_high (h, w)=(2 × G1 (h, w)-G1 (h, w-1)-G1 (h, w+1))/4,
Wherein, G1_high (h, w) indicates to arrange positioned at h rows, w in the corresponding first processing image of G component images
The pixel value of pixel, G1 (h, w) indicate the pixel for being located at h rows, the pixel (h, w) that w is arranged in the image of G components
Value, G1 (h, w-1) indicate that the pixel value of the leftmost pixel point of the pixel in G component images, G1 (h, w+1) are indicated at G points
The pixel value of the right pixels point of the pixel in spirogram picture, h and w are the integer more than or equal to 0;Later, searching loop G
Each pixel in component image, to obtain the corresponding first processing image of G component images.
Secondly, controller in a column direction, using the image and corresponding first processing image of G components into row interpolation,
Obtain enlarged drawing of the image in column direction of G components.Specifically, carrying out interpolation according to following formulas:
G1_out (2 × h-1, w)=G1 (h, w)+G1_high (h, w)
G1_out (2 × h, w)=G1 (h, w)-G1_high (h, w),
Wherein, G1_out (2 × h-1, w) indicates to be located at 2 × h-1 rows, the in the enlarged drawing of the column direction of G components
The pixel value of the pixel of w row, G1_out (2 × h, w) indicate to be located at 2 × h in the enlarged drawing of the line direction of G components
The pixel value for the pixel that row, w are arranged, G1 (h, w) indicate the picture for being located at h rows, the pixel that w is arranged in G component images
Element value, G1_high (h, w) are indicated in the corresponding first processing image of G component images positioned at h rows, the w pixel arranged
Pixel value;Later, each pixel in searching loop G component images and corresponding first processing image, is being arranged with obtaining G components
The enlarged drawing in direction.
According to above-mentioned interpolation formula can obtain a G component image width it is constant and height be original G component images height 2
Enlarged drawing again.Similarly, interpolation amplification is carried out also according to the description of step 502 for R component image and B component image,
Obtain R component column direction enlarged drawing and B component column direction enlarged drawing.
Step 1403:Controller in the row direction, respectively to R component in the enlarged drawing of column direction, G components in column direction
Enlarged drawing and B component column direction enlarged drawing carry out interpolation amplification.
In this, still illustrated by taking G components as an example.
First, controller is that G components determine corresponding second processing image in the enlarged drawing of column direction.Specifically,
According to the pixel (h, w) and the pixel at left and right sides of it arranged positioned at h rows, w in the column direction enlarged drawing of G components
The pixel value of point determines that the pixel value in corresponding second processing image positioned at h rows, the w pixel arranged is:
G2_high (h, w)=(2 × G1_out (h, w)-G1_out (h, w-1)-G1_out (h, w+1))/4,
Wherein, G2_high (h, w) expressions are located in the corresponding second processing image of column direction enlarged drawing of G components
The pixel value for the pixel that h rows, w are arranged, G1_out (h, w) indicate to be located at h in the column direction enlarged drawing of G components
The pixel value for the pixel (h, w) that row, w are arranged, G1_out (h, w-1) indicate the picture in the column direction enlarged drawing of G components
The pixel value of the leftmost pixel point of vegetarian refreshments, G1_out (h, w+1) indicate the pixel in the column direction enlarged drawing of G components
The pixel value of right pixels point, h and w are the integer more than or equal to 0;Later, amplification of the searching loop G components in column direction
Each pixel in image, the corresponding second processing image of column direction enlarged drawing to obtain G components.
Secondly, controller in the row direction, the enlarged drawing in column direction and corresponding second processing figure using G components
As into row interpolation, obtaining the column direction enlarged drawing of G components in the enlarged drawing of line direction, the i.e. final enlarged drawing of G components.Tool
For body, interpolation is carried out according to following formulas:
G2_out (h, 2 × w-1)=G1_out (h, w)+G2_high (h, w)
G2_out (h, 2 × w)=G1_out (h, w)-G2_high (h, w),
Wherein, G2_out (h, 2 × w-1) indicates to be located at h rows, 2 × w-1 row in the final enlarged drawing of G components
Pixel pixel value, G2_out (h, 2 × w) indicate in the final enlarged drawing of G components be located at h rows, 2 × w arrange
Pixel pixel value, G1_out (h, w) indicate in the column direction enlarged drawing of G components be located at h rows, w arrange picture
The pixel value of vegetarian refreshments, G2_high (h, w) expressions are located in the corresponding second processing image of column direction enlarged drawing of G components
The pixel value for the pixel that h rows, w are arranged;Later, at the column direction enlarged drawing of searching loop G components and corresponding second
Each pixel in image is managed, to obtain G components in the enlarged drawing of line direction, i.e., final enlarged drawing.
Can obtain a constant and width of column direction enlarged drawing height relative to G components according to above-mentioned interpolation formula is
2 times of enlarged drawing of the width of the column direction enlarged drawing of G components.Similarly, same for R component image and B component image
Interpolation amplification is carried out according to the description of step 503, obtains R component in the enlarged drawing and B component of line direction in line direction
Enlarged drawing.
It can according to the final enlarged drawing of the final enlarged drawing of G components, the final enlarged drawing of B component and R component
To obtain the final enlarged drawing of original RGB component.
Embodiment three
Fig. 7 is the flow chart for the image processing method that the specific embodiment of the invention three provides.As shown in fig. 7, the present embodiment
The image processing method of offer includes the following steps:
Step 701:Input unit inputs pending original image.
In this, original image is illustrated by taking RGB image as an example.However, the present invention does not limit this.The present embodiment is same
Sample is suitable for other kinds of image (such as gray level image).
Step 702:Controller carries out the G components of original RGB image the interpolation amplification of line direction, and is expert to R component
The enlarged drawing that directional interpolation obtains carries out the interpolation amplification of column direction.
In this, illustrated by taking G components as an example.
First, controller is that the image of G components determines corresponding first processing image, and in the row direction, utilizes G components
Image and corresponding first processing image into row interpolation, obtain G components line direction enlarged drawing;The same embodiment of this process
Described in one step 502, therefore no longer it is described in detail in this;
Later, controller determines corresponding second processing image for G components in the enlarged drawing of line direction, and in column direction
On, G components are obtained in row side into row interpolation in the enlarged drawing of line direction and corresponding second processing image using G components
To enlarged drawing, in this, the as final enlarged drawing of G components;Described in step 503 of this process with embodiment one, therefore in
This is repeated no more.
In addition, in this step, the interpolation amplification of column direction also can be first carried out to the R component of original RGB image, then to R
The enlarged drawing that component is obtained in column direction interpolation carries out the interpolation amplification of line direction.That is, the present embodiment does not limit line direction
The sequencing of interpolation and column direction interpolation.
Step 703:Controller carries out the R component of original RGB image the interpolation amplification of line direction, and is expert to R component
The enlarged drawing that directional interpolation obtains carries out the interpolation amplification of column direction.
In this, the processing mode in R component is identical as the processing mode of G components, therefore is repeated no more in this.
Step 704:Controller carries out the B component of original RGB image the interpolation amplification of line direction, and is expert to B component
The enlarged drawing that directional interpolation obtains carries out the interpolation amplification of column direction.
In this, the processing mode on B component is identical as the processing mode of G components, therefore is repeated no more in this.
In addition, the present invention does not limit the processing sequence of R component, G components and B component.In other embodiment, also may be used
First R component is handled, then handles B component and G components successively.
Similarly, according to the final amplification of the final enlarged drawing of G components, the final enlarged drawing of B component and R component
Image can obtain the final enlarged drawing of original RGB image.
In addition, when the embodiment of the present invention is suitable for gray level image, original-gray image interpolation amplification is finally amplified
The processing procedure of image is similar to the processing procedure to each component in RGB image (such as G components).Therefore it is repeated no more in this.
Fig. 8 is the schematic diagram of the mobile terminal of image procossing provided in an embodiment of the present invention.Fig. 9 carries for the embodiment of the present invention
The structural schematic diagram of the mobile terminal of the image procossing of confession.In this, as shown in figure 8, the mobile terminal is, for example, mobile phone.However,
The present invention does not limit this.
As shown in figure 9, the mobile terminal of image procossing provided in this embodiment, including:Input unit and controller.Its
In, input unit, for inputting pending original image;Controller, for determining the corresponding first processing figure of original image
Picture;In a first direction, original image is obtained in a first direction into row interpolation to original image and corresponding first processing image
Enlarged drawing;Determine the corresponding second processing image of the enlarged drawing of original image in a first direction;In a second direction, right
Original image enlarged drawing in a first direction and corresponding second processing image obtain the final of original image and put into row interpolation
Big image;Wherein, the first direction is perpendicular to the second direction.
In an embodiment, first direction is the line direction of pixel, and second direction is the column direction of pixel.
In another embodiment, first direction is the column direction of pixel, and second direction is the line direction of pixel.
Further, the controller determines the corresponding first processing image of the original image, refers to:
The controller is according to the pixel (h, w) and the left and right sides arranged positioned at h rows, w in the original image
The pixel value of pixel determines that the pixel value positioned at h rows, the w pixel arranged in corresponding first processing image is:
P1_high (h, w)=(2 × P1 (h, w)-P1 (h, w-1)-P1 (h, w+1))/4,
Wherein, P1_high (h, w) indicates to be located at h rows, w row in the corresponding first processing image of the original image
Pixel pixel value, P1 (h, w) indicate in the original image be located at h rows, w arrange pixel (h, w) pixel
Value, P1 (h, w-1) indicate that the pixel value of the leftmost pixel point of the pixel in the original image, P1 (h, w+1) indicate that this is original
The pixel value of the right pixels point of the pixel in image, h and w are the integer more than or equal to 0;
Each pixel in original image described in the controller searching loop obtains in corresponding first processing image
The corresponding pixel value of each pixel, with the corresponding first processing image of the determination original image.
Further, the controller in a first direction, to the original image and it is corresponding first processing image into
Row interpolation obtains the enlarged drawing of the original image in a first direction, refers to:
When the first direction is the line direction of pixel, the controller determines in enlarged drawing in a first direction
The pixel value of the pixel arranged positioned at h rows, 2 × w-1 is equal to the first pixel value and the second pixel value and value, and determine and exist
It is located at h rows in the enlarged drawing of first direction, the pixel value for the pixel that 2 × w is arranged is equal to the first pixel value and the second picture
The difference of element value, wherein first pixel value is the pixel for being located at h rows, the pixel that w is arranged in the original image
Value, second pixel value are the pixel for being located at h rows, w row in the corresponding first processing image of the original image
Pixel value, wherein h, w are the integer more than or equal to 0;
Original image described in the controller searching loop and each pixel in corresponding first processing image, obtain
The pixel value of each pixel in enlarged drawing in a first direction, to determine the enlarged drawing of original image in a first direction
Picture;
Alternatively,
When the first direction is the column direction of pixel, the controller determines in enlarged drawing in a first direction
Be equal to the first pixel value and the second pixel value positioned at the pixel value of 2 × h-1 rows, the pixel of w rows and value, and determine and exist
Pixel value in the enlarged drawing of first direction positioned at 2 × h rows, the pixel of w rows is equal to the first pixel value and the second picture
The difference of element value, wherein first pixel value is the pixel for being located at h rows, the pixel that w is arranged in the original image
Value, second pixel value are the pixel for being located at h rows, w row in the corresponding first processing image of the original image
Pixel value, wherein h, w are the integer more than or equal to 0;
Original image described in the controller searching loop and each pixel in corresponding first processing image, obtain
The pixel value of each pixel in enlarged drawing in a first direction, to determine the enlarged drawing of original image in a first direction
Picture.
Further, the controller determines the corresponding second processing of the enlarged drawing of the original image in a first direction
Image refers to:
The controller is according to the pixel for being located at h rows in the enlarged drawing of the original image first direction, w is arranged
The pixel value of point (h, w) and left and right sides pixel determines the picture for being located at h rows, w row in corresponding second processing image
The pixel value of vegetarian refreshments is:
P2_high (h, w)=(2 × P1_out (h, w)-P1_out (h, w-1)-P1_out (h, w+1))/4,
Wherein, P2_high (h, w) indicates the corresponding second processing image of enlarged drawing in the original image first direction
In be located at h rows, w arrange pixel pixel value, P1_out (h, w) indicate the original image first direction enlarged drawing
It is located at the pixel value of h rows, the pixel (h, w) that w is arranged as in, P1_out (h, w-1) indicates the original image first direction
Enlarged drawing in the pixel leftmost pixel point pixel value, P1_out (h, w+1) indicates the original image first direction
Enlarged drawing in the pixel right pixels point pixel value, h and w are the integer more than or equal to 0;
Each pixel in the enlarged drawing of original image first direction described in the controller searching loop, obtains pair
Each corresponding pixel value of pixel in the second processing image answered, with the enlarged drawing of the determination original image first direction
Corresponding second processing image.
Further, the controller in a second direction, to original image enlarged drawing in a first direction and
Corresponding second processing image obtains the final enlarged drawing of the original image, refers into row interpolation:
When the first direction is the line direction of pixel, the controller is determined is located at the in final enlarged drawing
2 × h-1 rows, w rows pixel pixel value be equal to third pixel value and the 4th pixel value and value, and determination is finally being put
Pixel value in big image positioned at 2 × h rows, the pixel of w rows is equal to the difference of third pixel value and the 4th pixel value,
In, the third pixel value is the picture for being located at h rows, the pixel that w is arranged in the enlarged drawing of original image first direction
Element value, the 4th pixel value are to be located at h in the corresponding second processing image of enlarged drawing of original image first direction
The pixel value for the pixel that row, w are arranged, wherein h, w are the integer more than or equal to 0;
Each picture in controller searching loop enlarged drawing in a first direction and corresponding second processing image
Vegetarian refreshments obtains the pixel value of each pixel in final enlarged drawing, to determine the final enlarged drawing of original image;
Alternatively,
When the first direction is the column direction of pixel, the controller is determined is located at the in final enlarged drawing
H rows, 2 × w-1 rows pixel pixel value be equal to third pixel value and the 4th pixel value and value, and determination is finally being put
Pixel value in big image positioned at h rows, the pixel of 2 × w rows is equal to the difference of third pixel value and the 4th pixel value,
In, the third pixel value is the picture for being located at h rows, the pixel that w is arranged in the enlarged drawing of original image first direction
Element value, the 4th pixel value are to be located at h in the corresponding second processing image of enlarged drawing of original image first direction
The pixel value for the pixel that row, w are arranged, wherein h, w are the integer more than or equal to 0;
Each picture in controller searching loop enlarged drawing in a first direction and corresponding second processing image
Vegetarian refreshments obtains the pixel value of each pixel in final enlarged drawing, to determine the final enlarged drawing of original image.
Further, when the pixel value of each pixel of the original image includes at least two component, the control
In a first direction, the corresponding first processing image of each component image and each component image to original image carries out device processed respectively
Interpolation obtains the enlarged drawing of each component in a first direction;The controller in a second direction, in a first direction to each component
Enlarged drawing and corresponding second processing image respectively into row interpolation, the final enlarged drawing of each component is obtained, according to each point
The final enlarged drawing of amount, determines the final enlarged drawing of the original image.
In addition, the mobile terminal of image procossing provided in this embodiment further includes display unit, obtained most for showing
Whole enlarged drawing.
In addition, the specific process flow of above-mentioned mobile terminal is with described in the above method, therefore repeated no more in this.
It should be noted that the controller such as the controller in Fig. 1 of the mobile terminal of image procossing provided by the invention;It is defeated
Enter the camera of the user input unit or A/V input units in unit such as Fig. 1;Display list in display unit such as Fig. 1
Member.
It should be noted that herein, the terms "include", "comprise" or its any other variant are intended to non-row
His property includes, so that process, method, article or device including a series of elements include not only those elements, and
And further include other elements that are not explicitly listed, or further include for this process, method, article or device institute it is intrinsic
Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including this
There is also other identical elements in the process of element, method, article or device.
The embodiments of the present invention are for illustration only, can not represent the quality of embodiment.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side
Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases
The former is more preferably embodiment.Based on this understanding, technical scheme of the present invention substantially in other words does the prior art
Going out the part of contribution can be expressed in the form of software products, which is stored in a storage medium
In (such as ROM/RAM, magnetic disc, CD), including some instructions are used so that a station terminal equipment (can be mobile phone, computer, clothes
Be engaged in device, air conditioner or the network equipment etc.) execute method described in each embodiment of the present invention.
It these are only the preferred embodiment of the present invention, be not intended to limit the scope of the invention, it is every to utilize this hair
Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills
Art field, is included within the scope of the present invention.
Claims (8)
1. a kind of mobile terminal of image procossing, which is characterized in that including:
Input unit and controller;
The input unit, for inputting pending original image;
The controller, for determining the corresponding first processing image of the original image;In a first direction, to described original
Image and corresponding first processing image obtain the enlarged drawing of the original image in a first direction into row interpolation;Determine institute
State the corresponding second processing image of the enlarged drawing of original image in a first direction;In a second direction, to the original image
Enlarged drawing and corresponding second processing image in a first direction obtains the final enlarged drawing of the original image into row interpolation
Picture;
Wherein, the first direction is perpendicular to the second direction;
The controller determines the corresponding first processing image of the original image, refers to:
The controller is according to the pixel (h, w) and left and right sides pixel for being located at h rows, w row in the original image
The pixel value of point determines that the pixel value positioned at h rows, the w pixel arranged in corresponding first processing image is:
P1_high (h, w)=(2 × P1 (h, w)-P1 (h, w-1)-P1 (h, w+1))/4,
Wherein, P1_high (h, w) indicates the picture for being located at h rows, w row in the corresponding first processing image of the original image
The pixel value of vegetarian refreshments, P1 (h, w) indicate the pixel value for being located at h rows, the pixel (h, w) that w is arranged in the original image, P1
(h, w-1) indicates that the pixel value of the leftmost pixel point of the pixel in the original image, P1 (h, w+1) indicate in the original image
The pixel value of the right pixels point of the pixel, h and w are the integer more than or equal to 0;
Each pixel in original image described in the controller searching loop obtains each in corresponding first processing image
The corresponding pixel value of pixel, with the corresponding first processing image of the determination original image.
2. mobile terminal according to claim 1, which is characterized in that the first direction is the line direction of pixel, institute
State the column direction that second direction is pixel;Alternatively, the first direction is the column direction of pixel, the second direction is picture
The line direction of vegetarian refreshments.
3. mobile terminal according to claim 1 or 2, which is characterized in that the controller in a first direction, to described
Original image and corresponding first processing image obtain the enlarged drawing of the original image in a first direction, are into row interpolation
Refer to:
When the first direction is the line direction of pixel, the controller determines to be located in enlarged drawing in a first direction
H rows, 2 × w-1 row pixel pixel value be equal to the first pixel value and the second pixel value and value, and determine first
It is located at h rows in the enlarged drawing in direction, the pixel value for the pixel that 2 × w is arranged is equal to the first pixel value and the second pixel value
Difference, wherein first pixel value be in the original image be located at h rows, w arrange pixel pixel value,
Second pixel value is the picture for being located at h rows, the pixel that w is arranged in the corresponding first processing image of the original image
Element value, wherein h, w are the integer more than or equal to 0;
Original image described in the controller searching loop and each pixel in corresponding first processing image, obtain the
The pixel value of each pixel in the enlarged drawing in one direction, to determine the enlarged drawing of original image in a first direction;
Alternatively,
When the first direction is the column direction of pixel, the controller determines to be located in enlarged drawing in a first direction
2 × h-1 rows, w row pixel pixel value be equal to the first pixel value and the second pixel value and value, and determine first
It is located at 2 × h rows in the enlarged drawing in direction, the pixel value for the pixel that w is arranged is equal to the first pixel value and the second pixel value
Difference, wherein first pixel value be in the original image be located at h rows, w arrange pixel pixel value,
Second pixel value is the picture for being located at h rows, the pixel that w is arranged in the corresponding first processing image of the original image
Element value, wherein h, w are the integer more than or equal to 0;
Original image described in the controller searching loop and each pixel in corresponding first processing image, obtain the
The pixel value of each pixel in the enlarged drawing in one direction, to determine the enlarged drawing of original image in a first direction.
4. mobile terminal according to claim 1 or 2, which is characterized in that the controller determines that the original image exists
The corresponding second processing image of enlarged drawing of first direction refers to:
The controller is according to the pixel for being located at h rows in the enlarged drawing of the original image first direction, w is arranged
The pixel value of (h, w) and left and right sides pixel determine the pixel for being located at h rows, w row in corresponding second processing image
Point pixel value be:
P2_high (h, w)=(2 × P1_out (h, w)-P1_out (h, w-1)-P1_out (h, w+1))/4,
Wherein, P2_high (h, w) indicates the position in the corresponding second processing image of enlarged drawing of the original image first direction
In the pixel value for the pixel that h rows, w are arranged, P1_out (h, w) is indicated in the enlarged drawing of the original image first direction
The pixel value of the pixel (h, w) arranged positioned at h rows, w, P1_out (h, w-1) indicate putting for the original image first direction
The pixel value of the leftmost pixel point of the pixel, P1_out (h, w+1) indicate putting for the original image first direction in big image
The pixel value of the right pixels point of the pixel in big image, h and w are the integer more than or equal to 0;
Each pixel in the enlarged drawing of original image first direction described in the controller searching loop, obtains corresponding
The corresponding pixel value of each pixel in second processing image is corresponded to the enlarged drawing of the determination original image first direction
Second processing image.
5. mobile terminal according to claim 1 or 2, which is characterized in that the controller in a second direction, to described
Original image enlarged drawing in a first direction and corresponding second processing image obtain the original image most into row interpolation
Whole enlarged drawing refers to:
When the first direction is the line direction of pixel, the controller determine be located at the 2nd in final enlarged drawing ×
H-1 rows, w row pixel pixel value be equal to third pixel value and the 4th pixel value and value, and determination is finally being amplified
Pixel value in image positioned at 2 × h rows, the w pixel arranged is equal to the difference of third pixel value and the 4th pixel value,
In, the third pixel value is the picture for being located at h rows, the pixel that w is arranged in the enlarged drawing of original image first direction
Element value, the 4th pixel value are to be located at h in the corresponding second processing image of enlarged drawing of original image first direction
The pixel value for the pixel that row, w are arranged, wherein h, w are the integer more than or equal to 0;
Each pixel in controller searching loop enlarged drawing in a first direction and corresponding second processing image,
The pixel value of each pixel in final enlarged drawing is obtained, to determine the final enlarged drawing of original image;
Alternatively,
When the first direction is the column direction of pixel, the controller determine be located in final enlarged drawing h rows,
The pixel value of the pixel of 2 × w-1 row is equal to third pixel value and the 4th pixel value and value, and determine in final enlarged drawing
It is located at h rows as in, the pixel value for the pixel that 2 × w is arranged is equal to the difference of third pixel value and the 4th pixel value, wherein
The third pixel value is the pixel for being located at h rows, the pixel that w is arranged in the enlarged drawing of original image first direction
Value, the 4th pixel value be in the corresponding second processing image of enlarged drawing of original image first direction be located at h rows,
The pixel value of the pixel of w row, wherein h, w are the integer more than or equal to 0;
Each pixel in controller searching loop enlarged drawing in a first direction and corresponding second processing image,
The pixel value of each pixel in final enlarged drawing is obtained, to determine the final enlarged drawing of original image.
6. a kind of image processing method, which is characterized in that including:
Input unit inputs pending original image;
Controller determines the corresponding first processing image of the original image;In a first direction, to the original image and right
The the first processing image answered obtains the enlarged drawing of the original image in a first direction into row interpolation;
Controller determines the corresponding second processing image of the enlarged drawing of the original image in a first direction;In second direction
On, to original image enlarged drawing in a first direction and corresponding second processing image into row interpolation, obtain the original
The final enlarged drawing of beginning image;
Wherein, the first direction is perpendicular to the second direction;
The controller determines the corresponding first processing image of the original image, including:
The controller is according to the pixel (h, w) and left and right sides pixel for being located at h rows, w row in the original image
The pixel value of point determines that the pixel value positioned at h rows, the w pixel arranged in corresponding first processing image is:
P1_high (h, w)=(2 × P1 (h, w)-P1 (h, w-1)-P1 (h, w+1))/4,
Wherein, P1_high (h, w) indicates the picture for being located at h rows, w row in the corresponding first processing image of the original image
The pixel value of vegetarian refreshments, P1 (h, w) indicate the pixel value for being located at h rows, the pixel (h, w) that w is arranged in the original image, P1
(h, w-1) indicates that the pixel value of the leftmost pixel point of the pixel in the original image, P1 (h, w+1) indicate in the original image
The pixel value of the right pixels point of the pixel, h and w are the integer more than or equal to 0;
Each pixel in original image described in the controller searching loop obtains each in corresponding first processing image
The corresponding pixel value of pixel, with the corresponding first processing image of the determination original image.
7. according to the method described in claim 6, it is characterized in that, the first direction is the line direction of pixel, described the
Two directions are the column direction of pixel;Alternatively, the first direction is the column direction of pixel, the second direction is pixel
Line direction.
8. the method described according to claim 6 or 7, which is characterized in that the controller in a first direction, to described original
Image and corresponding first processing image obtain the enlarged drawing of the original image in a first direction into row interpolation, including:
When the first direction is the line direction of pixel, the controller determines to be located in enlarged drawing in a first direction
H rows, 2 × w-1 row pixel pixel value be equal to the first pixel value and the second pixel value and value, and determine first
It is located at h rows in the enlarged drawing in direction, the pixel value for the pixel that 2 × w is arranged is equal to the first pixel value and the second pixel value
Difference, wherein first pixel value be in the original image be located at h rows, w arrange pixel pixel value,
Second pixel value is the picture for being located at h rows, the pixel that w is arranged in the corresponding first processing image of the original image
Element value, wherein h, w are the integer more than or equal to 0;
Original image described in the controller searching loop and each pixel in corresponding first processing image, obtain the
The pixel value of each pixel in the enlarged drawing in one direction, to determine the enlarged drawing of original image in a first direction;
Alternatively,
When the first direction is the column direction of pixel, the controller determines to be located in enlarged drawing in a first direction
2 × h-1 rows, w row pixel pixel value be equal to the first pixel value and the second pixel value and value, and determine first
It is located at 2 × h rows in the enlarged drawing in direction, the pixel value for the pixel that w is arranged is equal to the first pixel value and the second pixel value
Difference, wherein first pixel value be in the original image be located at h rows, w arrange pixel pixel value,
Second pixel value is the picture for being located at h rows, the pixel that w is arranged in the corresponding first processing image of the original image
Element value, wherein h, w are the integer more than or equal to 0;
Original image described in the controller searching loop and each pixel in corresponding first processing image, obtain the
The pixel value of each pixel in the enlarged drawing in one direction, to determine the enlarged drawing of original image in a first direction.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510843545.3A CN105427247B (en) | 2015-11-26 | 2015-11-26 | A kind of mobile terminal and image processing method of image procossing |
PCT/CN2016/105707 WO2017088679A1 (en) | 2015-11-26 | 2016-11-14 | Image-processing mobile terminal and image processing method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510843545.3A CN105427247B (en) | 2015-11-26 | 2015-11-26 | A kind of mobile terminal and image processing method of image procossing |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105427247A CN105427247A (en) | 2016-03-23 |
CN105427247B true CN105427247B (en) | 2018-08-24 |
Family
ID=55505429
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510843545.3A Active CN105427247B (en) | 2015-11-26 | 2015-11-26 | A kind of mobile terminal and image processing method of image procossing |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN105427247B (en) |
WO (1) | WO2017088679A1 (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105427247B (en) * | 2015-11-26 | 2018-08-24 | 努比亚技术有限公司 | A kind of mobile terminal and image processing method of image procossing |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1246242A (en) * | 1996-12-20 | 2000-03-01 | 韦斯特福德技术公司 | Improved estimator for recovering high frequency components from compressed image data |
CN101815157A (en) * | 2009-02-24 | 2010-08-25 | 虹软(杭州)科技有限公司 | Image and video amplification method and relevant image processing device |
EP2544144A1 (en) * | 2010-03-01 | 2013-01-09 | Sharp Kabushiki Kaisha | Image enlargement device, image enlargement program, memory medium on which an image enlargement program is stored, and display device |
CN103500436A (en) * | 2013-09-17 | 2014-01-08 | 广东威创视讯科技股份有限公司 | Image super-resolution processing method and system |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104853059B (en) * | 2014-02-17 | 2018-12-18 | 台达电子工业股份有限公司 | Super-resolution image processing method and its device |
CN104134189B (en) * | 2014-07-31 | 2017-07-28 | 青岛海信电器股份有限公司 | A kind of method and device of image amplification |
CN105427247B (en) * | 2015-11-26 | 2018-08-24 | 努比亚技术有限公司 | A kind of mobile terminal and image processing method of image procossing |
-
2015
- 2015-11-26 CN CN201510843545.3A patent/CN105427247B/en active Active
-
2016
- 2016-11-14 WO PCT/CN2016/105707 patent/WO2017088679A1/en active Application Filing
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1246242A (en) * | 1996-12-20 | 2000-03-01 | 韦斯特福德技术公司 | Improved estimator for recovering high frequency components from compressed image data |
CN101815157A (en) * | 2009-02-24 | 2010-08-25 | 虹软(杭州)科技有限公司 | Image and video amplification method and relevant image processing device |
EP2544144A1 (en) * | 2010-03-01 | 2013-01-09 | Sharp Kabushiki Kaisha | Image enlargement device, image enlargement program, memory medium on which an image enlargement program is stored, and display device |
CN103500436A (en) * | 2013-09-17 | 2014-01-08 | 广东威创视讯科技股份有限公司 | Image super-resolution processing method and system |
Non-Patent Citations (4)
Title |
---|
Image Zooming Using Wavelet Transform;HUDA NAWAF等;《Proceedings of the 5th WSEAS Int. Conf. on System Science and Simulation in Engineering》;20061218;全文 * |
Remote Sensing Image Resolution Enlargement Algorithm Based on Wavelet Transformation;Samiul Azam等;《I.J. Image, Graphics and Signal Processing》;20140603;全文 * |
一种基于小波分量相似性的图像放大方法;邢国波等;《计算机与数字工程》;20071231;第35卷(第4期);全文 * |
小波分解在图像放大缩小中的应用;王炜等;《计算机工程与应用》;20000531;全文 * |
Also Published As
Publication number | Publication date |
---|---|
WO2017088679A1 (en) | 2017-06-01 |
CN105427247A (en) | 2016-03-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104866265B (en) | Multi-media file display method and device | |
CN105045509B (en) | A kind of device and method of editing picture | |
CN104850799B (en) | The method and mobile terminal of a kind of data in hiding mobile terminal | |
CN104967802A (en) | Mobile terminal, recording method of screen multiple areas and recording device of screen multiple areas | |
CN106569539B (en) | A kind of method and device, the terminal of bias voltage compensation | |
CN106550128A (en) | A kind of EMS memory management process and terminal | |
CN104657482A (en) | Method for displaying application interface and terminal | |
CN105631370B (en) | Region screen locking method and mobile terminal | |
CN105430258B (en) | A kind of method and apparatus of self-timer group photo | |
CN105160628A (en) | Method and device for acquiring RGB data | |
CN106851003A (en) | The method and device of text color is adjusted according to wallpaper color | |
CN106953979A (en) | The method and device that a kind of double antenna in call intelligently switches | |
CN106028090A (en) | Mobile terminal and video recording method thereof | |
CN105573916B (en) | Fault detection method and mobile terminal | |
CN104735254B (en) | terminal screen locking method and system | |
CN106657579A (en) | Content sharing method, device and terminal | |
CN106130981A (en) | The self-defined device and method of digital label of augmented reality equipment | |
CN104935822A (en) | Method and device for processing images | |
CN104731484B (en) | The method and device that picture is checked | |
CN106791149A (en) | A kind of method of mobile terminal and control screen | |
CN106875347A (en) | A kind of picture processing device and method | |
CN105487710B (en) | Screen video recorder and method based on pressure screen | |
CN106569670A (en) | Application processing apparatus and method | |
CN104732218B (en) | The method and device that image is shown | |
CN105427247B (en) | A kind of mobile terminal and image processing method of image procossing |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |