[go: up one dir, main page]

CN1315035C - Image partitioning display method and device - Google Patents

Image partitioning display method and device Download PDF

Info

Publication number
CN1315035C
CN1315035C CNB200410028030XA CN200410028030A CN1315035C CN 1315035 C CN1315035 C CN 1315035C CN B200410028030X A CNB200410028030X A CN B200410028030XA CN 200410028030 A CN200410028030 A CN 200410028030A CN 1315035 C CN1315035 C CN 1315035C
Authority
CN
China
Prior art keywords
information
image
stretching
user
picture
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.)
Expired - Lifetime
Application number
CNB200410028030XA
Other languages
Chinese (zh)
Other versions
CN1719398A (en
Inventor
陈泱
李志宏
张�杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CNB200410028030XA priority Critical patent/CN1315035C/en
Publication of CN1719398A publication Critical patent/CN1719398A/en
Application granted granted Critical
Publication of CN1315035C publication Critical patent/CN1315035C/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Images

Landscapes

  • Processing Or Creating Images (AREA)

Abstract

The present invention discloses an image partitioning display method which comprises steps of receiving partitioning and stretching information which is used for processing images from users, conserving the partitioning and the stretching information, processing the images according to the partitioning and the stretching information, producing a processing result and displaying the images for the users to browse according to the processing result. The present invention also discloses an image partitioning display device. The present invention has the advantages that processing efficiency can be effectively improved, the accuracy of a cutting and stretching result can be ensured, the integrity of image display can be maintained and the transition of colors is natural.

Description

A kind of image segmentation display packing and device
Technical field
The present invention relates to image data processing technique, particularly relate to a kind of image segmentation display packing and device.
Background technology
At present, the picture display technique has obtained using widely, for example is used for beautifying software interface, increases software attractive force etc.See also Fig. 1, use the picture display technique, can replace flat colour originally by enough pictures, make software interface more attractive in appearance beautiful.Further, existing picture display technique can also be by receiving user's instruction, correspondingly provides its picture of showing of needs of appointment voluntarily, thereby satisfy the individual demand of different user.
But because picture itself is fixed-size, though when the original size according to picture shows, effect is fine.In case the user adjusts the software window size, just need to adjust the drawing area of picture to adapt to new window size, in traditional image display method, the technological means of convergent-divergent is carried out in employing in proportion to picture in its entirety, all can bring the defective of display effect distortion under many circumstances, cause the interface more ugly on the contrary.
Seeing also Fig. 2, is to keep picture height shown in Figure 1 constant, the display effect after the double width.Comparison diagram 1 and Fig. 2 can find, after stretching, except simple color region drafting effect remained unchanged, the effect of left and right edges part all deformed, and display effect is not ideal, and the literal of demonstration is also corresponding to deform.
Being appreciated that traditional image display method simply carries out picture in its entirety the convergent-divergent stretching and shows, obviously is dissatisfactory.If the display effect of the figure that will still can obtain after stretching must be improved above-mentioned display method.
See also Fig. 3, the method that a kind of prior art adopts image segmentation to show comprises step: start PaintShop; Read a secondary complete picture; The user cuts out by PaintShop hand-manipulated, and picture is divided into a plurality of parts (Fig. 3 illustrates three, indicates with numeral respectively); Subsequently, aforementioned a plurality of parts are preserved into some pictures by hand respectively; When showing, scrabble up required complete effect with these some pictures; When convergent-divergent stretches, need keep the constant picture of original size (picture 1 and picture 3 as shown in Figure 3) to those, draw in the fixed position according to original size, the constant picture (picture 2 as shown in Figure 3) of effect is then drawn and is filled remaining area behind those stretchings, the convergent-divergent; Thereby obtain preferable display effect, as shown in Figure 4.
Fig. 3 has only provided the technological means of prior art when handling width and change, highly change or width, situation about changing highly simultaneously similarly, this does not give unnecessary details.
The described prior art part that comes with some shortcomings: at first, cut out and cut apart owing to need user oneself picture to be carried out craft by PaintShop, the dullness of not only working, inefficiency, and be not easy to obtain result accurately.
Secondly, complicated operation is not easy to carry out the comparison of multiple adjustment scheme, can not watch adjusted result immediately.
Once more, because cut apart and the process of preserving of picture all need user's manual operations to finish, high to user's specialty requirement, the user must understand operations such as how using PaintShop is cut out, preservation, improved technical threshold virtually, be unfavorable for applying.
In addition, because the picture after directly preservation is cut apart in the prior art, stretching information generally is the fixed value that is provided with by PaintShop, can not make amendment flexibly, and can't the instant playback picture effect after renewal.
Summary of the invention
The technical matters that the present invention solves is to provide a kind of image segmentation display packing and device, can improve the accuracy that treatment of picture efficient and image show, and can the instant playback effect.
For this reason, the technical scheme of technical solution problem of the present invention is: a kind of image segmentation display packing is provided, comprises step:
1) reception is from user's the carve information and the stretching information that are used to handle image;
2) preserve previous segmentation information and stretching information;
3) image is handled and is produced result according to previous segmentation information and stretching information;
4) according to aforementioned processing as a result display image browse for the user.
Preferably, described stretching information comprises stretch zones information and stretching mode information.
Preferably, described step 1) comprises: the split position sign is provided; Resolve the location change of split position sign, obtain from user's carve information and stretch zones information or the data input area is provided, obtain the carve information and the stretch zones information of user's input.
Preferably, in the described step 1), the reception of described stretching mode information specifically comprises: the instruction of obtaining the user selected image zone; Obtain the stretching mode information of the aforementioned selection area that the user sets or obtain the unified stretching mode information of the image that the user sets.
Preferably, described step 2) in, carve information, stretching information and image are preserved in the lump or preserved separately.
Preferably, described step 3) specifically comprises: stretch after the instruction of image reading images when receiving the user; Determine picture portion according to carve information; Respectively each subregion is handled by stretching information.
Preferably, described step 3) specifically comprises: stretch after the instruction of image when receiving the user, according to carve information image is cut apart; Read the image after cutting apart respectively; Image after this is cut apart according to the stretching information processing.
Preferably, described step 2) in, image is divided at least two files according to previous segmentation information preserves; With stretching information with image is preserved in the lump or preserve separately.
Preferably, described step 2) in, the preservation of carve information specifically comprises: the image graphics data of analysis diagram picture are saved in the corresponding file according to the image graphics information of previous segmentation information with each several part.
Preferably, described step 3) specifically comprises: stretch after the instruction of image when receiving the user, read described at least two files; Image after this is cut apart according to the stretching information processing.
The present invention also provides a kind of image segmented display device, comprising:
User interaction unit is used to receive carve information and stretching information from the user;
Information memory cell is used to preserve carve information and stretching information;
Graphics processing unit is used for image being handled and produced result according to previous segmentation information and stretching information;
The effect display unit, be used for according to aforementioned processing as a result display image browse for the user.
Preferably, described user interaction unit comprise the data that are used to receive user's input the data input area, be used to show the graphics field of split position sign.
Preferably, described user interaction unit also comprises the display window that is used for the instant playback image effect.
With respect to prior art, the invention has the beneficial effects as follows: at first, because the present invention obtains carve information and stretching information from the user by user interaction unit, automatically cut out cutting operation by graphics processing unit according to aforementioned information, can effectively improve treatment effeciency, guarantee the accuracy cut out segmentation result, make no matter how window size is adjusted, and image seems it is complete all the time, the transition of color is also very natural, can not produce distortion.Secondly, owing to not only obtain information by user interaction unit, and by the image effect of effect display unit instant playback according to the aforementioned information generation, make that carve information setting up procedure and stretching information setting process operation are easy, effect is directly perceived, adopt the mode of What You See Is What You Get, the user can adjust arbitrarily, checks effect.Once more, because the realization that the device inner tensile is handled is to user transparent, the user does not know that even picture finally has been divided into some pictures and has finished required effect, has reduced the professional requirement to the user.In addition, cut apart, the preservation of stretching information is comparatively flexible, can be reflected on the display effect at once after can upgrading at any time and upgrade.
Description of drawings
Fig. 1 is an original image display effect synoptic diagram;
Fig. 2 is the back image display effect synoptic diagram that stretches;
Fig. 3 is a kind of prior art image segmentation display technique schematic diagram;
Fig. 4 is a display effect synoptic diagram after picture shown in Figure 3 stretches;
Fig. 5 is an image segmented display device schematic diagram of the present invention;
Fig. 6 is an image segmentation display packing process flow diagram of the present invention;
Fig. 7 is the present invention obtains carve information and stretching information by user interaction unit a synoptic diagram;
Fig. 8 is that another kind of picture is cut apart, stretching is provided with the synoptic diagram at interface;
Fig. 9 is the synoptic diagram of picture cut zone among the present invention;
Figure 10 is the synoptic diagram of picture effect display window of the present invention;
Figure 11 is the present invention obtains carve information and stretching information by user interaction unit a synoptic diagram;
Figure 12 is the present invention obtains carve information and stretching information by user interaction unit a synoptic diagram.
Embodiment
Image segmentation display packing of the present invention and device can be cut apart picture, preservation carve information and the information that correctly reads automatically and show, make the user only need draw or specify a complete picture, carry out simple carve information setting and stretching information setting then, just can when needs stretch, obtain preferable image display effect.
Seeing also Fig. 5, is the schematic diagram of image segmented display device of the present invention.
In order to obtain the display strategy of cutting apart of user's needs, promptly receive the carve information and the stretching information of user's input, described image segmented display device provides user interaction unit 110, and described user interaction unit 110 can adopt various ways such as graphical interfaces or data input frame.
In order to preserve the carve information and the stretching information of user's input, described image segmented display device provides information memory cell 120, carve information and stretching information can be preserved with picture, also can preserve respectively; Can also picture be cut apart according to carve information, only need this moment stretching information to be preserved with picture or preserve respectively.
Described image segmented display device provides graphics processing unit 130, is used for image being handled and produced result according to previous segmentation information and stretching information after the stretching instruction that receives the user.
Described image segmented display device provides effect display unit 140, is used for generating stretched image immediately according to the result that graphics processing unit produces, and 110 outputs of notice user interaction unit are browsed drawing effect for the user.
Seeing also Fig. 6, is the process flow diagram of image segmentation display packing of the present invention.
At first, reception is from user's the carve information and the stretching information that are used to handle image.Described carve information is used for picture region is divided into some different zones; Described stretching information comprises which part the picture after cutting apart belongs to, and how picture information such as shows when stretching, and is used in reference to be shown in when taking place to stretch, and in the aforementioned areas, which need immobilize, and which need be readjusted size and how to adjust; Usually, described stretching information comprises stretch zones information and stretching mode information.
Secondly, preserve previous segmentation information and stretching information.Carve information and stretching information can be preserved with picture, also can be preserved respectively; Can also picture be cut apart according to carve information, only need this moment stretching information to be preserved with picture or preserve respectively.
When needs stretch, image is handled and is produced result according to previous segmentation information and stretching information.
According to aforementioned processing as a result display image browse for the user, understand image processing effect in real time, be convenient to adjust immediately.
In order further to understand the present invention, the present invention will be described below in conjunction with embodiment.
See also Fig. 7, at first, user interaction unit 110 provides picture to cut apart, stretching is provided with the interface.Described interface comprises picture Lead-In Area, data input area, graphics field, stretching mode selection district.
When the user after the picture Lead-In Area is clicked " importing " button and is chosen a secondary picture, picture will show the graphics field on the interface.
Obtaining of carve information can be adopted multiple mode:
A kind of mode is to specify in data input area input digit by the user: the height that the width that the width that the left side does not stretch, the right do not stretch, top do not stretch, the following height that does not stretch; Perhaps specify: the height that the width of position that the left side begins to stretch and horizontal direction need stretched portion, the position that the top begins to stretch and vertical direction need stretched portion.
Another kind of mode adopts graphics mode more intuitively: the split position sign is provided, described split position sign can adopt the form of cut-off rule, as 4 dotted lines among Fig. 7, these dotted lines show the splitting scheme of picture, and the user can be cut apart adjustment with these dotted lines of mouse drag easily.Graphics processing unit is determined carve information automatically by resolving the location change of dotted line.
Certainly, the user position that also can directly import cut-off rule in the aforementioned data input area is adjusted.
Need to prove, in the above-mentioned process of obtaining carve information by user interaction unit 110, also obtained stretch zones information simultaneously.
Obtaining of stretching information also can be in several ways.
A kind of mode is each picture region that selected its needs cut apart of user stretch, and sets this regional stretching mode (as direct stretching, tiling etc.).
The another kind mode is to adopt with a kind of stretching mode in each picture region of selecting the unified formulation in district to need to stretch that stretches, as direct stretching or tiling stretching etc.
Consulting Fig. 8, is that picture is cut apart, stretching is provided with the another kind of form of implementation at interface.
Be understandable that the picture that described user interaction unit 110 provides cuts apart, stretching is provided with the interface and is not limited to Fig. 7 and form shown in Figure 8, can also adopt other modes, this does not give unnecessary details.
After obtaining carve information and stretching information, realize the preservation of carve information and stretching information by information memory cell 120.
Wherein, the preservation of carve information has multiple mode.
A kind of mode is to preserve picture in its entirety and carve information, handles when showing again.Because picture in its entirety is user's appointment, get final product by former form preservation, the preservation of carve information can be kept at together with former picture, also can preserve separately.
Another kind of mode is picture to be divided into several files by the partitioning scheme of user's appointment preserve, and need not to preserve carve information this moment again.
The cutting apart preservation and specifically can adopt two kinds of schemes of picture: a kind of scheme is to analyze the image graphics data of picture, is saved in the file by the partitioning scheme of the user's appointment image/graphics information with each several part; Another kind of scheme is that picture is plotted on the computer display apparatus, includes but not limited to display, printer, internal memory etc., is saved in the file by the partitioning scheme of the user's appointment image/graphics information with each several part from display device then.
Stretching information can save as file separately, also can preserve together with former picture, also can preserve together with the picture after cutting apart.Be appreciated that for the picture after cutting apart, only need to preserve stretching mode information, need not to preserve again stretch zones information.
With reference to figure 9, after final adjustment was finished, picture can be treated to 9 zones.
When needs carry out stretch processing (as receiving from user's stretching instruction or when the software window size variation), graphics processing unit 130 is handled picture according to previous segmentation information and stretching information.
If picture is divided into several files and preserves, then read in respectively, show by user's specified notification effect display unit 140 after obtaining stretching information, and the picture after stretching by user interaction unit 110 outputs.
Preserve if picture is a view picture, then both can earlier picture be divided into file, read in respectively, show by user's specified notification effect display unit 140 after obtaining stretching information, and the picture after stretching by user interaction unit 110 outputs; Also can handle picture in its entirety, read carve information and stretching information, show by the stretching information notice effect display unit 140 that the user sets cutting apart each several part respectively, and by the picture after the user interaction unit 110 output stretchings.
With reference to figure 9, be divided into 9 situation for picture, concrete processing procedure is: when window size changes, the drafting of picture 1,3,7,9 keeps original size, and 2 changes along with window width, draw and fill upper zone eliminating picture 1,3 back remaining areas, 8 similar 2, draw and fill following zone eliminating 7,9 back remaining areas, 4 draw the filling left area gets rid of 1,7 back remaining areas, 6 draw zone, filling the right gets rid of 3,9 back remaining areas, and remaining white space is filled in 5 draftings.
So the effect of handling is exactly no matter how window size is adjusted, and background seems it is a complete picture all the time, and the transition of color is also very natural, without any the place of distortion.
See also Figure 10, adjust effect for the instant playback that is in course of adjustment, described user interaction unit 110 also provides the picture effect display window.Along with user's adjustment, the drafting effect of the current adjustment scheme of picture effect display window instant playback, and also the user can utilize 8 reference mark around the picture that drawing area is carried out convergent-divergent adjustment arbitrarily, watches the effect under various convergent-divergents, the pulled out condition.
See also Figure 11 and Figure 12, also can picture be divided into 6 cut zone or 4 cut zone according to the carve information of user's input.
The above only is a preferred implementation of the present invention; should be pointed out that for those skilled in the art, under the prerequisite that does not break away from the principle of the invention; can also make some improvements and modifications, these improvements and modifications also should be considered as protection scope of the present invention.

Claims (13)

1, a kind of image segmentation display packing is characterized in that, comprises step:
1) reception is from user's the carve information and the stretching information that are used to handle image;
2) preserve previous segmentation information and stretching information;
3) image is handled and is produced result according to previous segmentation information and stretching information;
4) according to aforementioned processing as a result display image browse for the user.
2, image segmentation display packing according to claim 1 is characterized in that: described stretching information comprises stretch zones information and stretching mode information.
3, image segmentation display packing according to claim 2 is characterized in that, described step 1) comprises: the split position sign is provided; Resolve the location change of split position sign, obtain from user's carve information and stretch zones information or the data input area is provided, obtain the carve information and the stretch zones information of user's input.
4, image segmentation display packing according to claim 3 is characterized in that, in the described step 1), the reception of described stretching mode information specifically comprises: the instruction of obtaining the user selected image zone; Obtain the stretching mode information of the aforementioned selection area that the user sets or obtain the unified stretching mode information of the image that the user sets.
5, image segmentation display packing according to claim 1 is characterized in that: described step 2), carve information, stretching information and image are preserved in the lump or preserved separately.
6, image segmentation display packing according to claim 5 is characterized in that, described step 3) specifically comprises: stretch after the instruction of image reading images when receiving the user; Determine picture portion according to carve information; Respectively each subregion is handled by stretching information.
7, image segmentation display packing according to claim 5 is characterized in that, described step 3) specifically comprises: stretch after the instruction of image when receiving the user, according to carve information image is cut apart; Read the image after cutting apart respectively; Image after this is cut apart according to the stretching information processing.
8, image segmentation display packing according to claim 1 is characterized in that: described step 2), image is divided at least two files according to previous segmentation information preserves; With stretching information with image is preserved in the lump or preserve separately.
9, image segmentation display packing according to claim 8, it is characterized in that, described step 2) in, the preservation of carve information specifically comprises: the image graphics data of analysis diagram picture are saved in the corresponding file according to the image graphics information of previous segmentation information with each several part.
10, image segmentation display packing according to claim 8 is characterized in that, described step 3) specifically comprises: stretch after the instruction of image when receiving the user, read described at least two files; Image after this is cut apart according to the stretching information processing.
11, a kind of image segmented display device is characterized in that, comprising:
User interaction unit is used to receive carve information and stretching information from the user;
Information memory cell is used to preserve carve information and stretching information;
Graphics processing unit is used for image being handled and produced result according to previous segmentation information and stretching information;
The effect display unit, be used for according to aforementioned processing as a result display image browse for the user.
12, image segmented display device according to claim 11 is characterized in that: described user interaction unit comprise the data that are used to receive user's input the data input area, be used to show the graphics field of split position sign.
13, image segmented display device according to claim 12 is characterized in that: described user interaction unit also comprises the display window that is used for the instant playback image effect.
CNB200410028030XA 2004-07-08 2004-07-08 Image partitioning display method and device Expired - Lifetime CN1315035C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB200410028030XA CN1315035C (en) 2004-07-08 2004-07-08 Image partitioning display method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB200410028030XA CN1315035C (en) 2004-07-08 2004-07-08 Image partitioning display method and device

Publications (2)

Publication Number Publication Date
CN1719398A CN1719398A (en) 2006-01-11
CN1315035C true CN1315035C (en) 2007-05-09

Family

ID=35931243

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB200410028030XA Expired - Lifetime CN1315035C (en) 2004-07-08 2004-07-08 Image partitioning display method and device

Country Status (1)

Country Link
CN (1) CN1315035C (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102254302B (en) * 2011-06-07 2013-01-02 盛乐信息技术(上海)有限公司 Picture trimming system and method thereof
CN103995701B (en) * 2011-09-29 2018-03-27 北京奇虎科技有限公司 A kind of method of the stretching control of user interface
CN103995702A (en) * 2011-09-29 2014-08-20 北京奇虎科技有限公司 User interface stretching control method
CN103294425B (en) * 2012-02-27 2019-02-05 联想(北京)有限公司 Image processing method and image processing equipment
JP6873131B2 (en) * 2015-11-19 2021-05-19 コーニンクレッカ フィリップス エヌ ヴェKoninklijke Philips N.V. Optimizing user interaction in segmentation
CN106547836A (en) * 2016-10-12 2017-03-29 惠州Tcl移动通信有限公司 A kind of large scale photo loading method and system
CN111372009B (en) * 2020-03-31 2021-09-14 联想(北京)有限公司 Image processing method and processing equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0381874A (en) * 1989-08-24 1991-04-08 Nec Corp Image control circuit
US5157766A (en) * 1989-10-12 1992-10-20 International Business Machines Corporation Boundary drawing and area filling logic for a display system
US6128417A (en) * 1997-06-09 2000-10-03 Ausbeck, Jr.; Paul J. Image partition moment operators
JP2003162382A (en) * 2001-11-22 2003-06-06 Ricoh Co Ltd Color image forming apparatus and color copying apparatus

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0381874A (en) * 1989-08-24 1991-04-08 Nec Corp Image control circuit
US5157766A (en) * 1989-10-12 1992-10-20 International Business Machines Corporation Boundary drawing and area filling logic for a display system
US6128417A (en) * 1997-06-09 2000-10-03 Ausbeck, Jr.; Paul J. Image partition moment operators
JP2003162382A (en) * 2001-11-22 2003-06-06 Ricoh Co Ltd Color image forming apparatus and color copying apparatus

Also Published As

Publication number Publication date
CN1719398A (en) 2006-01-11

Similar Documents

Publication Publication Date Title
CN1227621C (en) Systems and methods for digital document processing
CN1308895C (en) Systems and methods for generating visual representations of graphical data and digital document processing
CN1253831C (en) System and method for generating visual representations of graphical data and digital document processing
CN1182472C (en) Method for displaying images contained in image data files
CN103123718B (en) A kind of image processing method and system
CN1315035C (en) Image partitioning display method and device
CN1517951A (en) Image editing device, image cropping method and program
CN1794218A (en) Generating method of computer format document and opening method
CN101055645A (en) A shade implementation method and device
CN104376199A (en) Method for intelligently generating breast report lesion schematic diagram
CN1904827A (en) Method of displaying wallpaper and apparatus for displaying wallpaper
CN1279430C (en) Digital document processing systems, data processing systems and peripherals
CN104462044A (en) Recognizing and editing method and device of tabular images
CN1795683A (en) 3-dimensional video display device, text data processing device, program, and storage medium
CN107908379B (en) A Method for Displaying Original Drawings of Digital Publishing on Large Pages
CN103927533B (en) The intelligent processing method of graph text information in a kind of scanned document for earlier patents
CN101059762A (en) Dummy machine system and its video card access method
CN101211416B (en) Boundary generation method, system and manufacturing method in vector graphics rasterization process
CN203520838U (en) A display device for transparent display
CN1610380A (en) Image processing device, method thereof, and display device
CN1755612A (en) Method and apparatus for realizing message prompt
CN1131774A (en) handwritten character input device
CN1932757A (en) Core 1 DRAW software teaching technological plan
CN101038547A (en) Method for applying instantaneous style module aided programming in computer programming
CN1236145A (en) Information processing device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CX01 Expiry of patent term

Granted publication date: 20070509

CX01 Expiry of patent term