CN104156371A - Method and device for browsing images with hue changing along with musical scales - Google Patents

Method and device for browsing images with hue changing along with musical scales Download PDF

Info

Publication number
CN104156371A
CN104156371A CN201310179629.2A CN201310179629A CN104156371A CN 104156371 A CN104156371 A CN 104156371A CN 201310179629 A CN201310179629 A CN 201310179629A CN 104156371 A CN104156371 A CN 104156371A
Authority
CN
China
Prior art keywords
scale
gray
image
mapping relations
sequence
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.)
Pending
Application number
CN201310179629.2A
Other languages
Chinese (zh)
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.)
HAOKAN TECHNOLOGY (SHENZHEN) Co Ltd
Original Assignee
HAOKAN 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 HAOKAN TECHNOLOGY (SHENZHEN) Co Ltd filed Critical HAOKAN TECHNOLOGY (SHENZHEN) Co Ltd
Priority to CN201310179629.2A priority Critical patent/CN104156371A/en
Publication of CN104156371A publication Critical patent/CN104156371A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/40Information retrieval; Database structures therefor; File system structures therefor of multimedia data, e.g. slideshows comprising image and additional audio data
    • G06F16/44Browsing; Visualisation therefor

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Multimedia (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention relates to a method and device for browsing images with hue changing along with musical scales. The method comprises the first step of obtaining the music scores of music files played by a terminal, an image sequence to be browsed and a gray scale mapping relation table, wherein the gray scale mapping relation table includes mapping relations between gray value fields and the musical scales, the second step of obtaining the gray average of each image in the image sequence to be browsed, the third step of correlating the images to be browsed in the gray scale mapping relation table with the musical scores of the music files to be played by the terminal and conducting sorting according to the gray value fields which the gray averages belong to in the gray scale mapping relation table, and the fourth step of pushing the images subjected to correlation and sorting to users for browsing. According to the technical scheme, correlation of the images and music is achieved, the music which the users listen to and the images which the users watch are correlative, and listening to the music and watching the images are no longer uncorrelated independent experience, but are organically combined.

Description

Image browsing method and device that a kind of tone changes with scale
Technical field
The present invention relates to image processing field, image browsing method and device that particularly a kind of tone changes with scale.
Background technology
Along with the development of internet, increasing people understands external information by internet.Image is very important information media always, also can bring aesthetic feeling to user simultaneously.
In addition, by internet, listening to the music is a kind of popular entertainment selection.Sometimes listening to the music is also a kind of embodiment of mental state, and a lot of people like listening music picture with the aid of pictures.But music and image are self-existent, user may open music player and remove picture with the aid of pictures, or is putting music in picture with the aid of pictures, actual pleasant to the ear and see not direct not associated.Also without any technology, music is combined with image at present, user is isolated reception music and the information of image, cannot allow the two in conjunction with presenting to the Experience Degree that user improves user.
Summary of the invention
The object of the invention is for the problems referred to above, image browsing method and device that a kind of tone changes with scale are proposed, realized the associated of image and music, the music that user listens and the image of seeing have correlativity, both are no longer incoherent independently experience, but are combined.
For achieving the above object, the invention provides the image browsing method that a kind of tone changes with scale, the method comprises:
Obtain the music file music score of Chinese operas of terminal plays, the image sequence that browse and gray scale scale mapping relations table; Wherein, described gray scale scale mapping relations table is the mapping relations between gray scale codomain and scale;
Obtain the gray average of every width image in the described image sequence that will browse;
According to described gray average, belong to which the gray scale codomain in gray scale scale mapping relations table, the associated sequence of the music file music score of Chinese operas that the image that will be browsed by described gray scale scale mapping relations table will be play with described terminal;
Image after association sequence is pushed to user to be browsed.
Optionally, in an embodiment of the present invention, described in obtain the gray average of every width image in the described image sequence that will browse step comprise:
Convert described image to gray-scale map;
According to the gray-scale value of each pixel of described gray-scale map, obtain the gray average of image.
Optionally, in an embodiment of the present invention, described gray-scale map obtains by floating-point arithmetic, integer arithmetic, shifting algorithm or average algorithm.
Optionally, in an embodiment of the present invention, described image after association sequence is pushed to the method that user browses is that ordering image adopts streaming or grid type layout to show.
For achieving the above object, the picture browsing device that the present invention also provides a kind of tone to change with scale, comprising:
Pretreatment unit, for obtaining the music file music score of Chinese operas of terminal plays, the image sequence that browse and gray scale scale mapping relations table; Wherein, described gray scale scale mapping relations table is the mapping relations between gray scale codomain and scale;
Gradation of image processing unit, for obtaining the gray average of the described every width image of image sequence that will browse;
Map unit, for belong to which gray scale codomain of gray scale scale mapping relations table according to described gray average, the associated sequence of the music file music score of Chinese operas that the image that will be browsed by described gray scale scale mapping relations table will be play with described terminal;
Browse unit, browses for the image after association sequence is pushed to user.
Optionally, in an embodiment of the present invention, described gradation of image processing unit comprises:
Image conversion module, for converting described image to gray-scale map;
Gray average acquisition module, for obtaining the gray average of image according to the gray-scale value of each pixel of described gray-scale map.
Optionally, in an embodiment of the present invention, described image conversion module is obtained by floating-point arithmetic, integer arithmetic, shifting algorithm or average algorithm.
Optionally, in an embodiment of the present invention, described browse unit adopts streaming or grid type layout to show sorted image.
Technique scheme has following beneficial effect: adopt the application's technical scheme, make these two kinds of image and music seem disjoint thing and organically combine, user becomes more three-dimensional, abundanter in the aid of pictures and experience that listen to the music.At you, be in a cheerful frame of mind, when listening cheerful and light-hearted tune, the inclined to one side light tone of picture that you see, allows your mood sunlight more; Not so good in your mood, when listening overcast tune and seeking sympathetic response, the picture of seeing is partially dark-coloured, allows you more can have sympathetic response sense, thereby takes comfort.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, to the accompanying drawing of required use in embodiment or description of the Prior Art be briefly described below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skills, do not paying under the prerequisite of creative work, can also obtain according to these accompanying drawings other accompanying drawing.
Fig. 1 is one of image browsing method process flow diagram of changing with scale of a kind of tone of proposing of the present invention;
Fig. 2 is two of the image browsing method process flow diagram that changes with scale of a kind of tone of proposing of the present invention;
Fig. 3 is one of picture browsing apparatus structure block diagram of changing with scale of a kind of tone of proposing of the present invention;
Fig. 4 is two of the picture browsing apparatus structure block diagram that changes with scale of a kind of tone of proposing of the present invention;
Fig. 5 is embodiments of the invention process flow diagram.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described.Obviously, described embodiment is only the present invention's part embodiment, rather than whole embodiment.Embodiment based in the present invention, those of ordinary skills, not making the every other embodiment obtaining under creative work prerequisite, belong to the scope of protection of the invention.
As shown in Figure 1, the image browsing method process flow diagram that a kind of tone proposing for the present invention changes with scale.The method comprises:
Step 101): obtain the music file music score of Chinese operas of terminal plays, the image sequence that browse and gray scale scale mapping relations table; Wherein, described gray scale scale mapping relations table is the mapping relations between gray scale codomain and scale;
In the embodiment of Fig. 5, colour picture is done to greyscale transformation, be converted to artwork master, then average as the gray-scale value of whole pictures with the gray-scale value of pixel.First method is: the gray-scale value of 0-255 is divided into 7 intervals ([0,35], [36,71], [72,107], [108,143], [144,179], [180,215], [216,255]), corresponding scale 1234567.
Or second method is: the average gray scale of each picture can with the mapping relations of setting up of high, normal, basic three scales, such as: by the gray-scale value of 0-255, be divided into 21 intervals ([0,11], [12,23], [24,35] ... [244,255]), corresponding scale bass 1234567, middle pitch 1234567, high pitch 1234567.
Step 102): the gray average that obtains every width image in the described image sequence that will browse;
Step 103): according to described gray average, belong to which the gray scale codomain in gray scale scale mapping relations table, the associated sequence of the music file music score of Chinese operas that the image that will be browsed by described gray scale scale mapping relations table will be play with described terminal;
Step 104): the image after association sequence is pushed to user and browses.
As shown in Figure 2, two of the image browsing method process flow diagram that a kind of tone proposing for the present invention changes with scale.On the basis of Fig. 1, to step 102) be decomposed into:
Step 1021): convert described image to gray-scale map;
Step 1022): the gray average that obtains image according to the gray-scale value of each pixel of described gray-scale map.
Step 1021) in, by floating-point arithmetic, integer arithmetic, shifting algorithm or average algorithm, obtain.
Gray scale also can be thought brightness, simply says to be exactly the depth degree of color.Gray scale refers to the color depth of black white image mid point, scope generally from 0 to 255, white is 255, and black is 0, therefore black and white picture also claims gray level image, if it is converted into the pixel value (being a kind of formulation of broad sense) after black white image really the gray scale of color image, the method transforming is seen the field of application and determines, generally by the method conversion of weighting, R, G, the ratio of B is generally 3:6:1.
Any color is all comprised of Red Green Blue, if the color of certain point was RGB (R, G, B) originally, so, we can pass through several method below, are converted into gray scale:
1, floating-point arithmetic: Gray=R*0.3+G*0.59+B*0.11
2, integer method: Gray=(R*30+G*59+B*11)/100
3, displacement method: Gray=(R*28+G*151+B*77) >>8;
4, mean value method: Gray=(R+G+B)/3;
5, only get green: Gray=G;
By above-mentioned any method, try to achieve after Gray, by the R in original RGB (R, G, B), G, B is unified to be replaced with Gray, forms new color RGB (Gray, Gray, Gray), and with it, replacing original RGB (R, G, B) has been exactly gray-scale map.
Optionally, in an embodiment of the present invention, described image after association sequence is pushed to the method that user browses is that ordering image adopts streaming or grid type layout to show.
As shown in Figure 3, one of picture browsing apparatus structure block diagram that a kind of tone proposing for the present invention changes with scale.Comprise:
Pretreatment unit 301, for obtaining the music file music score of Chinese operas of terminal plays, the image sequence that browse and gray scale scale mapping relations table; Wherein, described gray scale scale mapping relations table is the mapping relations between gray scale codomain and scale;
Gradation of image processing unit 302, for obtaining the gray average of the described every width image of image sequence that will browse;
Map unit 303, for belong to which gray scale codomain of gray scale scale mapping relations table according to described gray average, the associated sequence of the music file music score of Chinese operas that the image that will be browsed by described gray scale scale mapping relations table will be play with described terminal;
Browse unit 304, browses for the image after association sequence is pushed to user.
As shown in Figure 4, two of the picture browsing apparatus structure block diagram that a kind of tone proposing for the present invention changes with scale.On the basis of Fig. 3, described gradation of image processing unit 302 comprises:
Image conversion module 3021, for converting described image to gray-scale map;
Gray average acquisition module 3022, for obtaining the gray average of image according to the gray-scale value of each pixel of described gray-scale map.
Optionally, in an embodiment of the present invention, described image conversion module 3021 is obtained by floating-point arithmetic, integer arithmetic, shifting algorithm or average algorithm.
Optionally, in an embodiment of the present invention, described browse unit 304 adopts streaming or grid type layout to show sorted image.
As shown in Figure 5, be embodiments of the invention process flow diagram.User can open local music player or online music player, if user requires online browse picture, player obtains the music file information of terminal plays, and music file information is sent to associated server, associated server requires by the music file acquisition of information music file music score of Chinese operas, user the sequence of pictures of browsing, and requires the sequence of pictures of browsing to obtain gray scale scale mapping relations table according to the music file music score of Chinese operas, user.Simultaneously, associated server requires the sequence of pictures of browsing to process to user, obtains the gray average of each picture, according to the gray average of each picture, by gray scale scale mapping relations table, by picture sequence associated with the music score of Chinese operas, the picture after sequence is pushed to user in a certain way and browses.During the picture of user on seeing webpage or client, open music (or switching song), picture carries out by the sequence of music score of Chinese operas scale in service end automatically, in webpage or client, show user just by the picture that is tonal variation.
Above-described embodiment; object of the present invention, technical scheme and beneficial effect are further described; institute is understood that; the foregoing is only the specific embodiment of the present invention; the protection domain being not intended to limit the present invention; within the spirit and principles in the present invention all, any modification of making, be equal to replacement, improvement etc., within all should being included in protection scope of the present invention.

Claims (8)

1. the image browsing method that tone changes with scale, is characterized in that, the method comprises:
Obtain the music file music score of Chinese operas of terminal plays, the image sequence that browse and gray scale scale mapping relations table; Wherein, described gray scale scale mapping relations table is the mapping relations between gray scale codomain and scale;
Obtain the gray average of every width image in the described image sequence that will browse;
According to described gray average, belong to which the gray scale codomain in gray scale scale mapping relations table, the associated sequence of the music file music score of Chinese operas that the image that will be browsed by described gray scale scale mapping relations table will be play with described terminal;
Image after association sequence is pushed to user to be browsed.
2. the method for claim 1, is characterized in that, described in obtain the gray average of every width image in the described image sequence that will browse step comprise:
Convert described image to gray-scale map;
According to the gray-scale value of each pixel of described gray-scale map, obtain the gray average of image.
3. method as claimed in claim 2, is characterized in that, described gray-scale map obtains by floating-point arithmetic, integer arithmetic, shifting algorithm or average algorithm.
4. the method for claim 1, is characterized in that, described image after association sequence is pushed to the method that user browses is that ordering image adopts streaming or grid type layout to show.
5. the picture browsing device that tone changes with scale, is characterized in that, comprising:
Pretreatment unit, for obtaining the music file music score of Chinese operas of terminal plays, the image sequence that browse and gray scale scale mapping relations table; Wherein, described gray scale scale mapping relations table is the mapping relations between gray scale codomain and scale;
Gradation of image processing unit, for obtaining the gray average of the described every width image of image sequence that will browse;
Map unit, for belong to which gray scale codomain of gray scale scale mapping relations table according to described gray average, the associated sequence of the music file music score of Chinese operas that the image that will be browsed by described gray scale scale mapping relations table will be play with described terminal;
Browse unit, browses for the image after association sequence is pushed to user.
6. device as claimed in claim 5, is characterized in that, described gradation of image processing unit comprises:
Image conversion module, for converting described image to gray-scale map;
Gray average acquisition module, for obtaining the gray average of image according to the gray-scale value of each pixel of described gray-scale map.
7. device as claimed in claim 6, is characterized in that, described image conversion module is obtained by floating-point arithmetic, integer arithmetic, shifting algorithm or average algorithm.
8. device as claimed in claim 5, is characterized in that, described browse unit adopts streaming or grid type layout to show sorted image.
CN201310179629.2A 2013-05-15 2013-05-15 Method and device for browsing images with hue changing along with musical scales Pending CN104156371A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310179629.2A CN104156371A (en) 2013-05-15 2013-05-15 Method and device for browsing images with hue changing along with musical scales

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310179629.2A CN104156371A (en) 2013-05-15 2013-05-15 Method and device for browsing images with hue changing along with musical scales

Publications (1)

Publication Number Publication Date
CN104156371A true CN104156371A (en) 2014-11-19

Family

ID=51881876

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310179629.2A Pending CN104156371A (en) 2013-05-15 2013-05-15 Method and device for browsing images with hue changing along with musical scales

Country Status (1)

Country Link
CN (1) CN104156371A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104731508A (en) * 2015-03-31 2015-06-24 努比亚技术有限公司 Audio playing method and device
CN105224588A (en) * 2015-06-29 2016-01-06 深圳市美贝壳科技有限公司 According to method and the device of photo dominant hue generation background music
CN105472143A (en) * 2015-11-20 2016-04-06 冠捷显示科技(厦门)有限公司 Privacy protection equipment of mobile device and privacy protection method thereof
CN108694934A (en) * 2018-05-14 2018-10-23 陕西科技大学 A kind of bitmap-converted is the method for music rhythm
CN115630025A (en) * 2022-12-21 2023-01-20 深圳市傲冠软件股份有限公司 System and method for monitoring file changes in a shared file system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070101355A1 (en) * 2005-11-03 2007-05-03 Samsung Electronics Co., Ltd Device, method, and medium for expressing content dynamically
CN101185138A (en) * 2005-05-27 2008-05-21 松下电器产业株式会社 Display device
CN101609703A (en) * 2008-06-20 2009-12-23 索尼爱立信移动通讯有限公司 Music browser device and music browsing method
CN101622641A (en) * 2007-09-05 2010-01-06 索尼株式会社 Image selecting device, image selecting method and program
CN102177703A (en) * 2008-10-07 2011-09-07 皇家飞利浦电子股份有限公司 Method and apparatus for generating a sequence of a plurality of images to be displayed whilst accompanied by audio

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101185138A (en) * 2005-05-27 2008-05-21 松下电器产业株式会社 Display device
US20070101355A1 (en) * 2005-11-03 2007-05-03 Samsung Electronics Co., Ltd Device, method, and medium for expressing content dynamically
CN101622641A (en) * 2007-09-05 2010-01-06 索尼株式会社 Image selecting device, image selecting method and program
CN101609703A (en) * 2008-06-20 2009-12-23 索尼爱立信移动通讯有限公司 Music browser device and music browsing method
CN102177703A (en) * 2008-10-07 2011-09-07 皇家飞利浦电子股份有限公司 Method and apparatus for generating a sequence of a plurality of images to be displayed whilst accompanied by audio

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104731508A (en) * 2015-03-31 2015-06-24 努比亚技术有限公司 Audio playing method and device
CN104731508B (en) * 2015-03-31 2017-12-22 努比亚技术有限公司 Audio frequency playing method and device
CN105224588A (en) * 2015-06-29 2016-01-06 深圳市美贝壳科技有限公司 According to method and the device of photo dominant hue generation background music
CN105472143A (en) * 2015-11-20 2016-04-06 冠捷显示科技(厦门)有限公司 Privacy protection equipment of mobile device and privacy protection method thereof
CN105472143B (en) * 2015-11-20 2019-01-04 冠捷显示科技(厦门)有限公司 The anti-theft endoscope device and its glance prevention method of running gear
CN108694934A (en) * 2018-05-14 2018-10-23 陕西科技大学 A kind of bitmap-converted is the method for music rhythm
CN108694934B (en) * 2018-05-14 2022-10-21 陕西科技大学 Method for converting bitmap into music melody
CN115630025A (en) * 2022-12-21 2023-01-20 深圳市傲冠软件股份有限公司 System and method for monitoring file changes in a shared file system
CN115630025B (en) * 2022-12-21 2023-03-17 深圳市傲冠软件股份有限公司 System and method for monitoring file changes in a shared file system

Similar Documents

Publication Publication Date Title
CN104156371A (en) Method and device for browsing images with hue changing along with musical scales
CN101646092B (en) Picture processing method and mobile communication terminal
CN103493487B (en) Apparatuses and methods for HDR image encoding and decoding
Li et al. Aesthetic visual quality assessment of paintings
CN1977542B (en) Dominant color extraction using perceptual rules to produce ambient light derived from video content
KR20210015959A (en) Video signal processing method and apparatus
CN103688287B (en) Make source images content-adaptive in the method for target indicator
CN102223547B (en) Image color enhancement device and method
CN102027806B (en) Stochastic dynamic atmosphere
CN102289778A (en) Method for converting image into music
CN102123546A (en) Full-color acousto-optic conversion control method and system
CN107241637B (en) Method for intelligently matching application icons with backboard color plates based on HSB color mode
Gong et al. Image quality evaluation for smart-phone displays at lighting levels of indoor and outdoor conditions
CN105915687A (en) User Interface Adjusting Method And Apparatus Using The Same
CN104376834B (en) A kind of luminance regulating method and electronic equipment
CN105320488A (en) Control method, display method and electronic device
KR101896193B1 (en) Method for converting image into music
US20180091234A1 (en) Terminal device, apparatus and method for transmitting an image
WO2022246985A1 (en) Page display update method and apparatus, and electronic device and storage medium
CN106231209A (en) Method for realizing background picture of video detail page
Mureika Fractal dimensions in perceptual color space: a comparison study using Jackson Pollock’s art
JP6742417B2 (en) Digital image processing method, associated device, terminal device and computer program
Yanagida et al. Color scheme adjustment by fuzzy constraint satisfaction for color vision deficiencies
CN101625682A (en) Search input device, search input method and search engine device
Yu et al. Sensing ambient light for user experience-oriented color scheme adaptation on smartphone displays

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20141119