CN107172425A - Reduced graph generating method, device and terminal device - Google Patents
Reduced graph generating method, device and terminal device Download PDFInfo
- Publication number
- CN107172425A CN107172425A CN201610127851.1A CN201610127851A CN107172425A CN 107172425 A CN107172425 A CN 107172425A CN 201610127851 A CN201610127851 A CN 201610127851A CN 107172425 A CN107172425 A CN 107172425A
- Authority
- CN
- China
- Prior art keywords
- decoding
- image
- thumbnail
- size
- sampling
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 52
- 238000005070 sampling Methods 0.000 claims abstract description 133
- 239000011159 matrix material Substances 0.000 claims description 34
- 238000013139 quantization Methods 0.000 claims description 11
- 239000003086 colorant Substances 0.000 claims description 3
- 230000015572 biosynthetic process Effects 0.000 abstract description 7
- 230000009286 beneficial effect Effects 0.000 description 2
- 238000004140 cleaning Methods 0.000 description 1
- 230000009466 transformation Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/10—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
- H04N19/102—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
- H04N19/132—Sampling, masking or truncation of coding units, e.g. adaptive resampling, frame skipping, frame interpolation or high-frequency transform coefficient masking
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/10—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
- H04N19/134—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or criterion affecting or controlling the adaptive coding
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/10—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
- H04N19/169—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
- H04N19/17—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object
- H04N19/176—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object the region being a block, e.g. a macroblock
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/50—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding
- H04N19/59—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding involving spatial sub-sampling or interpolation, e.g. alteration of picture size or resolution
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Compression Or Coding Systems Of Tv Signals (AREA)
Abstract
The embodiment of the invention discloses a kind of reduced graph generating method, device and terminal device.This method includes:It is determined that the size of thumbnail image and the size of target thumbnail are treated, wherein described treat that thumbnail image is splits' positions image;According to the size for treating thumbnail image and the size of the target thumbnail, it is determined that decoding sampling parameter;Treat that thumbnail image carries out sampling decoding, generation decoding image to described according to the decoding sampling parameter;According to the size and the size of the target thumbnail of the decoding image, target thumbnail is generated.Reduced graph generating method provided in an embodiment of the present invention, device and terminal device, it is to avoid the problem of decoding image committed memory is excessive, and improve the formation efficiency of thumbnail.
Description
Technical field
The present embodiments relate to generation method, device and the end of image processing techniques, more particularly to thumbnail
End equipment.
Background technology
Thumbnail services an infrastructure service as internet, has extensive application in website, wherein with block
The image for compressing the picture format realized is used as present image industrial standard, the image of such as jpeg format.
In the generation method of existing thumbnail, image is integrally decoded first, obtains decoding image, then
To decoding image, according to target thumbnail dimensions are sampled again, obtain thumbnail image, finally thumbnail image is entered
Row coding generation target thumbnail.The image higher to resolution ratio, in the solution obtained after decoding completely
Code image, can take the memory headroom of up to GB ranks, can so cause the very big consumption of memory headroom,
If Out of Memory, it can also be cached using hard disk temporary file, and because intermediate file cleaning is difficult,
Easily cause hard disk and write full situation, while so that the formation efficiency reduction of thumbnail.
The content of the invention
The embodiment of the present invention provides a kind of reduced graph generating method, device and terminal device, it is to avoid because of decoding
The problem of image committed memory is excessive, and improve the formation efficiency of thumbnail.
In a first aspect, the embodiments of the invention provide a kind of reduced graph generating method, this method includes:
It is determined that the size of thumbnail image and the size of target thumbnail are treated, wherein described treat that thumbnail image is piecemeal
Compress image;
According to the size for treating thumbnail image and the size of the target thumbnail, it is determined that decoding sampling parameter;
Treat that thumbnail image carries out sampling decoding, generation decoding image to described according to the decoding sampling parameter;
According to the size and the size of the target thumbnail of the decoding image, target thumbnail is generated.
Second aspect, the embodiment of the present invention additionally provides a kind of thumbnail generating apparatus, and the device includes:
Size determining module, for determining to treat the size of thumbnail image and the size of target thumbnail, wherein institute
State and treat that thumbnail image is splits' positions image;
Sampling parameter determining module is decoded, size and the target breviary for treating thumbnail image according to
The size of figure, it is determined that decoding sampling parameter;
Image generation module is decoded, for treating that thumbnail image is adopted to described according to the decoding sampling parameter
Sample is decoded, generation decoding image;
Purpose thumbnail generation module, for the size and the target thumbnail according to the decoding image
Size, generates target thumbnail.
The third aspect, the embodiment of the present invention additionally provides a kind of terminal device, including any embodiment of the present invention
The thumbnail generating apparatus of offer.
Technical scheme provided in an embodiment of the present invention, the size of thumbnail image and target thumbnail is treated by basis,
Decoding sampling parameter is obtained, decoding sampling parameter is used in sample decoding process, decoding image is reduced
Size, solves the problem of decoding image committed memory is excessive after decoding completely, and improve the life of thumbnail
Into efficiency.
Brief description of the drawings
Fig. 1 is a kind of flow chart for reduced graph generating method that the embodiment of the present invention one is provided;
Fig. 2 is a kind of flow chart for reduced graph generating method that the embodiment of the present invention two is provided;
Fig. 3 is the process schematic of reduced graph generating method in the prior art;
Fig. 4 is a kind of process schematic for reduced graph generating method that the embodiment of the present invention two is provided;
Fig. 5 is a kind of structural representation for thumbnail generating apparatus that the embodiment of the present invention three is provided;
Fig. 6 is a kind of structural representation for terminal device that the embodiment of the present invention three is provided.
Embodiment
The present invention is described in further detail with reference to the accompanying drawings and examples.It is understood that this
The specific embodiment of place description is used only for explaining the present invention, rather than limitation of the invention.Also need in addition
It is noted that illustrate only part related to the present invention for the ease of description, in accompanying drawing and not all knot
Structure.
Embodiment one
Fig. 1 is a kind of flow chart for reduced graph generating method that the embodiment of the present invention one is provided.The present embodiment can
Situation suitable for generating thumbnail.This method can be performed by thumbnail generating apparatus, and the device can be with
Realized by the mode of hardware and/or software.Referring to Fig. 1, the reduced graph generating method that the present embodiment is provided is specific
Including as follows:
The size of thumbnail image and the size of target thumbnail are treated in S110, determination, wherein described treat thumbnail image
For splits' positions image.
Wherein, splits' positions image refers to being compressed volume to each image block of the fixed dimension in image
The image that code is obtained, treats that the size of thumbnail image can be by reading from the header file information for treating thumbnail image
Obtain, the size of target thumbnail can be obtained from the target thumbnail dimensions parameter of user's input.
The size of thumbnail image and the size of the target thumbnail are treated described in S120, basis, it is determined that decoding is adopted
Sample parameter.
Wherein, decoding sampling parameter is to treat the sampling parameter value that thumbnail image is used in decoding process.In order to
EMS memory occupation amount of the thumbnail image after being decoded through over-sampling is treated in reduction, and decoding sampling parameter is not less than 1.
If for example, treating that the size of thumbnail image is more than the size of target thumbnail, can be selected from default block number value
Decode sampling parameter;If treating, the size of thumbnail image is less than or equal to the size of target thumbnail, it may be determined that
Sampling parameter value is 1, or without sampling.
S130, according to it is described decoding sampling parameter to it is described treat thumbnail image carry out sampling decoding, generation decoding
Image.
Wherein, sampling is decoded as during the inverse operation to thumbnail image according to coding rule, adds sampling
The process of operation.Decoding image is the image obtained after thumbnail image is decoded through over-sampling.
Sampling decoding process can be:Entropy is carried out to the multiple color component cells treated in thumbnail image
Decoding, obtains the first decoding image;Inverse quantization is carried out to the described first decoding image, the second decoding figure is obtained
Picture;Inverse discrete cosine transform is carried out to the described second decoding image, the 3rd decoding image is obtained;According to described
Decoding sampling parameter is sampled to the described 3rd decoding image, generates the first sampling matrix;If breviary will be treated
Whole color component cells in image carry out sampling decoding, then according to whole color component cells through over-sampling
The first obtained sampling matrix is decoded, complete decoding image is generated.
Wherein, the first decoding image is to obtain the color component cells treated in thumbnail image by entropy decoding
Image;Second decoding image is that the first decoding image passes through the image that inverse quantization is obtained;3rd, which decodes image, is
Second decoding image passes through the image that inverse discrete cosine transform is obtained;First sampling matrix is the 3rd decoding image
The image that calculating through over-sampling algorithm is obtained;Decoding image, which is referred to, will treat whole colors in thumbnail image
Component cells decode the first obtained sampling matrix through over-sampling, integrate the image of generation.Sampling algorithm can be with
It is any method for realizing sampling, for example, can is that the average for taking multiple pixels replaces multiple pixels, to realize
Sampling.
Sampling decoding process can also be:The multiple color component cells treated in thumbnail image are carried out
Entropy decoding, obtains the 4th decoding image;Inverse quantization is carried out to the described 4th decoding image, the 5th decoding is obtained
Image;The described 5th decoding image is sampled according to the decoding sampling parameter, the second sampling square is obtained
Battle array;Inverse discrete cosine transform is carried out to second sampling matrix, the 6th decoding matrix is generated;If will wait to contract
Whole color component cells in sketch map picture are decoded and sampled, then are passed through according to whole color component cells
The 6th decoding matrix that decoding and sampling are obtained, generates complete decoding image.
Wherein, the 4th decoding image is to treat that the color component cells in thumbnail image pass through the figure that entropy decoding is obtained
Picture;5th decoding image is that the 4th decoding image passes through the image that inverse quantization is obtained;Second sampling matrix is
The image that five decoding calculating of the image through over-sampling algorithm are obtained;6th decoding image is the second sampling matrix warp
Cross the image that inverse discrete cosine transform is obtained.The 5th decoded picture is adopted before inverse discrete cosine transform
Sample so that need to carry out the pixel number reduction of the 6th decoding image of inverse discrete cosine transform, improve figure
The efficiency of the inverse discrete cosine transform of picture, thus improve the formation efficiency of thumbnail.
S140, the size according to the decoding image and the target thumbnail size, generate target breviary
Figure.
In order to according to decoding image generation target thumbnail image, according to the size and the mesh for decoding image
The size of thumbnail is marked, target thumbnail is generated, can specifically include:If it is described decoding image size and
The target thumbnail it is equal sized, then to it is described decoding image encoded to generate target thumbnail;
Otherwise, the size and the size of the target breviary according to the decoding image, obtain breviary parameter, and according to
The decoding image is sampled and encoded to generate target thumbnail according to the breviary parameter.
Wherein, sampling process when generating target thumbnail decodes use process class during image with above-mentioned generation
Seemingly, sampling process can also be realized by sampling algorithm, coding is referred to according to decoding image generation piecemeal pressure
The process of contract drawing picture.
The present embodiment obtains decoding sampling parameter by using the size for treating thumbnail image and target thumbnail,
Decoding sampling parameter is used in sample decoding process, the size of decoding image is reduced, solves complete solution
The problem of decoding image committed memory is excessive after code, and improve the formation efficiency of thumbnail.
Embodiment two
The present embodiment specifically provides a kind of reduced graph generating method on the basis of above-described embodiment one.Fig. 2
It is a kind of flow chart for reduced graph generating method that the embodiment of the present invention two is provided.Referring to Fig. 2, the present embodiment
The reduced graph generating method of offer specifically includes as follows:
The size of thumbnail image and the size of target thumbnail are treated in S210, determination.
In the present embodiment, to treat thumbnail image for exemplified by JPEG coded format images.Fig. 3 is of the invention real
A kind of process schematic of reduced graph generating method of the offer of example two is provided.Referring to Fig. 3, target thumbnail is obtained
Size 160*90 pixels, and treat that the File header information of thumbnail image is obtained by reading and treat the chi of thumbnail image
Very little 3840*2160 pixels.
S220, by the size for treating thumbnail image divided by default block number value, obtain present sample parameter.
, will be described default if S230, the present sample parameter are more than or equal to the size of target thumbnail
Block number value is used as decoding sampling parameter;Otherwise, depreciation processing is carried out to the default block number value, and utilizes warp
The default block number value crossed after depreciation processing performs described by the size for treating thumbnail image divided by default block number value
Operation, until determine that decoding uses parameter.
Wherein, the initial value for the default block number value that first time division operation is used can be to treat in thumbnail image
The size of color component cells, color component cells are the data cells of expression color component in image, for example
Image is yuv format, and color component cells can be the data cell of expression Y-component in image.If Y
The data cell of component is 8*8 matrix, then the default block number value that the first division operation is used is 8.
Further, the default block number value that each division operation is used can for 2 power side, specifically,
Default block number value can be 8,4 or 2.
For example, the default block number value used when first time division operation treats that the wide or high of thumbnail image is removed for 8
With 8, if obtained business is more than or equal to the wide or height of target thumbnail, decoding sampling parameter is used as using 8;
If obtained business is less than the wide or height of target thumbnail, using 4 as default block number value, thumbnail image is treated
Wide or high divided by default block number value, if obtained business is more than or equal to the wide or height of target thumbnail, by 4
It is used as decoding sampling parameter;If obtained business is less than the wide or height of target thumbnail, default block is used as using 2
Numerical value, treats the wide or high divided by default block number value of thumbnail image, if obtained business is more than or equal to target breviary
The wide or height of figure, then be used as decoding sampling parameter using 2;If obtained business is less than the wide or height of target thumbnail,
Then using 1 as decoding sampling parameter, or without sampling operation.
With reference to Fig. 3, wide 3840 pixel of the size for treating thumbnail image divided by default block number value 8 are obtained
Present sample parameter is 480;The present sample parameter 480 is more than wide 160 pixel of target thumbnail,
Then it regard the default block number value 8 as decoding sampling parameter.
S240, according to it is described decoding sampling parameter to it is described treat thumbnail image carry out sampling decoding, generation decoding
Image.
It is preferred that, entropy decoding, inverse quantization are carried out to the multiple color component cells treated in thumbnail image,
Then, sampled to obtaining imagery exploitation decoding sampling parameter, obtain the second sampling matrix;To described
Two sampling matrixs carry out inverse discrete cosine transform, generate the 6th decoding matrix;According to whole color component cells
By decoding and the 6th obtained decoding matrix of sampling, complete decoding image is generated, wherein decoding image
Size is 480*270 pixels.First sampled, then carried out discrete remaining by the image to being obtained after inverse quantization
String inverse transformation, to improve the efficiency of image inverse discrete cosine transform, so as to improve the formation efficiency of thumbnail.
S250, the size according to the decoding image and the target thumbnail size, generate target breviary
Figure.
For generation target thumbnail image, the size and the target thumbnail of decoding image more described first
Size, wherein, the size of target thumbnail is 160*90 pixels.Because the size of the decoding image is more than
The size of the target thumbnail, so being sampled again to the decoding image, sampling parameter is decoding
The ratio of image and width in the size of target thumbnail, is computed decoding the size of image and target thumbnail
The ratio of middle width is 3.Decoding image is sampled using sampling parameter, finally by the decoding after sampling
Image Coding generates the target thumbnail of JPEG coded formats.
Fig. 4 is the process schematic of reduced graph generating method in the prior art.Referring to Fig. 4, size is
The JPEG coded formats of 3840*2160 pixels treat thumbnail image by decoding after generate 3840*2160 pictures
The decoding image of element, wherein each color component cells are 8*8 matrix, shared by each 8*8 matrix
The bit number of internal memory is 64*8.Referring to Fig. 3, each color component cells are in the decoding image of the present embodiment
1*1 matrix, the bit number of the internal memory shared by each 1*1 matrix is 1*8.By comparing, this
The EMS memory occupation amount of the decoding image of embodiment is far smaller than the EMS memory occupation amount of decoding image of the prior art.
The present embodiment passes through according to the chi for treating thumbnail image and target thumbnail that coded format is jpeg format
It is very little, decoding sampling parameter is obtained, decoding sampling parameter is used in sample decoding process, decoding figure is reduced
The EMS memory occupation amount of picture, and improve the formation efficiency of thumbnail.
Embodiment three
Fig. 5 is a kind of structural representation for thumbnail generating apparatus that the embodiment of the present invention three is provided.This is described
Device goes for generating the situation of thumbnail image.Referring to Fig. 5, the thumbnail generation that the present embodiment is provided
Device 01 specifically includes size determining module 10, decoding sampling parameter determining module 20, decoding image generation
Module 30 and purpose thumbnail generation module 40.
Wherein, size determining module 10 is determined for treating the size of thumbnail image and the chi of target thumbnail
It is very little, wherein described treat that thumbnail image is splits' positions image;Decoding sampling parameter determining module 20 can be used for
According to the size for treating thumbnail image and the size of the target thumbnail, it is determined that decoding sampling parameter;Solution
Code image generation module 30 can be used for treating that thumbnail image is adopted to described according to the decoding sampling parameter
Sample is decoded, generation decoding image;Purpose thumbnail generation module 40 can be used for according to the decoding image
The size of size and the target thumbnail, generates target thumbnail.
Further, the decoding sampling parameter determining module 20, can include:Sampling parameter computing unit,
Sampling parameter determining unit and default block data determination unit.Wherein, sampling parameter computing unit can be used for
By the size for treating thumbnail image divided by default block number value, present sample parameter is obtained;Sampling parameter is determined
If unit can be used for the size that the present sample parameter is more than or equal to target thumbnail, will be described pre-
If block number value is used as decoding sampling parameter;Default block data determination unit can be used for joining in the present sample
When number is less than the size of target thumbnail, depreciation processing is carried out to the default block number value, and work as described
When preceding sampling parameter is less than the size of target thumbnail, the sampling parameter computing unit utilizes the default block
The currently employed parameter of block numerical computations is preset determined by data determination unit, until the sampling parameter is determined
Unit determines decoding sampling parameter.Specifically, the initial value of the default block number value can be to treat thumbnail
The size of color component cells as in.
Optionally, the decoding image generation module 30, can include:First decoding unit, the second decoding
Unit, the 3rd decoding unit, the first sampling unit and the first decoding elementary area.
Wherein, the first decoding unit can be used for entering the multiple color component cells treated in thumbnail image
Row entropy decoding, obtains the first decoding image;Second decoding unit can be used for entering the described first decoding image
Row inverse quantization, obtains the second decoding image;3rd decoding unit can be used for entering the described second decoding image
Row inverse discrete cosine transform, obtains the 3rd decoding image;First sampling unit can be used for according to the decoding
Sampling parameter is sampled to the described 3rd decoding image, generates the first sampling matrix;First decoding image list
If member can be used for the whole color component cells treated in thumbnail image carrying out sampling decoding, according to whole
Color component cells decode the first obtained sampling matrix through over-sampling, generate complete decoding image.
It is preferred that, the decoding image generation module 30 can include:4th decoding unit, the 5th decoding
Unit, the second sampling unit, the 6th decoding unit and the second decoding elementary area.
Wherein, the 4th decoding unit, for being carried out to the multiple color component cells treated in thumbnail image
Entropy decoding obtains the 4th decoding image;5th decoding unit, for carrying out inverse to the described 4th decoding image
Change obtains the 5th decoding image;Second sampling unit, for according to it is described decoding sampling parameter to the described 5th
Decoding image sample obtaining the second sampling matrix;6th decoding unit, for the described second sampling square
Battle array carries out inverse discrete cosine transform and generates the 6th decoding matrix;Second decoding elementary area, if for that will wait to contract
Whole color component cells in sketch map picture are decoded and sampled, then are passed through according to whole color component cells
The 6th decoding matrix that decoding and sampling are obtained, generates complete decoding image.
Further, the purpose thumbnail generation module 40 can be used for:If the size of the decoding image
It is equal sized with the target thumbnail, then the decoding image is encoded to generate target thumbnail;
Otherwise, the size and the size of the target breviary according to the decoding image, obtain breviary parameter, and according to
The decoding image is sampled and encoded to generate target thumbnail according to the breviary parameter.
The thumbnail generating apparatus that the present embodiment is provided, the thumbnail provided with any embodiment of the present invention
Generation method belongs to same inventive concept, can perform the breviary map generalization that any embodiment of the present invention is provided
Method, possesses the corresponding functional module of generation method and beneficial effect for performing thumbnail.Not in the present embodiment
In detailed description ins and outs, reference can be made to any embodiment of the present invention provide thumbnail generation method.
Fig. 6 is a kind of structural representation for terminal device that the embodiment of the present invention three is provided, as shown in fig. 6,
The present embodiment additionally provides a kind of terminal device 100, including the thumbnail generation that above-mentioned any embodiment is provided
Device 01.
The said goods can perform the method that any embodiment of the present invention is provided, and possess the corresponding work(of execution method
Can module and beneficial effect.
Note, above are only presently preferred embodiments of the present invention and institute's application technology principle.Those skilled in the art
It will be appreciated that the invention is not restricted to specific embodiment described here, can enter for a person skilled in the art
Row it is various it is obvious change, readjust and substitute without departing from protection scope of the present invention.Therefore, though
So the present invention is described in further detail by above example, but the present invention be not limited only to
Upper embodiment, without departing from the inventive concept, can also include other more equivalent embodiments,
And the scope of the present invention is determined by scope of the appended claims.
Claims (14)
1. a kind of reduced graph generating method, it is characterised in that including:
It is determined that the size of thumbnail image and the size of target thumbnail are treated, wherein described treat that thumbnail image is piecemeal
Compress image;
According to the size for treating thumbnail image and the size of the target thumbnail, it is determined that decoding sampling parameter;
Treat that thumbnail image carries out sampling decoding, generation decoding image to described according to the decoding sampling parameter;
According to the size and the size of the target thumbnail of the decoding image, target thumbnail is generated.
2. according to the method described in claim 1, it is characterised in that according to the size for treating thumbnail image
With the size of the target thumbnail, it is determined that decoding sampling parameter, including:
By the size for treating thumbnail image divided by default block number value, present sample parameter is obtained;
If the present sample parameter is more than or equal to the size of target thumbnail, by the default block number value
It is used as decoding sampling parameter;
Otherwise, depreciation processing is carried out to the default block number value, and utilizes the default block after depreciation is handled
Numerical value performs the operation by the size for treating thumbnail image divided by default block number value, until determining solution
Code uses parameter.
3. method according to claim 2, it is characterised in that the initial value of the default block number value is
Treat the size of the color component cells in thumbnail image.
4. method according to claim 3, it is characterised in that the default block that each division operation is used
Numerical value is 2 power side.
5. according to the method described in claim 1, it is characterised in that according to the decoding sampling parameter to institute
State and treat that thumbnail image carries out sampling decoding, generation decodes image, including:
Entropy decoding is carried out to the multiple color component cells treated in thumbnail image, the first decoding image is obtained;
Inverse quantization is carried out to the described first decoding image, the second decoding image is obtained;
Inverse discrete cosine transform is carried out to the described second decoding image, the 3rd decoding image is obtained;
The described 3rd decoding image is sampled according to the decoding sampling parameter, the first sampling matrix is generated;
If the whole color component cells treated in thumbnail image are carried out into sampling decoding, according to whole colors point
Amount unit decodes the first obtained sampling matrix through over-sampling, generates complete decoding image.
6. according to the method described in claim 1, it is characterised in that according to the decoding sampling parameter to institute
State and treat that thumbnail image carries out sampling decoding, generation decodes image, including:
Entropy decoding is carried out to the multiple color component cells treated in thumbnail image, the 4th decoding image is obtained;
Inverse quantization is carried out to the described 4th decoding image, the 5th decoding image is obtained;
The described 5th decoding image is sampled according to the decoding sampling parameter, the second sampling matrix is obtained;
Inverse discrete cosine transform is carried out to second sampling matrix, the 6th decoding matrix is generated;
If the whole color component cells treated in thumbnail image are decoded and sampled, according to whole colors
The 6th decoding matrix that component cells are obtained by decoding and sampling, generates complete decoding image.
7. the method according to claim any one of 1-6, it is characterised in that according to the decoding image
Size and the target thumbnail size, generate target thumbnail, including:
If it is described decoding image size and the target thumbnail it is equal sized, to the decoding image
Encoded to generate target thumbnail;Otherwise, the size and the target breviary according to the decoding image
Size, obtain breviary parameter, and the decoding image is sampled and encoded according to the breviary parameter
To generate target thumbnail.
8. a kind of thumbnail generating apparatus, it is characterised in that including:
Size determining module, for determining to treat the size of thumbnail image and the size of target thumbnail, wherein institute
State and treat that thumbnail image is splits' positions image;
Sampling parameter determining module is decoded, size and the target breviary for treating thumbnail image according to
The size of figure, it is determined that decoding sampling parameter;
Image generation module is decoded, for treating that thumbnail image is adopted to described according to the decoding sampling parameter
Sample is decoded, generation decoding image;
Purpose thumbnail generation module, for the size and the target thumbnail according to the decoding image
Size, generates target thumbnail.
9. device according to claim 8, it is characterised in that the decoding sampling parameter determining module
Including:
Sampling parameter computing unit, for by the size for treating thumbnail image divided by default block number value, obtaining
Present sample parameter;
Sampling parameter determining unit, if being more than or equal to the chi of target thumbnail for the present sample parameter
It is very little, then it regard the default block number value as decoding sampling parameter;
When default block data determination unit, size for being less than target thumbnail in the present sample parameter,
Depreciation processing is carried out to the default block number value, and
When the present sample parameter is less than the size of target thumbnail, the sampling parameter computing unit profit
With the currently employed parameter of block numerical computations is preset determined by the default block data determination unit, until described
Sampling parameter determining unit determines decoding sampling parameter.
10. device according to claim 9, it is characterised in that the initial value of the default block number value
To treat the size of the color component cells in thumbnail image.
11. device according to claim 8, it is characterised in that the decoding image generation module bag
Include:
First decoding unit, for carrying out entropy decoding to the multiple color component cells treated in thumbnail image,
Obtain the first decoding image;
Second decoding unit, for carrying out inverse quantization to the described first decoding image, obtains the second decoding image;
3rd decoding unit, for carrying out inverse discrete cosine transform to the described second decoding image, obtains the 3rd
Decode image;
First sampling unit, for being sampled according to the decoding sampling parameter to the described 3rd decoding image,
Generate the first sampling matrix;
First decoding elementary area, if for the whole color component cells treated in thumbnail image to be sampled
Decoding, then decode the first obtained sampling matrix, generation is complete according to whole color component cells through over-sampling
Decoding image.
12. device according to claim 8, it is characterised in that the decoding image generation module bag
Include:
4th decoding unit, for carrying out entropy decoding to the multiple color component cells treated in thumbnail image,
Obtain the 4th decoding image;
5th decoding unit, for carrying out inverse quantization to the described 4th decoding image, obtains the 5th decoding image;
Second sampling unit, for being sampled according to the decoding sampling parameter to the described 5th decoding image,
Obtain the second sampling matrix;
6th decoding unit, for carrying out inverse discrete cosine transform, generation the 6th to second sampling matrix
Decoding matrix;
Second decoding elementary area, if for the whole color component cells treated in thumbnail image to be decoded
And sampling, then according to whole color component cells by the 6th decoding matrix decoded and sampling is obtained, generation
Complete decoding image.
13. the device according to claim any one of 8-12, it is characterised in that the purpose thumbnail
Generation module is used for:
If it is described decoding image size and the target thumbnail it is equal sized, to the decoding image
Encoded to generate target thumbnail;
Otherwise, the size and the size of the target breviary according to the decoding image, obtain breviary parameter,
And the decoding image is sampled and encoded to generate target thumbnail according to the breviary parameter.
14. a kind of terminal device, including the thumbnail generating apparatus as described in any in claim 8-13.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201610127851.1A CN107172425B (en) | 2016-03-07 | 2016-03-07 | Thumbnail generation method and device and terminal equipment |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201610127851.1A CN107172425B (en) | 2016-03-07 | 2016-03-07 | Thumbnail generation method and device and terminal equipment |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN107172425A true CN107172425A (en) | 2017-09-15 |
| CN107172425B CN107172425B (en) | 2020-01-31 |
Family
ID=59849906
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201610127851.1A Active CN107172425B (en) | 2016-03-07 | 2016-03-07 | Thumbnail generation method and device and terminal equipment |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN107172425B (en) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN113889230A (en) * | 2021-09-29 | 2022-01-04 | 纳米维景(上海)医疗科技有限公司 | Loading method, storage medium and terminal of Dicom image thumbnail applied to CT machine |
| WO2023125444A1 (en) * | 2021-12-31 | 2023-07-06 | 北京字跳网络技术有限公司 | Image subsampling method and apparatus |
Citations (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1622134A (en) * | 2005-01-11 | 2005-06-01 | 北京中星微电子有限公司 | Image conversion method capable of realizing zooming |
| CN101345887A (en) * | 2007-07-13 | 2009-01-14 | 英业达股份有限公司 | Improved RGB image scaling method |
| CN101511011A (en) * | 2009-02-19 | 2009-08-19 | 浙江大学 | Display method and device for image drop sampling quick decode |
| CN102118616A (en) * | 2011-02-24 | 2011-07-06 | 深圳市同洲电子股份有限公司 | Picture decoding method and picture decoder |
| US20130266066A1 (en) * | 2008-12-31 | 2013-10-10 | Entropic Communications, Inc. | Low-resolution video coding content extraction |
| CN103886624A (en) * | 2012-12-24 | 2014-06-25 | 三星电子(中国)研发中心 | JPEG image thumbnail extracting method |
| CN103903285A (en) * | 2012-12-25 | 2014-07-02 | 三星电子(中国)研发中心 | Thumbnail extraction method of PNG image and BMP image |
| CN105302415A (en) * | 2015-10-19 | 2016-02-03 | 四川长虹电器股份有限公司 | Image thumbnail generation method |
-
2016
- 2016-03-07 CN CN201610127851.1A patent/CN107172425B/en active Active
Patent Citations (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1622134A (en) * | 2005-01-11 | 2005-06-01 | 北京中星微电子有限公司 | Image conversion method capable of realizing zooming |
| CN101345887A (en) * | 2007-07-13 | 2009-01-14 | 英业达股份有限公司 | Improved RGB image scaling method |
| US20130266066A1 (en) * | 2008-12-31 | 2013-10-10 | Entropic Communications, Inc. | Low-resolution video coding content extraction |
| CN101511011A (en) * | 2009-02-19 | 2009-08-19 | 浙江大学 | Display method and device for image drop sampling quick decode |
| CN102118616A (en) * | 2011-02-24 | 2011-07-06 | 深圳市同洲电子股份有限公司 | Picture decoding method and picture decoder |
| CN103886624A (en) * | 2012-12-24 | 2014-06-25 | 三星电子(中国)研发中心 | JPEG image thumbnail extracting method |
| CN103903285A (en) * | 2012-12-25 | 2014-07-02 | 三星电子(中国)研发中心 | Thumbnail extraction method of PNG image and BMP image |
| CN105302415A (en) * | 2015-10-19 | 2016-02-03 | 四川长虹电器股份有限公司 | Image thumbnail generation method |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN113889230A (en) * | 2021-09-29 | 2022-01-04 | 纳米维景(上海)医疗科技有限公司 | Loading method, storage medium and terminal of Dicom image thumbnail applied to CT machine |
| WO2023125444A1 (en) * | 2021-12-31 | 2023-07-06 | 北京字跳网络技术有限公司 | Image subsampling method and apparatus |
Also Published As
| Publication number | Publication date |
|---|---|
| CN107172425B (en) | 2020-01-31 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| Cheng et al. | Energy compaction-based image compression using convolutional autoencoder | |
| US20100158400A1 (en) | Accelerated Screen Codec | |
| CN117456017A (en) | An end-to-end image compression method based on context clustering transformation | |
| CN118101951A (en) | A method and system for compressing regions of interest in complex scenes of remote sensing images | |
| CN120814229A (en) | Method, apparatus and medium for visual data processing | |
| Bao et al. | ShiftLIC: lightweight learned image compression with spatial-channel shift operations | |
| WO2025072500A1 (en) | Method, apparatus, and medium for visual data processing | |
| You et al. | Efficient and generic point model for lossless point cloud attribute compression | |
| Yadav et al. | Flow-MotionNet: A neural network based video compression architecture | |
| CN121488473A (en) | Methods, apparatus and media for visual data processing | |
| CN102271251B (en) | Lossless Image Compression Method | |
| CN117376564B (en) | Data encoding and decoding method and related equipment | |
| CN113727050B (en) | Video super-resolution processing method, device and storage medium for mobile devices | |
| CN102238376A (en) | Image processing system and method | |
| Zheng et al. | A novel gray image representation using overlapping rectangular NAM and extended shading approach | |
| WO2025198937A1 (en) | Method, apparatus, and medium for visual data processing | |
| Zhang et al. | A CNN-based hevc video steganalysis against DCT/DST-based steganography | |
| CN107172425B (en) | Thumbnail generation method and device and terminal equipment | |
| US9819969B2 (en) | Generalization of methods and systems for image compression while encoding at least one extra bit | |
| WO2025026000A1 (en) | Image decoding method, image encoding method, and decoder and encoder | |
| Bao et al. | Image Compression for Wireless Sensor Network: A Model Segmentation‐Based Compressive Autoencoder | |
| Zhang et al. | DNP-AUT: Image Compression Using Double-Layer Non-Uniform Partition and Adaptive U Transform | |
| Tan et al. | Exploring High Dimensional Feature Space With Channel‐Spatial Nonlinear Transforms for Learned Image Compression | |
| WO2025131046A1 (en) | Method, apparatus, and medium for visual data processing | |
| WO2025157163A1 (en) | Method, apparatus, and medium for visual data processing |
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 |