CN107393459A - Method for displaying image and device - Google Patents

Method for displaying image and device Download PDF

Info

Publication number
CN107393459A
CN107393459A CN201710642900.XA CN201710642900A CN107393459A CN 107393459 A CN107393459 A CN 107393459A CN 201710642900 A CN201710642900 A CN 201710642900A CN 107393459 A CN107393459 A CN 107393459A
Authority
CN
China
Prior art keywords
image
described image
continuity
length
display
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.)
Granted
Application number
CN201710642900.XA
Other languages
Chinese (zh)
Other versions
CN107393459B (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.)
BOE Technology Group Co Ltd
Original Assignee
BOE Technology Group 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 BOE Technology Group Co Ltd filed Critical BOE Technology Group Co Ltd
Priority to CN201710642900.XA priority Critical patent/CN107393459B/en
Publication of CN107393459A publication Critical patent/CN107393459A/en
Application granted granted Critical
Publication of CN107393459B publication Critical patent/CN107393459B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G3/00Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes
    • G09G3/20Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G2340/00Aspects of display data processing
    • G09G2340/04Changes in size, position or resolution of an image
    • G09G2340/0442Handling or displaying different aspect ratios, or changing the aspect ratio
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G2380/00Specific applications
    • G09G2380/16Digital picture frames

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

The present invention proposes a kind of method for displaying image and device, wherein, method includes:According to the length-width ratio of image, determine the suitable display mode of image, display mode is to be shown displayed across or longitudinally show, maintain the length-width ratio of image, in display interface, image is shown with display mode, if display interface has white space, according to the content got from image, white space is filled.Solve in the prior art, image could be displayed in full screen after must rationally being cut in viewing area, and this cutting method, and image information can be caused to lose, the problem of influenceing image shows effect.

Description

Method for displaying image and device
Technical field
The present invention relates to image display technology field, more particularly to a kind of method for displaying image and device.
Background technology
With becoming increasingly popular for digital vedio recording product, digital photograph turns into main flow, many traditional cardboard images and paintings Also increasingly digitized etc. artistic work.Along with the development of electronic technology in recent years and digital image processing techniques, digital photo frame Picture presentation and playing device as species tool new meaning start to popularize, and have picture storage, display and playing function, can put Put in various places (in such as family, office), it is deep to be liked by users for exhibiting pictures.
At present, the length and width displaying ratio of electronics picture frame is fixed, and the image for being used in electronics picture frame showing Length and width displaying ratio is varied, when different pictures need to show in electronics picture frame, it is necessary to which the length and width of image are shown into ratio Example is cut, and is cut into identical with the length and width displaying ratio of electronics picture frame, could be shown in electronics picture frame, this cutting side Formula, image information can be caused to lose, influence image shows effect.
The content of the invention
It is contemplated that at least solves one of technical problem in correlation technique to a certain extent.
Therefore, first purpose of the present invention is to propose a kind of method for displaying image, to realize the length and width according to image Than, the suitable display mode of image is determined, and white space existing for display interface is filled, display effect is optimized, Solve in the prior art, image could be displayed in full screen after must rationally being cut in viewing area, and cutting to lead Cause the loss of image information, the problem of influenceing image shows effect.
Second object of the present invention is to propose a kind of image display device.
Third object of the present invention is to propose a kind of computer equipment.
Fourth object of the present invention is to propose a kind of non-transitorycomputer readable storage medium.
The 5th purpose of the present invention is to propose a kind of computer program product.
For the above-mentioned purpose, first aspect present invention embodiment proposes a kind of method for displaying image, including:
According to the length-width ratio of image, the suitable display mode of described image is determined;The display mode to be shown displayed across or Longitudinal direction display;
The length-width ratio of described image is maintained, in display interface, described image is shown with the display mode;
If the display interface has white space, according to the content got from described image, to the clear area Domain is filled.
In a kind of method for displaying image of the present embodiment, according to the length-width ratio of image, the suitable display mode of image is determined, Display mode maintains the length-width ratio of image, in display interface, image is carried out with display mode to be shown displayed across or longitudinally showing It has been shown that, if display interface has white space, according to the content got from image, is filled to white space.Solve In the prior art, image could be displayed in full screen after must rationally being cut in viewing area, and this cutting method, meeting Image information is caused to be lost, the problem of influenceing image shows effect.
For the above-mentioned purpose, second aspect of the present invention embodiment proposes a kind of image display device, including:
Determining module, for the length-width ratio according to image, determine the suitable display mode of described image;The display mode To be shown displayed across or longitudinally showing;
Display module, for maintaining the length-width ratio of described image, in display interface, to described image with the display mode Shown;
Module is filled, if white space be present for the display interface, according to the content got from described image, The white space is filled.
In a kind of image display device of the present embodiment, determining module is used for the length-width ratio according to image, determines that image is fitted Suitable display mode, for display mode to be shown displayed across or longitudinally showing, display module is used for the length-width ratio for maintaining image, is showing Interface, image is shown with display mode, if filling module has white space for display interface, according to from image The content got, is filled to white space.Solve in the prior art, image could be after must rationally being cut It is displayed in full screen in viewing area, and this cutting method, image information can be caused to lose, the problem of influenceing image shows effect.
For the above-mentioned purpose, third aspect present invention embodiment proposes a kind of computer equipment, including memory, processing Device and storage on a memory and the computer program that can run on a processor, during the computing device described program, reality The now method for displaying image as described in first aspect embodiment.
To achieve these goals, fourth aspect present invention embodiment proposes a kind of computer-readable storage of non-transitory Medium, when the instruction in the storage medium is by computing device, realize that the image as described in first aspect embodiment is shown Method.
The additional aspect of the present invention and advantage will be set forth in part in the description, and will partly become from the following description Obtain substantially, or recognized by the practice of the present invention.
Brief description of the drawings
Of the invention above-mentioned and/or additional aspect and advantage will become from the following description of the accompanying drawings of embodiments Substantially and it is readily appreciated that, wherein:
A kind of schematic flow sheet for method for displaying image that Fig. 1 is provided by the embodiment of the present invention;
Fig. 2 is schematical electronics picture frame provided in an embodiment of the present invention and the schematic diagram of display image;
The schematic flow sheet for another method for displaying image that Fig. 3 is provided by the present embodiment;
Fig. 4 is calculating image long side direction provided in an embodiment of the present invention and the successional region division of broadside content Schematic diagram;
Fig. 5 is one of exemplary plot that the image that the embodiment of the present invention provides is shown in electronics picture frame;
Fig. 6 is the two of the exemplary plot that the image that the embodiment of the present invention provides is shown in electronics picture frame;
Fig. 7 is the three of the exemplary plot that the image that the embodiment of the present invention provides is shown in electronics picture frame;
Fig. 8 is the four of the exemplary plot that the image that the embodiment of the present invention provides is shown in electronics picture frame;
Fig. 9 is the five of the exemplary plot that the image that the embodiment of the present invention provides is shown in electronics picture frame;
A kind of structural representation for image display device that Figure 10 is provided by the embodiment of the present invention;And
The structural representation for another image display device that Figure 11 is provided by the embodiment of the present invention.
Embodiment
Embodiments of the invention are described below in detail, the example of the embodiment is shown in the drawings, wherein from beginning to end Same or similar label represents same or similar element or the element with same or like function.Below with reference to attached The embodiment of figure description is exemplary, it is intended to for explaining the present invention, and is not considered as limiting the invention.
Below with reference to the accompanying drawings the method for displaying image and device of the embodiment of the present invention are described.
Electronics picture frame has the storage, display and playing function of image, and can be placed in various places, schemes for showing Picture, still, the picture displaying ratio of current electronics picture frame is fixed, and when the image scaled of display is different, meeting exists It is left white during display image in long side direction or broadside, if it is desired that image matches with electronics picture frame, it is necessary to image Cut, and cutting can make it that image portion information is lost, and influence the effect of displaying.
For this problem, the embodiment of the present invention proposes a kind of method for displaying image, to realize when the figure for needing to show When the ratio of picture and the ratio difference of electronics picture frame, automatic adjusument can be carried out, information will not be lost, bandwagon effect is more preferable.
A kind of schematic flow sheet for method for displaying image that Fig. 1 is provided by the embodiment of the present invention.
As shown in figure 1, the method for displaying image comprises the following steps:
Step S101, according to the length-width ratio of image, determine the suitable display mode of image.
Specifically, the length-width ratio of the screen of digital photo frame is fixed, and the length-width ratio for the image that needs are shown is a variety of more Sample determines the suitable display mode of image, it is necessary to according to the length-width ratio of image, wherein, the display mode of image is to be shown displayed across Or longitudinal direction display.
It should be noted that in the present embodiment, the length of image refers to the size of horizontal direction, and the width of image refers to longitudinal direction Size.
Specifically, it is determined that the length-width ratio of image, judges one that whether the length-width ratio of image belongs in first interval, if figure Belong in multiple first intervals one of the length-width ratio of picture, according to display mode corresponding to affiliated first interval, determines image Display mode is to be shown displayed across or longitudinally show;If the length-width ratio of image is not belonging to any one in multiple first intervals, according to The continuity of image content on long side direction and broadside, the display mode for determining image are to be shown displayed across or longitudinally show Show.
Wherein, first interval, it is according to the length-width ratio of electronics picture frame, the suitable display side for being used for determining image of selection The section of formula, first interval can be multiple, and section is different, and corresponding suitable display mode is also different.
For example, the length-width ratio of digital photo frame is fixed as 9:16, on the basis of the length-width ratio of digital photo frame.Fig. 2 is the present invention The schematical electronics picture frame and the schematic diagram of display image that embodiment provides, as shown in Fig. 2 wherein, what real diagram represented is Electronics picture frame, what dashed line view represented is the image for needing to show, the image is probably the image longitudinally shown, it is also possible to laterally The image of display, wherein, the length of a representative images, the width of b representative images.
According to the display mode of the length-width ratio of electronics picture frame, and image, it may be determined that first interval is 2 sections, in order to It is easy to distinguish, referred to as first interval _ 1 and first interval _ 2, corresponding section is shown in Table 1:
First interval Interval range
First interval _ 1 < 3/4
First interval _ 2 > 4/3
Table 1
Specifically, when the length-width ratio a/b of image belongs to first interval _ 1, i.e. a/b < 3/4, the long side direction of image Size is less than the size of broadside, and the display mode of image is longitudinal display;When the length-width ratio a/b of image belongs to the firstth area Between _ 2, i.e. during a/b > 4/3, the size of the long side direction of image is more than the size of broadside, and the display mode of image is laterally Display.
In addition, when the length-width ratio a/b of image is not belonging to any one in first interval, i.e. 3/4 < a/b < 4/3, image The size of long side direction and the size difference of broadside are smaller, and can not directly judging image, suitable display mode is laterally Display or longitudinal direction display, and then the continuity of content determines suitable aobvious of image on long side direction and broadside using image Show mode.
Specifically, in long side direction and broadside content continuity, be to be determined by formula, wherein, long side side Upward continuity is according to formulaIt is calculated, its In, T (x, y) represents the gray value of the pixel (x, y) along each image block of long side direction division, and F (x ', y ') is represented and its phase Gray value of the adjacent image block at corresponding pixel points (x ', y ') place;Continuity in broadside is according to formulaIt is calculated;Wherein, t (x, y) represents draws along broadside The gray value of pixel (x, y) in each image block divided, and f (x ', y ') image block adjacent thereto is represented in corresponding pixel points The gray value at (x ', y ') place.
And then if Ex is better than Ey, image is shown displayed across;If Ey is better than Ex, image is longitudinally shown.
Step S102, the length-width ratio of image is maintained, in display interface, image is shown with display mode.
Specifically, however, it is determined that the display mode of image is to be shown displayed across, and maintains the length-width ratio of image, right in display interface Image is shown displayed across;If it is determined that the display mode of image shows for longitudinal direction, the length-width ratio of image is maintained, in display interface, Longitudinal display is carried out to image.
Step S103, if display interface has white space, according to the content got from image, white space is entered Row filling.
In display interface, after being shown by suitable display mode to image, if clear area be present in display interface , it is necessary to get content from image by Selection Strategy, carrying out gaussian filtering to the content got from image obscures in domain Change, obtain blank map picture, according to blank map picture, white space is filled.
It is corresponding according to affiliated second interval specifically, one that if the length-width ratio of image belongs in multiple second intervals Selection Strategy, the selected part region from image, and the subregional content of acquisition unit.
Second interval is used for determining filling mode, according to the length-width ratio 9 of digital photo frame:16, division second interval is 4 areas Between, wherein, the corresponding identical filling mode in section 1 and section 3, specifically it is shown in Table 2:
Second interval Interval range Filling mode
Section 1 < 9/16 Select image long side direction both ends area filling
Section 2 [9/16,3/4] Select image broadside both ends area filling
Section 3 [4/3,16/9] Select image long side direction both ends area filling
Section 4 > 16/9 Select image broadside both ends area filling
Table 2
If the length-width ratio of image is not belonging to any one in multiple second intervals, i.e. 3/4 < a/b < 4/3, existed according to image The continuity of content, determines Selection Strategy on long side direction and broadside, according to Selection Strategy, the selected part area from image Domain, and the subregional content of acquisition unit.
Specifically, in long side direction and broadside content continuity, be to be determined by formula, wherein, long side side Upward continuity is according to formulaIt is calculated, its In, T (x, y) represents the gray value of the pixel (x, y) along each image block of long side direction division, and F (x ', y ') is represented and its phase Gray value of the adjacent image block at corresponding pixel points (x ', y ') place;Continuity in broadside is according to formulaIt is calculated;Wherein, t (x, y) represents draws along broadside The gray value of pixel (x, y) in each image block divided, and f (x ', y ') image block adjacent thereto is represented in corresponding pixel points The gray value at (x ', y ') place.
And then if continuity of the image on long side direction determines that Selection Strategy is better than the continuity in broadside Chosen from two end regions of long side direction;If continuity of the image in broadside is better than the continuity on long side direction, Selection Strategy is determined to be chosen from two end regions of broadside.
It should be noted that the selection ratio in the region for the part that is used for filling in the blanks chosen in image, in the present embodiment Do not limit.
In a kind of method for displaying image of the present embodiment, according to the length-width ratio of image, the suitable display mode of image is determined, Display mode maintains the length-width ratio of image, in display interface, image is carried out with display mode to be shown displayed across or longitudinally showing It has been shown that, if display interface has white space, according to the content got from image, is filled to white space.Solve In the prior art, image could be displayed in full screen after must rationally being cut in viewing area, and this cutting method, meeting Image information is caused to be lost, the problem of influenceing image shows effect.
In order to further explain a upper embodiment, another method for displaying image is present embodiments provided, more clearly The illustrating of Chu determines display mode and filling mode according to image, and the process shown, Fig. 3 are provided by the present embodiment Another method for displaying image schematic flow sheet.
As shown in figure 3, the method for displaying image may comprise steps of:
Step S201, obtain the length-width ratio of image.
Specifically, electronics picture frame obtains the image for needing to show, and the length-width ratio of image is calculated.
Step S202, one that whether the length-width ratio of image belongs in multiple first intervals is judged, if so, performing step S203, if it is not, then performing step S204.
Specifically, judge whether to belong to first interval according to the length-width ratio of image, wherein, first interval is used for determining image Display mode be shown displayed across or longitudinal direction display.
Step S203, according to display mode corresponding to affiliated first interval, determine the suitable display mode of image.
Citing, the length-width ratio of electronics picture frame is 9:16, the long side direction size of image is a, and broadside size is b, if Image Aspect Ratio is a/b=7/16, and as shown in table 1, then the displaying ratio of the image belongs to first interval _ 1, image long side side To size be significantly less than the size of broadside, the display mode according to corresponding to first interval _ 1 is longitudinal display, it is determined that figure As the suitable display mode in electronics picture frame is longitudinal direction display.
Similarly, if image Aspect Ratio is a/b=14/9, it may be determined that when image length-width ratio belongs to first interval _ 2, according to Display mode corresponding to first interval _ 2 is to be shown displayed across, and determines suitable display mode of the image in electronics picture frame for laterally Display.
Step S204, according to the continuity of image content on long side direction and broadside, determine that image is suitable and show Show mode.
Specifically, if the length-width ratio of image is a/b=13/12, the length-width ratio is not belonging to any one in first interval, then According to the continuity of image content on long side direction and broadside, the suitable display mode of image is determined.
Wherein, judge the successional method of content in image long side direction content continuity and broadside, can refer to The step S101 of embodiment is stated, here is omitted.
Step S205, the length-width ratio of image is maintained, in display interface, image is shown with display mode.
Specifically, however, it is determined that the display mode of image is to be shown displayed across, and maintains the length-width ratio of image, right in display interface Image is shown displayed across;If it is determined that the display mode of image shows for longitudinal direction, the length-width ratio of image is maintained, in display interface, Longitudinal display is carried out to image.
Step S206, one that whether the length-width ratio of image belongs in multiple second intervals is judged, if so, performing step S207, if it is not, then performing step S208.
Specifically, the length-width ratio for the image to be shown is judged, if one belonged in multiple second intervals, if belonging to more One in individual second interval, the Selection Strategy according to corresponding to second interval, the selected part region from image, and fetching portion The content in region;If being not belonging to any one in multiple second intervals, according to image on long side direction and broadside in The continuity of appearance, determines Selection Strategy.
Step S207, according to Selection Strategy corresponding to affiliated second interval, the selected part region from image, and obtain The content of subregion.
Citing, if the length-width ratio of image is a/b=7/16, according to table 2, determines that the length-width ratio of the image belongs to second interval Section 1, and corresponding Selection Strategy enters to choose the subregion at image long side direction both ends to the white space in picture frame Row filling.
Specifically, because electronics picture frame Aspect Ratio is 9:16, and the Aspect Ratio of image is 7:16, contrast can be seen that When image maintains length-width ratio to be shown in electronics picture frame, image need to fill up electronics picture frame along broadside, and image is along broadside side To after filling up electronics picture frame, the both ends of long side direction can have white space in picture frame, choose the portion at image long side direction both ends Subregion is filled to the white space in picture frame.For example, choose the image block in image at long side direction both ends each 1/10 The white space of long side direction in picture frame is filled respectively.
Step S208, according to the continuity of image content on long side direction and broadside, determine Selection Strategy.
Specifically, if the length-width ratio of image is not belonging to any one in second area, according to image in long side direction and The continuity of content, determines Selection Strategy in broadside.Fig. 4 for it is provided in an embodiment of the present invention calculating image long side direction and The successional region division schematic diagram of broadside content, as shown in figure 4, longitudinally each 1/10 region is distinguished by image long side direction 10 pieces are divided into, calculates the continuity on long side direction, formula By broadside in image, laterally each 1/10 region is respectively divided into 10 pieces, calculates the continuity in broadside, formula
And then if continuity of the image on long side direction determines that Selection Strategy is better than the continuity in broadside Chosen from two end regions of long side direction;If continuity of the image in broadside is better than the continuity on long side direction, Selection Strategy is determined to be chosen from two end regions of broadside.
On step S208 explanation, the record of related content in above-described embodiment is can refer to, here is omitted.
Step S209, if display interface has white space, according to the content got from image, white space is entered Row filling.
Specifically, in display interface, after being shown by suitable display mode to image, if existing in display interface White space from image by Selection Strategy, it is necessary to obtain content, to the content progress gaussian filtering got from image Blurring, obtains blank map picture, according to blank map picture, white space is filled.
Below by way of Fig. 5 to Fig. 9, to illustrate the method for displaying image in the present embodiment, the image of different length-width ratios The result adaptively shown in electronics picture frame.
Fig. 5 is one of exemplary plot that the image that the embodiment of the present invention provides is shown in electronics picture frame, for example, image length and width Than for 7:16, display mode and filling mode of the image in electronics picture frame can determine that according to Tables 1 and 2, as shown in figure 5, According to the length-width ratio of image, determine that image is longitudinally shown in electronics picture frame, and expire picture frame along broadside filling, grown in picture frame The both ends of edge direction can have white space, as shown in the figure A1 on the left side.Choose in image at long side direction both ends each 1/10 Image block, and gaussian filtering blurring is carried out to the content of image block, obtain blank map picture and be filled, obtain the figure on the right B1, i.e. image final display effect.
Fig. 6 is the two of the exemplary plot that the image that the embodiment of the present invention provides is shown in electronics picture frame, for example, image length and width Than for 10:16, display mode and filling mode of the image in electronics picture frame can determine that according to Tables 1 and 2, as shown in fig. 6, According to the length-width ratio of image, determine that image is longitudinally shown in electronics picture frame, and full picture frame is filled along long side direction, it is wide in picture frame The both ends of edge direction can have white space, as shown in the figure A2 on the left side.Choose in image at broadside both ends each 1/10 Image block, and gaussian filtering blurring is carried out to the content of image block, obtain blank map picture and be filled, obtain the figure on the right B2, i.e. image final display effect.
Fig. 7 is the three of the exemplary plot that the image that the embodiment of the present invention provides is shown in electronics picture frame, for example, image length and width Than for 13:9, display mode and filling mode of the image in electronics picture frame can determine that according to Tables 1 and 2, as shown in fig. 7, According to the length and width of image, determine that image is shown displayed across in electronics picture frame, and full picture frame is filled along broadside, long side in picture frame The both ends in direction can have white space, as shown in the figure A3 on the left side.Choose the figure at long side direction both ends each 1/10 in image Gaussian filtering blurring is carried out as block, and to the content of image block, blank map picture is obtained and is filled, obtain the figure B3 on the right, That is the final display effect of image.
Fig. 8 is the four of the exemplary plot that the image that the embodiment of the present invention provides is shown in electronics picture frame, for example, image length and width Than for 18:9, display mode and filling mode of the image in electronics picture frame can determine that according to Tables 1 and 2, as shown in figure 8, According to the length-width ratio of image, determine that image is shown displayed across in electronics picture frame, and full picture frame is filled along long side direction, it is wide in picture frame The both ends of edge direction can have white space, as the figure A4 on the left side is shown.Choose in image at broadside both ends each 1/10 Image block, and gaussian filtering blurring is carried out to the content of image block, obtain blank map picture and be filled, obtain the figure on the right B4, i.e. image final display effect.
Fig. 9 is the five of the exemplary plot that the image that the embodiment of the present invention provides is shown in electronics picture frame, for example, image length and width Than for 13:12, corresponding Tables 1 and 2, the length-width ratio of image is not belonging to any one first interval, it is necessary to according to image in long side The continuity of content determines the display mode of image on direction and broadside, and then, the length-width ratio of image is also not belonging to arbitrarily One second interval is, it is necessary to which the continuity of content determines the filling side of image on long side direction and broadside according to image Formula, as shown in figure 9, according to the length-width ratio of image, the continuity that the long side direction of image is further calculated is better than broadside side To continuity, image is shown displayed across in electronics picture frame, and fills full picture frame along long side direction, the two of broadside in picture frame There is white space in end, as shown in figure A5.The image block at broadside both ends each 1/10 in image is chosen, and to image block Content carries out gaussian filtering blurring, obtains blank map picture and is filled, and obtains the figure B5 on the right, the i.e. final display effect of image Fruit.
It should be noted that when image length-width ratio is 13:When 12, may also similarly obtain image broadside it is continuous Property is better than long side direction, and such a situation is similar with the realization principle of Fig. 9 display images, and here is omitted.
In a kind of method for displaying image of the present embodiment, according to the length-width ratio of image, the suitable display mode of image is determined, Display mode maintains the length-width ratio of image, in display interface, image is carried out with display mode to be shown displayed across or longitudinally showing It has been shown that, if display interface has white space, according to the content got from image, is filled to white space.Solve In the prior art, image could be displayed in full screen after must rationally being cut in viewing area, and this cutting method, meeting Image information is caused to be lost, the problem of influenceing image shows effect.
In order to realize above-described embodiment, the present invention also proposes a kind of image display device.
A kind of structural representation for image display device that Figure 10 is provided by the embodiment of the present invention.
As shown in Figure 10, the image display device includes:Determining module 11, display module 12 and filling module 13.
Determining module 11, for the length-width ratio according to image, the suitable display mode of image is determined, display mode is laterally Display or longitudinal direction display.
Display module 12, for maintaining the length-width ratio of image, in display interface, image is shown with display mode.
Module 13 is filled, if white space be present for display interface, according to the content got from image, to blank Region is filled.
As a kind of possible implementation, filling module 13 is specifically used for:The content got from image is carried out Blurring, obtains blank map picture, according to the blank map picture, white space is filled.
It should be noted that the above-mentioned explanation to embodiment of the method, the device of the present embodiment is also applied for, herein not Repeat again.
In a kind of image display device of the present embodiment, determining module is used for the length-width ratio according to image, determines that image is fitted Suitable display mode, for display mode to be shown displayed across or longitudinally showing, display module is used for the length-width ratio for maintaining image, is showing Interface, image is shown with display mode, if filling module has white space for display interface, according to from image The content got, is filled to white space.Solve in the prior art, image could be after must rationally being cut It is displayed in full screen in viewing area, and this cutting method, image information can be caused to lose, the problem of influenceing image shows effect.
Based on above-described embodiment, the embodiment of the present invention additionally provides a kind of possible implementation of image display device, The structural representation for another image display device that Figure 11 is provided by the embodiment of the present invention, it is as shown in figure 11, real upper one On the basis of applying example, image display device also includes:Acquisition module 14.
Acquisition module 14, if one that the length-width ratio for image belongs in multiple second intervals, according to affiliated second Selection Strategy corresponding to section, the selected part region from image, and the subregional content of acquisition unit;If the length-width ratio of image is not Belong to any one in multiple second intervals, according to the continuity of image content on long side direction and broadside, it is determined that choosing Take strategy.
As a kind of possible implementation, acquisition module 14 is specifically used for:If continuity of the image on long side direction Better than the continuity in broadside, Selection Strategy is determined to be chosen from two end regions of long side direction;If image is in broadside Continuity on direction determines Selection Strategy to be selected from two end regions of broadside better than the continuity on long side direction Take.
As a kind of possible implementation, determining module 11 includes determining unit 111.
Determining unit 111, if one that the length-width ratio for image belongs in multiple first intervals, according to affiliated first Display mode corresponding to section, determine the suitable display mode of image;If the length-width ratio of image is not belonging in multiple first intervals Any one, according to the continuity of image content on long side direction and broadside, determine the suitable display mode of image.
As a kind of possible implementation, determining unit 111, if the continuity specifically for image on long side direction Better than the continuity in broadside, the suitable display mode of image is determined to be shown displayed across;
If continuity of the image in broadside determines the suitable display side of image better than the continuity on long side direction Formula shows for longitudinal direction.
It should be noted that the foregoing explanation to embodiment of the method, the device of the present embodiment is also applied for, herein not Repeat again.
In a kind of image display device of the present embodiment, determining module is used for the length-width ratio according to image, determines that image is fitted Suitable display mode, for display mode to be shown displayed across or longitudinally showing, display module is used for the length-width ratio for maintaining image, is showing Interface, image is shown with display mode, if filling module has white space for display interface, according to from image The content got, is filled to white space.Solve in the prior art, image could be after must rationally being cut It is displayed in full screen in viewing area, and this cutting method, image information can be caused to lose, the problem of influenceing image shows effect.
In order to realize above-described embodiment, the present invention also proposes a kind of computer equipment, including memory, processor and storage On a memory and the computer program that can run on a processor, during computing device described program, preceding method reality is realized Apply the method for displaying image described in example.
In order to realize above-described embodiment, the present invention also proposes a kind of non-transitorycomputer readable storage medium, deposited thereon Computer program is contained, when the program is executed by processor, realizes the method for displaying image described in preceding method embodiment.
In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", " specifically show The description of example " or " some examples " etc. means specific features, structure, material or the spy for combining the embodiment or example description Point is contained at least one embodiment or example of the present invention.In this manual, to the schematic representation of above-mentioned term not Identical embodiment or example must be directed to.Moreover, specific features, structure, material or the feature of description can be with office Combined in an appropriate manner in one or more embodiments or example.In addition, in the case of not conflicting, the skill of this area Art personnel can be tied the different embodiments or example and the feature of different embodiments or example described in this specification Close and combine.
In addition, term " first ", " second " are only used for describing purpose, and it is not intended that instruction or hint relative importance Or the implicit quantity for indicating indicated technical characteristic.Thus, define " first ", the feature of " second " can be expressed or Implicitly include at least one this feature.In the description of the invention, " multiple " are meant that at least two, such as two, three It is individual etc., unless otherwise specifically defined.
Any process or method described otherwise above description in flow chart or herein is construed as, and represents to include Module, fragment or the portion of the code of the executable instruction of one or more the step of being used to realize custom logic function or process Point, and the scope of the preferred embodiment of the present invention includes other realization, wherein can not press shown or discuss suitable Sequence, including according to involved function by it is basic simultaneously in the way of or in the opposite order, carry out perform function, this should be of the invention Embodiment person of ordinary skill in the field understood.
Expression or logic and/or step described otherwise above herein in flow charts, for example, being considered use In the order list for the executable instruction for realizing logic function, may be embodied in any computer-readable medium, for Instruction execution system, device or equipment (such as computer based system including the system of processor or other can be held from instruction The system of row system, device or equipment instruction fetch and execute instruction) use, or combine these instruction execution systems, device or set It is standby and use.For the purpose of this specification, " computer-readable medium " can any can be included, store, communicate, propagate or pass Defeated program is for instruction execution system, device or equipment or the dress used with reference to these instruction execution systems, device or equipment Put.The more specifically example (non-exhaustive list) of computer-readable medium includes following:Electricity with one or more wiring Connecting portion (electronic installation), portable computer diskette box (magnetic device), random access memory (RAM), read-only storage (ROM), erasable edit read-only storage (EPROM or flash memory), fiber device, and portable optic disk is read-only deposits Reservoir (CDROM).In addition, computer-readable medium, which can even is that, to print the paper of described program thereon or other are suitable Medium, because can then enter edlin, interpretation or if necessary with it for example by carrying out optical scanner to paper or other media His suitable method is handled electronically to obtain described program, is then stored in computer storage.
It should be appreciated that each several part of the present invention can be realized with hardware, software, firmware or combinations thereof.Above-mentioned In embodiment, software that multiple steps or method can be performed in memory and by suitable instruction execution system with storage Or firmware is realized.Such as, if realized with hardware with another embodiment, following skill well known in the art can be used Any one of art or their combination are realized:With the logic gates for realizing logic function to data-signal from Logic circuit is dissipated, the application specific integrated circuit with suitable combinational logic gate circuit, programmable gate array (PGA), scene can compile Journey gate array (FPGA) etc..
Those skilled in the art are appreciated that to realize all or part of step that above-described embodiment method carries Suddenly it is that by program the hardware of correlation can be instructed to complete, described program can be stored in a kind of computer-readable storage medium In matter, the program upon execution, including one or a combination set of the step of embodiment of the method.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing module, can also That unit is individually physically present, can also two or more units be integrated in a module.Above-mentioned integrated mould Block can both be realized in the form of hardware, can also be realized in the form of software function module.The integrated module is such as Fruit is realized in the form of software function module and as independent production marketing or in use, can also be stored in a computer In read/write memory medium.
Storage medium mentioned above can be read-only storage, disk or CD etc..Although have been shown and retouch above Embodiments of the invention are stated, it is to be understood that above-described embodiment is exemplary, it is impossible to be interpreted as the limit to the present invention System, one of ordinary skill in the art can be changed to above-described embodiment, change, replace and become within the scope of the invention Type.

Claims (10)

1. a kind of method for displaying image, it is characterised in that comprise the following steps:
According to the length-width ratio of image, the suitable display mode of described image is determined;The display mode for be shown displayed across or longitudinal direction Display;
The length-width ratio of described image is maintained, in display interface, described image is shown with the display mode;
If the display interface has white space, according to the content got from described image, the white space is entered Row filling.
2. method for displaying image according to claim 1, it is characterised in that what the basis was got from described image Content, the white space is filled, including:
The content got from described image is blurred, obtains blank map picture;
According to the blank map picture, the white space is filled.
3. method for displaying image according to claim 1, it is characterised in that the length-width ratio according to image, determine institute The suitable display mode of image is stated, including:
One that if the length-width ratio of described image belongs in multiple first intervals, according to the side of display corresponding to affiliated first interval Formula, determine the suitable display mode of described image;
If the length-width ratio of described image is not belonging to any one in multiple first intervals, according to described image in long side direction and width The continuity of content on edge direction, determine the suitable display mode of described image.
4. method for displaying image according to claim 3, it is characterised in that it is described according to described image in long side direction and The continuity of content in broadside, the suitable display mode of described image is determined, including:
If continuity of the described image on long side direction determines that described image is suitable and shown better than the continuity in broadside Show mode to be shown displayed across;
If continuity of the described image in broadside determines that described image is suitable and shown better than the continuity on long side direction Show that mode shows for longitudinal direction.
5. method for displaying image according to claim 1, it is characterised in that what the basis was got from described image Content, before being filled to the white space, in addition to:
One that if the length-width ratio of described image belongs in multiple second intervals, plan is chosen according to corresponding to affiliated second interval Slightly, the selected part region from described image, and obtain the content of the subregion;
If the length-width ratio of described image is not belonging to any one in multiple second intervals, according to described image in long side direction and width The continuity of content, determines Selection Strategy on edge direction.
6. method for displaying image according to claim 5, it is characterised in that it is described according to described image in long side direction and The continuity of content in broadside, determines Selection Strategy, including:
If continuity of the described image on long side direction better than the continuity in broadside, determine the Selection Strategy be from Chosen in two end regions of long side direction;
If continuity of the described image in broadside better than the continuity on long side direction, determine the Selection Strategy be from Chosen in two end regions of broadside.
7. the method for displaying image according to claim 3 or 5, it is characterised in that the continuity on the long side direction is According to formulaIt is calculated;
Wherein, T (x, y) represents the gray value of the pixel (x, y) along each image block of long side direction division, and F (x ', y ') is represented The gray value of image block adjacent thereto at corresponding pixel points (x ', y ') place;
And/or the continuity in the broadside is according to formula It is calculated;
Wherein, t (x, y) represents the gray value of the pixel (x, y) along each image block of broadside division, and f (x ', y ') is represented The gray value of image block adjacent thereto at corresponding pixel points (x ', y ') place.
A kind of 8. image display device, it is characterised in that including:
Determining module, for the length-width ratio according to image, determine the suitable display mode of described image;The display mode is horizontal stroke To display or longitudinal direction display;
Display module, for maintaining the length-width ratio of described image, in display interface, described image is carried out with the display mode Display;
Module is filled, if white space be present for the display interface, according to the content got from described image, to institute White space is stated to be filled.
9. a kind of computer equipment, it is characterised in that including memory, processor and storage on a memory and can be in processor The computer program of upper operation, during the computing device described program, realize the image as described in any in claim 1-7 Display methods.
10. a kind of non-transitorycomputer readable storage medium, is stored thereon with computer program, it is characterised in that the program The method for displaying image as described in any in claim 1-7 is realized when being executed by processor.
CN201710642900.XA 2017-07-31 2017-07-31 Image display method and device Active CN107393459B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710642900.XA CN107393459B (en) 2017-07-31 2017-07-31 Image display method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710642900.XA CN107393459B (en) 2017-07-31 2017-07-31 Image display method and device

Publications (2)

Publication Number Publication Date
CN107393459A true CN107393459A (en) 2017-11-24
CN107393459B CN107393459B (en) 2020-07-31

Family

ID=60344225

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710642900.XA Active CN107393459B (en) 2017-07-31 2017-07-31 Image display method and device

Country Status (1)

Country Link
CN (1) CN107393459B (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108200462A (en) * 2017-12-29 2018-06-22 深圳Tcl新技术有限公司 TV image processing method, television equipment and computer readable storage medium
CN108491847A (en) * 2018-02-02 2018-09-04 口碑(上海)信息技术有限公司 Method for expanding image and device
CN110162286A (en) * 2019-05-17 2019-08-23 维沃移动通信有限公司 A kind of image display method and terminal
CN111126023A (en) * 2020-03-30 2020-05-08 江西博微新技术有限公司 Graphic processing method, system, readable storage medium and computer device
WO2021063221A1 (en) * 2019-09-30 2021-04-08 华为技术有限公司 Display method for electronic device, electronic device and computer readable storage medium
CN112840666A (en) * 2019-09-25 2021-05-25 京东方科技集团股份有限公司 Display terminal image display method and device, electronic equipment and storage medium
CN113163228A (en) * 2020-01-22 2021-07-23 聚好看科技股份有限公司 Media asset playing type marking method and server
CN114554109A (en) * 2020-11-26 2022-05-27 华为技术有限公司 Image picture self-adaptive cutting method and electronic equipment
CN116737102A (en) * 2023-08-15 2023-09-12 南京易联阳光信息技术股份有限公司 Cloud medicine data processing method and platform

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004066567A (en) * 2002-08-05 2004-03-04 Fuji Xerox Co Ltd Apparatus and method for specifying print conditions
CN1627179A (en) * 2003-12-12 2005-06-15 惠普开发有限公司 Method and apparatus for mapping image shapes for a display device
CN101272434A (en) * 2007-03-19 2008-09-24 佳能株式会社 Image-providing apparatus and control method thereof, printing apparatus and control method thereof, and printing system
CN101315764A (en) * 2007-06-01 2008-12-03 唐艺华 Rectangle group display equipment and control method thereof

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004066567A (en) * 2002-08-05 2004-03-04 Fuji Xerox Co Ltd Apparatus and method for specifying print conditions
CN1627179A (en) * 2003-12-12 2005-06-15 惠普开发有限公司 Method and apparatus for mapping image shapes for a display device
CN101272434A (en) * 2007-03-19 2008-09-24 佳能株式会社 Image-providing apparatus and control method thereof, printing apparatus and control method thereof, and printing system
CN101315764A (en) * 2007-06-01 2008-12-03 唐艺华 Rectangle group display equipment and control method thereof

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108200462A (en) * 2017-12-29 2018-06-22 深圳Tcl新技术有限公司 TV image processing method, television equipment and computer readable storage medium
CN108491847A (en) * 2018-02-02 2018-09-04 口碑(上海)信息技术有限公司 Method for expanding image and device
CN110162286A (en) * 2019-05-17 2019-08-23 维沃移动通信有限公司 A kind of image display method and terminal
CN112840666A (en) * 2019-09-25 2021-05-25 京东方科技集团股份有限公司 Display terminal image display method and device, electronic equipment and storage medium
CN112840666B (en) * 2019-09-25 2023-04-28 京东方艺云(杭州)科技有限公司 Display terminal image display method and device, electronic equipment and storage medium
WO2021063221A1 (en) * 2019-09-30 2021-04-08 华为技术有限公司 Display method for electronic device, electronic device and computer readable storage medium
CN113163228A (en) * 2020-01-22 2021-07-23 聚好看科技股份有限公司 Media asset playing type marking method and server
CN113163228B (en) * 2020-01-22 2022-11-08 聚好看科技股份有限公司 Media asset playing type marking method and server
CN111126023A (en) * 2020-03-30 2020-05-08 江西博微新技术有限公司 Graphic processing method, system, readable storage medium and computer device
CN114554109A (en) * 2020-11-26 2022-05-27 华为技术有限公司 Image picture self-adaptive cutting method and electronic equipment
CN116737102A (en) * 2023-08-15 2023-09-12 南京易联阳光信息技术股份有限公司 Cloud medicine data processing method and platform
CN116737102B (en) * 2023-08-15 2023-10-20 南京易联阳光信息技术股份有限公司 Cloud medicine data processing method and platform

Also Published As

Publication number Publication date
CN107393459B (en) 2020-07-31

Similar Documents

Publication Publication Date Title
CN107393459A (en) Method for displaying image and device
CN101601287B (en) Apparatus and methods of producing photorealistic image thumbnails
US6415306B2 (en) Method for selecting next feature for placement on a page
AU2008202672B2 (en) Automatic layout based on visual context
TWI524734B (en) Method and device for generating a depth map
US8711141B2 (en) 3D image generating method, 3D animation generating method, and both 3D image generating module and 3D animation generating module thereof
CN109462747B (en) DIBR system cavity filling method based on generation countermeasure network
EP2849426A1 (en) Color video processing system and method, and corresponding computer program
CN104484855B (en) The method and apparatus that picture is cut
RU99125763A (en) METHOD AND DEVICE FOR INTEGRATING INFORMATION, MEDIA
TW201446009A (en) Noise reduced color image using panchromatic image
TW201222468A (en) Method and arrangement for censoring content in images
CN103051915B (en) Manufacture method and manufacture device for interactive three-dimensional video key frame
JP2006018842A5 (en)
KR20120101974A (en) Method and system for rendering three dimensional views of a scene
CN102098528A (en) Method and device for converting planar image into stereoscopic image
EP2161940A3 (en) Image processing device and method, and computer readable recording medium containing program
US7088375B1 (en) Grouping layers in composited image manipulation
CN109120867A (en) Image synthesizing method and device
CN103238168A (en) Image processing apparatus, image processing method, and image processing program
CN107636728A (en) For the method and apparatus for the depth map for determining image
US6620206B1 (en) White space equalization around features placed on a page
US20060257023A1 (en) Method and system for image border color selection
CN113205446A (en) Method and device for identifying semitransparent watermark in video and electronic equipment
CN114692034A (en) Image display method, image display device, electronic equipment and computer storage medium

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