CN106775749B - The processing method and processing device of image - Google Patents
The processing method and processing device of image Download PDFInfo
- Publication number
- CN106775749B CN106775749B CN201611247907.3A CN201611247907A CN106775749B CN 106775749 B CN106775749 B CN 106775749B CN 201611247907 A CN201611247907 A CN 201611247907A CN 106775749 B CN106775749 B CN 106775749B
- Authority
- CN
- China
- Prior art keywords
- image
- code
- image display
- set image
- unit
- 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
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/70—Software maintenance or management
- G06F8/73—Program documentation
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Library & Information Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Debugging And Monitoring (AREA)
Abstract
The invention discloses a kind of processing method and processing devices of image, it is related to technical field of image processing, main purpose is to solve in the prior art to be treated in journey image in image processing program, it needs frequently, repeatedly adjust Image Processing parameter, and image display effect adjusted is checked by image viewing tool, so that image processing process is cumbersome, the lower problem of image processing efficiency.Technical solution of the present invention includes: to be treated in journey in image processing program to pre-set image, and whether monitoring image processing code executes to debugging breakpoints;If it is determined that image procossing is executed to debugging breakpoints, then suspend the execution of image procossing code, and obtains the corresponding image display parameters of pre-set image;Image display parameters are sent to image display unit, to show pre-set image according to image display parameters in image display unit;It is waiting receive the executing instruction of image procossing code after, image procossing code is continued to execute from debugging breakpoints.
Description
Technical field
The present invention relates to technical field of image processing, more particularly to a kind of processing method and processing device of image.
Background technique
Along with the fast development of image processing techniques, the type of image, the acquisition of image and to acquired image into
The mode of row processing is more and more abundant.
Currently, developer is when being analyzed and processed image by image processing program, it will usually repeatedly adjust
Image Processing parameter, display effect after Image Adjusting, after checking image procossing;When checking image display effect, need
Image adjusted in image processing program is saved as into image file, image viewing tool open is reused, checks image
File.But in practical applications, image is treated in journey in image processing program, needs frequently, repeatedly to adjust
Image Processing parameter, and image display effect adjusted is checked by the above method, so that image processing process is cumbersome, image
Treatment effeciency is lower.
Summary of the invention
In view of this, a kind of processing method and processing device of image provided by the invention, main purpose is to solve existing skill
Image is treated in journey in image processing program in art, needs frequently, repeatedly adjust Image Processing parameter, Yi Jitong
It crosses image viewing tool and checks image display effect adjusted, so that image processing process is cumbersome, image processing efficiency is lower
The problem of.
According to the present invention on one side, the present invention provides a kind of processing methods of image, comprising:
Pre-set image is treated in journey in image processing program, whether monitoring image processing code executes to debugging
At breakpoint;
If it is determined that described image processing is executed to the debugging breakpoints, then suspend the execution of described image processing code,
And obtain the corresponding image display parameters of the pre-set image;
Described image display parameters are sent to image display unit, so as in described image display component according to
Image display parameters show the pre-set image;
It is waiting receive the executing instruction of image procossing code after, image procossing generation is continued to execute from the debugging breakpoints
Code.
Optionally, the method also includes:
Whether monitoring described image display component receives the operational order to the pre-set image;
If it is determined that receiving the operational order to the pre-set image in described image display component, then obtain to described pre-
If the operational order of image, and execute the operational order of the pre-set image.
Optionally, it executes and includes: to the operational order of the pre-set image
If the operational order is that the modification to the pre-set image instructs, modified pre-set image is deposited
Storage, and modified pre-set image is shown in described image display component;
If the operational order is to zoom in or out instruction to the pre-set image, the basis in image display unit
The multiple that zooms in or out shows corresponding pre-set image.
Optionally, after being stored modified pre-set image, the method also includes:
It monitors whether to trigger the out code to image display unit;
Trigger out code to described image display component if monitoring, by the modified pre-set image of storage into
Row is removed.
Optionally, before whether monitoring image processing code executes to debugging breakpoints, the method also includes:
The debugging breakpoints are added in described image processing code.
Optionally, the method also includes:
If not receiving executing instruction for described image processing code, described image processing code is adjusted again
Examination.
Optionally, obtaining the corresponding image display parameters of the pre-set image includes:
Obtain the default storage address of the pre-set image in memory;
Described image display parameters are obtained according to the default storage address;Wherein, described image display parameters include: to deposit
Store up initial address, pre-set image width, pre-set image height and the pre-set image color of pre-set image.
According to the present invention on the other hand, the present invention provides a kind of processing units of image, comprising:
Monitoring unit, for being treated in journey in image processing program to pre-set image, monitoring image handles code
Whether execute to debugging breakpoints;
Pause unit, for when the monitoring unit determines that described image processing is executed at the debugging breakpoints, temporarily
Stop the execution of described image processing code;
First acquisition unit, for obtaining the corresponding image display parameters of the pre-set image;
Transmission unit, the described image display parameters for obtaining the first acquisition unit are sent to image display group
Part, to show the pre-set image according to described image display parameters in described image display component;
Processing unit, for it is waiting receive the executing instruction of image procossing code after, continue to hold from the debugging breakpoints
Row image procossing code.
Optionally, described device further include:
Monitoring unit, for monitoring whether described image display component receives operational order to the pre-set image;
Second acquisition unit, for being received in described image display component when the monitoring unit determines to described default
When the operational order of image, the operational order to the pre-set image is obtained;
Execution unit, for executing the operational order for the pre-set image that the second acquisition unit is got.
Optionally, the execution unit includes:
Memory module will be modified pre- when for being the modification instruction to the pre-set image when the operational order
If image is stored;
First display module, for showing modified pre-set image in described image display component;
Second display module, for when the operational order is the In to the pre-set image when zooming in or out instruction
Corresponding pre-set image is shown according to the multiple that zooms in or out in image display unit.
Optionally, the execution unit further include:
Monitoring module, for monitoring whether to touch after the memory module is stored modified pre-set image
Send out the out code to image display unit;
Module is removed, for when the monitoring module monitors triggering to the out code of described image display component,
The modified pre-set image of storage is purged.
Optionally, described device further include:
Adding unit, for the monitoring unit monitoring image processing code whether execute to debugging breakpoints before,
The debugging breakpoints are added in described image processing code.
Optionally, described device further include:
Debugging unit, for when do not receive described image processing when executing instruction of code, again to described image at
Reason code is debugged.
Optionally, first acquisition unit includes:
First obtains module, for obtaining the default storage address of the pre-set image in memory;
Second obtains module, obtains the figure for obtaining the default storage address that module obtains according to described first
As display parameters;Wherein, described image display parameters include: the initial address for storing pre-set image, pre-set image width, preset
Picture altitude and pre-set image color.
By above-mentioned technical proposal, a kind of processing method and processing device of image provided by the invention, in image processing program
Pre-set image is treated in journey, whether monitoring image processing code executes to debugging breakpoints;If it is determined that described image
Processing is executed to the debugging breakpoints, then suspends the execution of described image processing code, and it is corresponding to obtain the pre-set image
Image display parameters;Described image display parameters are sent to image display unit, so as in described image display component
The pre-set image is shown according to described image display parameters;It is waiting receive the executing instruction of image procossing code after, from described
Image procossing code is continued to execute at debugging breakpoints;Compared with prior art, the embodiment of the present invention is capable of seeing for quicklook
Processing result image at each debugging breakpoints reduces to modify in debugging process, compile, store, checking etc. repeating step repeatedly,
Image processing step is simplified, image processing efficiency is improved.
The above description is only an overview of the technical scheme of the present invention, in order to better understand the technical means of the present invention,
And it can be implemented in accordance with the contents of the specification, and in order to allow above and other objects of the present invention, feature and advantage can
It is clearer and more comprehensible, the followings are specific embodiments of the present invention.
Detailed description of the invention
By reading the following detailed description of the preferred embodiment, various other advantages and benefits are common for this field
Technical staff will become clear.The drawings are only for the purpose of illustrating a preferred embodiment, and is not considered as to the present invention
Limitation.And throughout the drawings, the same reference numbers will be used to refer to the same parts.In the accompanying drawings:
Fig. 1 shows a kind of flow chart of the processing method of image provided in an embodiment of the present invention;
Fig. 2 shows the flow charts of the processing method of another image provided in an embodiment of the present invention;
Fig. 3 shows a kind of schematic diagram of the code screenshot of image processing program provided in an embodiment of the present invention;
Fig. 4 shows a kind of schematic diagram of pre-set image Memory Data Display provided in an embodiment of the present invention;
Fig. 5 shows a kind of schematic diagram that pre-set image is shown in image display unit provided in an embodiment of the present invention;
Fig. 6 shows a kind of composition block diagram of the processing unit of image provided in an embodiment of the present invention;
Fig. 7 shows the composition block diagram of the processing unit of another image provided in an embodiment of the present invention.
Specific embodiment
Exemplary embodiments of the present disclosure are described in more detail below with reference to accompanying drawings.Although showing the disclosure in attached drawing
Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here
It is limited.On the contrary, these embodiments are provided to facilitate a more thoroughly understanding of the present invention, and can be by the scope of the present disclosure
It is fully disclosed to those skilled in the art.
The embodiment of the present invention provides a kind of processing method of image, and the method is applied in image processing program, such as Fig. 1
It is shown, which comprises
101, pre-set image is treated in journey in image processing program, monitoring image processing code whether execute to
At debugging breakpoints.
Image procossing described in the embodiment of the present invention refers to the treatment process executed by image processing program, is normally applied
It is used during developer develops image processing software, during can also be applied to ordinary user's processing image;With
Lower example is illustrated so that developer debugs the application scenarios of image as an example, still, it is understood that, this kind illustrates mode
It is not intended to and limits concrete application scene of the invention;It is not construed as limiting specifically, the embodiment of the present invention is applied to scene,
In the prior art, when developer needs to check the effect that image procossing arrives, needing will be in image processing program
Image adjusted saves as image file, reuses image viewing tool open, checks image file, reaches requirement to image
Afterwards, continue to handle down, circuit sequentially back and forth, until having executed all steps, operating process is cumbersome, low efficiency.To solve
The problems of the prior art, in the embodiment of the present invention, when executing image analysis debugging, hair opens personnel first in image procossing generation
Debugging breakpoints are added in code, which is used for when image processing program is gone at the debugging breakpoints, suspends at image
Manage the execution of code.
Theoretically any position in image procossing code can be set in debugging breakpoints, still, in actual mechanical process
In, it will usually being set to debugging breakpoints has at the position of material change pre-set image, for example, debugging breakpoints are set to figure
As processing code 1 position at, image procossing code 1 for changing image color;Alternatively, debugging breakpoints are set to image
At the position for handling code 2, image procossing code 2 is for changing the size etc. of pre-set image, and the embodiment of the present invention is to debugging
Position of the breakpoint in image processing program is not construed as limiting.
102, if it is determined that described image processing is executed to the debugging breakpoints, then image processing program suspends described image
The execution of code is handled, and obtains the corresponding image display parameters of the pre-set image.
Execute whether monitoring image processing code executes to debugging breakpoints in step 101, if not monitoring at image
The debugging breakpoints in code are managed, then continue to execute monitoring;It, will be running if image procossing code is executed to debugging breakpoints
Image procossing code is suspended, meanwhile, image processing program obtains the corresponding image display parameters of pre-set image, and the present invention is real
It applies in example, described image display parameters may include but be not limited to the following contents, such as: store the starting point of pre-set image
Location, pre-set image width, pre-set image height and pre-set image color etc., the embodiment of the present invention does not make image display parameters
It is specific to limit.
In the embodiment of the present invention, the purpose for obtaining the corresponding image display parameters of pre-set image is, replaces the prior art
In, the needs of use store the pre-set image after debugging, simplify debugging image step.
103, described image display parameters are sent to image display unit by image processing program.
In embodiments of the present invention, an image display unit is provided, is used to be shown according to described image display parameters
The pre-set image, substitution check pre-set image by image viewing tool in the prior art, are capable of the display figure of quicklook
As handling corresponding effect, to find the problem of being likely to occur in pre-set image debugging process in time, debugging step is reduced.
It should be noted that image display unit complements each other during operation with image processing program, in practical application
In, it can be using image display unit as a part of image processing program, alternatively, can also be by image processing program and image
Display component is as two independent operation programs, specifically, the embodiment of the present invention is not construed as limiting this.
104, it is waiting receive the executing instruction of image procossing code after, image processing program continues from the debugging breakpoints
Execute image procossing code.
In step 103, pre-set image is shown in image display unit, and developer checks the debugging of pre-set image
After effect, it will continue to execute any operation in two operations, one is: the pre-set image shown in image display unit reaches
After debugging effect, continuation executes down, says that the execution for needing to receive image procossing code refers to from image procossing code angle
Enable, it is waiting receive the executing instruction of image procossing code after, image procossing code is continued to execute from the debugging breakpoints.Second
Kind is: the pre-set image shown in image display unit is to reach debugging effect, needs to carry out the operation executed in the step
Again it debugs, arrived the demand of developer, said from image procossing code angle, if not receiving described image processing code
Execute instruction, alternatively, receive the modification to image procossing code instruction, then according to the modification of image procossing code instruct weight
Newly described image processing code is debugged.
A kind of processing method of image provided in an embodiment of the present invention, is handled pre-set image in image processing program
In the process, whether monitoring image processing code executes to debugging breakpoints;If it is determined that described image processing is executed to the debugging
At breakpoint, then suspend the execution of described image processing code, and obtains the corresponding image display parameters of the pre-set image;By institute
State image display parameters and be sent to image display unit, so as in described image display component according to described image display parameters
Show the pre-set image;It is waiting receive the executing instruction of image procossing code after, continue to execute figure from the debugging breakpoints
As processing code;Compared with prior art, the embodiment of the present invention is capable of the image of quicklook seen at each debugging breakpoints
Processing result reduces to modify in debugging process, compile, store, checking etc. repeating step repeatedly, simplifies image processing step,
Improve image processing efficiency.
The efficiency of pre-set image, image display group provided in an embodiment of the present invention are debugged in order to further enhance developer
Part not only provides the function of display pre-set image, additionally provides interim modification function, according to default in image display unit
The interim modification of image is checked its display effect that can reach, according to the display effect of pre-set image, then is gone to image procossing
Code is debugged, and debugging step is substantially reduced, and when realizing above-mentioned purpose, may be employed without limitation of the following method,
The embodiment of the present invention also provides a kind of processing method of image, as shown in Fig. 2, shown method includes:
201, the debugging breakpoints are added in described image processing code.
When the embodiment of the present invention adds the debugging breakpoints in described image processing code, by developer according to its warp
Addition debugging breakpoints manually are tested, but, when adding debugging breakpoints, the principle relied on is: pre-set image can changed
Debugging breakpoints are added after corresponding image procossing code, for example, adding debugging breakpoints at the black-white colors of change pre-set image;
Debugging breakpoints are added at filtering effects for example, adding in pre-set image.It can be set one in an image processing program
Multiple debugging breakpoints also can be set in debugging breakpoints, specifically, placement location and number of the embodiment of the present invention to debugging breakpoints
It is not construed as limiting.
202, pre-set image is treated in journey in image processing program, monitoring image processing code whether execute to
(former step 101) at debugging breakpoints.
If it is determined that described image processing is executed to the debugging breakpoints, 203 are thened follow the steps;If it is determined that at described image
Reason is not carried out to the debugging breakpoints, thens follow the steps 204.
Illustratively, as shown in figure 3, Fig. 3 shows a kind of code of image processing program provided in an embodiment of the present invention
The schematic diagram of screenshot is used to carry out noise abatement to pre-set image by the algorithm of gaussian filtering in code, so that pre-set image is more clear
It is clear, a debugging breakpoints are set at position as shown in Figure 3, when image procossing code is executed to debugging breakpoints, are executed
Step 203.It should be noted that the embodiment of the present invention is not construed as limiting adjustment method of the image processing program to pre-set image,
The setting position of debugging breakpoints is also not especially limited.
203, the execution of pause described image processing code, and obtain the corresponding image display parameters of the pre-set image
(former step 102).
In the corresponding image display parameters of image processing program acquisition pre-set image, may be employed without limitation of following
Mode, such as: firstly, obtaining the default storage address of the pre-set image in memory;Secondly, image processing program is according to institute
It states default storage address and obtains described image display parameters.
It should be noted that the default storage address can be the scheduled global buffer address of image processing program,
Be also possible to be dynamically assigning to the image buffers regional address on heap, still, regardless of default storage address specifically where, should all
For the corresponding memory of image processing program.In this way, just can be improved the speed that image processing program obtains image display parameters, into
And improve the debugging speed of pre-set image;The embodiment of the present invention is not construed as limiting default storage address.
In practical applications, pre-set image be in the form of pixel existing for, it is corresponding to store pre-set image in memory
Image display parameters be also to be stored in the form of byte, can't be carried out to the form that can identify of developer's naked eyes
Storage, then needing based on image display unit for the ease of allowing developer to can recognize that pre-set image according to image
Display parameters show to carry out the reduction of pre-set image.
Image display parameters described in the embodiment of the present invention include: that store the initial address of pre-set image, pre-set image wide
Degree, pre-set image height and pre-set image color;Wherein, the initial address of pre-set image is stored as in storage pre-set image first
The address of a pixel, pre-set image width, pre-set image height and pre-set image color are practical in image display unit
The image parameter of display.In practical applications, the pre-set image color is the expression of rgb color mode.As shown in figure 4, Fig. 4 shows
A kind of schematic diagram of pre-set image Memory Data Display provided in an embodiment of the present invention is gone out, it should be noted that Fig. 3 is exemplary
Citing, the embodiment of the present invention is not construed as limiting the particular content of Memory Data Display.
204, continue to execute whether monitoring image processing code executes to debugging breakpoints.
205, described image display parameters are sent to image display unit, so as to the basis in described image display component
Described image display parameters show the pre-set image (former step 103).
It is carried out by the image display parameters of the corresponding pre-set image of Fig. 3 in memory, and according to those image display parameters
The display of pre-set image is shown in image display unit as shown in figure 5, Fig. 5 shows one kind provided in an embodiment of the present invention
The schematic diagram of pre-set image, developer can check whether the debugging of image processing program reaches pre- in the image display unit
Phase, specifically, the embodiment of the present invention is not construed as limiting the particular content of the pre-set image shown in image display unit.
It should be noted that the different digital for including in schematic diagram described in Fig. 3 and Fig. 4 its be designated as in pre-set image respectively
The color depth of a pixel, is indicated using RGB;It is pre- storing or showing as another implementation of the embodiment of the present invention
If when image, directly displaying black solid dot, and using corresponding description file to pixel different in default file
Color depth is described, specifically, the embodiment of the present invention is not construed as limiting the storage of image display parameters, display form.
206, it is waiting receive the executing instruction of image procossing code after, continue to execute image procossing from the debugging breakpoints
Code (former step 104).
If 207, not receiving executing instruction for described image processing code, described image processing code is carried out again
Debugging.
208, whether monitoring described image display component receives the operational order to the pre-set image.
Image display unit provided in an embodiment of the present invention allows the interim processing operation of developer, for example, to display
Pre-set image amplify, or reduce check, alternatively, can also be modification to pre-set image etc. temporarily operate, wherein
It may include but be not limited to cutting to pre-set image, filling, editor etc. to the modification of pre-set image.
209, it if it is determined that receiving the operational order to the pre-set image in described image display component, then obtains to institute
The operational order of pre-set image is stated, and executes the operational order of the pre-set image.
If the operational order is that the modification to the pre-set image instructs, modified pre-set image is deposited
Storage, and modified pre-set image is shown in described image display component;If the operational order is to the pre-set image
Zoom in or out instruction, then corresponding pre-set image is shown according to the multiple that zooms in or out in image display unit.
210, it monitors whether to trigger the out code to image display unit.
The interim processing operation having the function of in image display unit provided in an embodiment of the present invention, still, in exploit person
Member carries out after temporarily handling pre-set image in image display unit, can not synchronize in representative image processing routine and execute response
The change of image procossing code, the function are only limitted to the interim modification to pre-set image in image display unit, may be to exploitation
Personnel provide reference when debugging image procossing code, but image procossing code essence is not modified.I.e. to image display unit
Being revised as middle pre-set image is primary effective, if wanting to make the modification of pre-set image permanently effective, needs to image procossing code
It modifies.
If the out code triggered to described image display component 211, is monitored, by the modified default figure of storage
As being purged.
After out code of the step 210 monitoring developer triggering to described image display component, by the modification of storage
Pre-set image afterwards is purged, i.e., under the premise of the corresponding image procossing code of pre-set image is unmodified, again in image
It when showing the pre-set image in display component or the corresponding image of image procossing code, rather than is in image display unit
The image temporarily modified.
Further, as the realization to method shown in above-mentioned Fig. 1, another embodiment of the present invention additionally provides a kind of image
Processing unit.The Installation practice is corresponding with preceding method embodiment, and to be easy to read, present apparatus embodiment is no longer to aforementioned
Detail content in embodiment of the method is repeated one by one, it should be understood that before the device in the present embodiment can correspond to realization
State the full content in embodiment of the method.
The embodiment of the present invention provides a kind of processing unit of image, as shown in fig. 6, described device includes:
Monitoring unit 31, for being treated in journey in image processing program to pre-set image, monitoring image handles generation
Whether code executes to debugging breakpoints;
Pause unit 32, for determining that described image processing is executed to the debugging breakpoints when the monitoring unit 31
When, the execution of pause described image processing code;
First acquisition unit 33, for obtaining the corresponding image display parameters of the pre-set image;
Transmission unit 34, the described image display parameters for obtaining the first acquisition unit 33 are sent to image and show
Show component, to show the pre-set image according to described image display parameters in described image display component;
Processing unit 35, for it is waiting receive the executing instruction of image procossing code after, continue from the debugging breakpoints
Execute image procossing code.
Further, as shown in fig. 7, described device further include:
Whether monitoring unit 36 refers to the operation of the pre-set image for monitoring described image display component and receiving
It enables;
Second acquisition unit 37, for receiving when the monitoring unit 36 determines in described image display component to described
When the operational order of pre-set image, the operational order to the pre-set image is obtained;
Execution unit 38, for executing the operational order for the pre-set image that the second acquisition unit 37 is got.
Further, as shown in fig. 7, the execution unit 38 includes:
Memory module 381 will be modified when for being the modification instruction to the pre-set image when the operational order
Pre-set image is stored;
First display module 382, for showing modified pre-set image in described image display component;
Second display module 383, for when the operational order be to the pre-set image when zooming in or out instruction,
Corresponding pre-set image is shown according to the multiple that zooms in or out in image display unit.
Further, as shown in fig. 7, the execution unit 38 further include:
Monitoring module 384, for monitoring after the memory module 381 is stored modified pre-set image
Whether out code to image display unit is triggered;
Module 385 is removed, for referring to when the monitoring module 384 monitors triggering to the closing of described image display component
When enabling, the modified pre-set image of storage is purged.
Further, as shown in fig. 7, described device further include:
Adding unit 39, for 31 monitoring image of monitoring unit processing code whether execute at debugging breakpoints it
Before, the debugging breakpoints are added in described image processing code.
Further, as shown in fig. 7, described device further include:
Debugging unit 310, for when do not receive described image processing when executing instruction of code, again to described image
Processing code is debugged.
Further, as shown in fig. 7, first acquisition unit 33 includes:
First obtains module 331, for obtaining the default storage address of the pre-set image in memory;
Second obtains module 332, obtains for obtaining the default storage address that module 331 obtains according to described first
Described image display parameters;Wherein, described image display parameters include: that store the initial address of pre-set image, pre-set image wide
Degree, pre-set image height and pre-set image color.
A kind of processing unit of image provided in an embodiment of the present invention, is handled pre-set image in image processing program
In the process, whether monitoring image processing code executes to debugging breakpoints;If it is determined that described image processing is executed to the debugging
At breakpoint, then suspend the execution of described image processing code, and obtains the corresponding image display parameters of the pre-set image;By institute
State image display parameters and be sent to image display unit, so as in described image display component according to described image display parameters
Show the pre-set image;It is waiting receive the executing instruction of image procossing code after, continue to execute figure from the debugging breakpoints
As processing code;Compared with prior art, the embodiment of the present invention is capable of the image of quicklook seen at each debugging breakpoints
Processing result reduces to modify in debugging process, compile, store, checking etc. repeating step repeatedly, simplifies image processing step,
Improve image processing efficiency.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, there is no the portion being described in detail in some embodiment
Point, reference can be made to the related descriptions of other embodiments.
It is understood that the correlated characteristic in the above method and device can be referred to mutually.In addition, in above-described embodiment
" first ", " second " etc. be and not represent the superiority and inferiority of each embodiment for distinguishing each embodiment.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description,
The specific work process of device and unit, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
Algorithm and display are not inherently related to any particular computer, virtual system, or other device provided herein.
Various general-purpose systems can also be used together with teachings based herein.As described above, it constructs required by this kind of system
Structure be obvious.In addition, the present invention is also not directed to any particular programming language.It should be understood that can use various
Programming language realizes summary of the invention described herein, and the description done above to language-specific is to disclose this hair
Bright preferred forms.
In the instructions provided here, numerous specific details are set forth.It is to be appreciated, however, that implementation of the invention
Example can be practiced without these specific details.In some instances, well known method, structure is not been shown in detail
And technology, so as not to obscure the understanding of this specification.
Similarly, it should be understood that in order to simplify the disclosure and help to understand one or more of the various inventive aspects, In
Above in the description of exemplary embodiment of the present invention, each feature of the invention is grouped together into single implementation sometimes
In example, figure or descriptions thereof.However, the disclosed method should not be interpreted as reflecting the following intention: i.e. required to protect
Shield the present invention claims features more more than feature expressly recited in each claim.More precisely, as following
Claims reflect as, inventive aspect is all features less than single embodiment disclosed above.Therefore,
Thus the claims for following specific embodiment are expressly incorporated in the specific embodiment, wherein each claim itself
All as a separate embodiment of the present invention.
Those skilled in the art will understand that can be carried out adaptively to the module in the equipment in embodiment
Change and they are arranged in one or more devices different from this embodiment.It can be the module or list in embodiment
Member or component are combined into a module or unit or component, and furthermore they can be divided into multiple submodule or subelement or
Sub-component.Other than such feature and/or at least some of process or unit exclude each other, it can use any
Combination is to all features disclosed in this specification (including adjoint claim, abstract and attached drawing) and so disclosed
All process or units of what method or apparatus are combined.Unless expressly stated otherwise, this specification is (including adjoint power
Benefit require, abstract and attached drawing) disclosed in each feature can carry out generation with an alternative feature that provides the same, equivalent, or similar purpose
It replaces.
In addition, it will be appreciated by those of skill in the art that although some embodiments described herein include other embodiments
In included certain features rather than other feature, but the combination of the feature of different embodiments mean it is of the invention
Within the scope of and form different embodiments.For example, in the following claims, embodiment claimed is appointed
Meaning one of can in any combination mode come using.
Various component embodiments of the invention can be implemented in hardware, or to run on one or more processors
Software module realize, or be implemented in a combination thereof.It will be understood by those of skill in the art that can be used in practice
Microprocessor or digital signal processor (DSP) realize the denomination of invention according to an embodiment of the present invention (as determined in website
The device of Hyperlink rank) in some or all components some or all functions.The present invention is also implemented as being used for
Some or all device or device programs of method as described herein are executed (for example, computer program and calculating
Machine program product).It is such to realize that program of the invention can store on a computer-readable medium, or can have one
Or the form of multiple signals.Such signal can be downloaded from an internet website to obtain, or be provided on the carrier signal,
Or it is provided in any other form.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and ability
Field technique personnel can be designed alternative embodiment without departing from the scope of the appended claims.In the claims,
Any reference symbol between parentheses should not be configured to limitations on claims.Word "comprising" does not exclude the presence of not
Element or step listed in the claims.Word "a" or "an" located in front of the element does not exclude the presence of multiple such
Element.The present invention can be by means of including the hardware of several different elements and being come by means of properly programmed computer real
It is existing.In the unit claims listing several devices, several in these devices can be through the same hardware branch
To embody.The use of word first, second, and third does not indicate any sequence.These words can be explained and be run after fame
Claim.
Claims (14)
1. a kind of processing method of image characterized by comprising
Pre-set image is treated in journey in image processing program, whether monitoring image processing code executes to debugging breakpoints
Place;
If it is determined that described image processing is executed to the debugging breakpoints, then suspend the execution of described image processing code, and obtains
Take the corresponding image display parameters of the pre-set image;
Described image display parameters are sent to image display unit, so as in described image display component according to described image
Display parameters show the pre-set image;
It is waiting receive the executing instruction of image procossing code after, image procossing code is continued to execute from the debugging breakpoints.
2. the method according to claim 1, wherein the method also includes:
Whether monitoring described image display component receives the operational order to the pre-set image;
If it is determined that receiving the operational order to the pre-set image in described image display component, then obtain to the default figure
The operational order of picture, and execute the operational order of the pre-set image.
3. according to the method described in claim 2, it is characterized in that, execution includes: to the operational order of the pre-set image
If the operational order is that the modification to the pre-set image instructs, modified pre-set image is stored, and
Modified pre-set image is shown in described image display component;
If the operational order is to zoom in or out instruction to the pre-set image, according to amplification in image display unit
Or minification shows corresponding pre-set image.
4. according to the method described in claim 3, it is characterized in that, after modified pre-set image is stored, institute
State method further include:
It monitors whether to trigger the out code to image display unit;
If monitoring the out code triggered to described image display component, the modified pre-set image of storage is carried out clear
It removes.
5. the method according to claim 1, wherein whether executing in monitoring image processing code to debugging breakpoints
Before place, the method also includes:
The debugging breakpoints are added in described image processing code.
6. method according to any one of claims 1-5, which is characterized in that the method also includes:
If not receiving executing instruction for described image processing code, the figure before re-executing presently described debugging breakpoints
As processing code, to be debugged again to the pre-set image.
7. according to the method described in claim 6, it is characterized in that, obtaining the corresponding image display parameters packet of the pre-set image
It includes:
Obtain the default storage address of the pre-set image in memory;
Described image display parameters are obtained according to the default storage address;Wherein, described image display parameters include: that storage is pre-
If the initial address of image, pre-set image width, pre-set image height and pre-set image color.
8. a kind of processing unit of image characterized by comprising
Monitoring unit, for being treated in journey in image processing program to pre-set image, whether monitoring image handles code
It executes to debugging breakpoints;
Pause unit, for suspending institute when the monitoring unit determines that described image processing is executed to the debugging breakpoints
State the execution of image procossing code;
First acquisition unit, for obtaining the corresponding image display parameters of the pre-set image;
Transmission unit, the described image display parameters for obtaining the first acquisition unit are sent to image display unit,
To show the pre-set image according to described image display parameters in described image display component;
Processing unit, for it is waiting receive the executing instruction of image procossing code after, continue to execute figure from the debugging breakpoints
As processing code.
9. device according to claim 8, which is characterized in that described device further include:
Monitoring unit, for monitoring whether described image display component receives operational order to the pre-set image;
Second acquisition unit, for receiving when the monitoring unit determines in described image display component to the pre-set image
Operational order when, obtain to the operational order of the pre-set image;
Execution unit, for executing the operational order for the pre-set image that the second acquisition unit is got.
10. device according to claim 9, which is characterized in that the execution unit includes:
Memory module, when for being the modification instruction to the pre-set image when the operational order, by modified default figure
As being stored;
First display module, for showing modified pre-set image in described image display component;
Second display module, for when the operational order is to the pre-set image when zooming in or out instruction, in image
Corresponding pre-set image is shown according to the multiple that zooms in or out in display component.
11. device according to claim 10, which is characterized in that the execution unit further include:
Monitoring module, for after the memory module is stored modified pre-set image, monitoring whether triggering pair
The out code of image display unit;
Module is removed, for will deposit when the monitoring module monitors out code of the triggering to described image display component
The modified pre-set image of storage is purged.
12. device according to claim 8, which is characterized in that described device further include:
Adding unit, for the monitoring unit monitoring image processing code whether execute to debugging breakpoints before, in institute
It states and adds the debugging breakpoints in image procossing code.
13. the device according to any one of claim 8-12, which is characterized in that described device further include:
Debugging unit, for re-executing presently described debugging when not receiving described image when executing instruction of code of processing
Described image before breakpoint handles code, to debug again to the pre-set image.
14. device according to claim 13, which is characterized in that first acquisition unit includes:
First obtains module, for obtaining the default storage address of the pre-set image in memory;
Second obtains module, aobvious for obtaining the default storage address acquisition described image that module obtains according to described first
Show parameter;Wherein, described image display parameters include: the initial address for storing pre-set image, pre-set image width, pre-set image
Height and pre-set image color.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611247907.3A CN106775749B (en) | 2016-12-29 | 2016-12-29 | The processing method and processing device of image |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611247907.3A CN106775749B (en) | 2016-12-29 | 2016-12-29 | The processing method and processing device of image |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106775749A CN106775749A (en) | 2017-05-31 |
CN106775749B true CN106775749B (en) | 2019-11-05 |
Family
ID=58927879
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201611247907.3A Active CN106775749B (en) | 2016-12-29 | 2016-12-29 | The processing method and processing device of image |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106775749B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109117381A (en) * | 2018-10-24 | 2019-01-01 | 北京奇虎科技有限公司 | The adjusting, measuring method and device of processing task |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103838669A (en) * | 2012-11-26 | 2014-06-04 | 辉达公司 | System, method, and computer program product for debugging graphics programs locally |
CN104966300A (en) * | 2015-06-19 | 2015-10-07 | 浙江理工大学 | Bearing roller image detection system, method and image detection device |
CN106034210A (en) * | 2015-03-09 | 2016-10-19 | 华为技术有限公司 | Image editing method and image editing device |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7222264B2 (en) * | 2004-03-19 | 2007-05-22 | Intel Corporation | Debug system and method having simultaneous breakpoint setting |
US9703681B2 (en) * | 2014-05-29 | 2017-07-11 | Microsoft Technology Licensing, Llc | Performance optimization tip presentation during debugging |
-
2016
- 2016-12-29 CN CN201611247907.3A patent/CN106775749B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103838669A (en) * | 2012-11-26 | 2014-06-04 | 辉达公司 | System, method, and computer program product for debugging graphics programs locally |
CN106034210A (en) * | 2015-03-09 | 2016-10-19 | 华为技术有限公司 | Image editing method and image editing device |
CN104966300A (en) * | 2015-06-19 | 2015-10-07 | 浙江理工大学 | Bearing roller image detection system, method and image detection device |
Also Published As
Publication number | Publication date |
---|---|
CN106775749A (en) | 2017-05-31 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10198345B2 (en) | Test case generation for uncovered code paths | |
US9632915B2 (en) | Historical control flow visualization in production diagnostics | |
US6981248B2 (en) | Conditional breakpoint encountered indication | |
US7620941B1 (en) | Mechanism for lossless user-level tracing on an architecture supporting PC-relative addressing | |
US9946628B2 (en) | Embedding and executing trace functions in code to gather trace data | |
CN106021102B (en) | The generation method and device of automatic test file | |
US11036507B2 (en) | Processor testing using pairs of counter incrementing and branch instructions | |
CN105511732B (en) | The display methods and device of page entry icon | |
US20130326484A1 (en) | Synchronization point visualization for modified program source code | |
CN107979506B (en) | Flow acquisition and cloud display system, method, device and equipment | |
CN106649114B (en) | The method and apparatus that application crash is positioned | |
CN105630671B (en) | The generation method and device of code coverage report | |
CN106775749B (en) | The processing method and processing device of image | |
CN105589847B (en) | The article identification method and device of Weight | |
US10216609B2 (en) | Exception prediction before an actual exception during debugging | |
CN105204907B (en) | Browser starts method and apparatus | |
CN105553767B (en) | Website backdoor file detection method and device | |
CN105843603B (en) | The method and device of graphics process | |
CN109409080A (en) | A kind of browser HTTPS auditing method and device | |
CN109981903A (en) | A kind of image processing method and electronic equipment | |
CN106371809B (en) | Thread processor and thread processing method | |
CN109325348A (en) | Application safe analysis method, calculates equipment and computer storage medium at device | |
CN105429733B (en) | A kind of message scheduling sending method and device | |
CN110008107A (en) | Test method, device and the computer readable storage medium of application | |
CN104079649B (en) | The method and browser being downloaded in a browser |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |