CN103067712A - Non-decoding matching method of joint photographic experts group (JPEG) images - Google Patents

Non-decoding matching method of joint photographic experts group (JPEG) images Download PDF

Info

Publication number
CN103067712A
CN103067712A CN2012105932520A CN201210593252A CN103067712A CN 103067712 A CN103067712 A CN 103067712A CN 2012105932520 A CN2012105932520 A CN 2012105932520A CN 201210593252 A CN201210593252 A CN 201210593252A CN 103067712 A CN103067712 A CN 103067712A
Authority
CN
China
Prior art keywords
image
filling block
splicing
decoding
jpeg2000
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
CN2012105932520A
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.)
BEIJING SHIZHU SCIENCE AND TECHNOLOGY Co Ltd
Original Assignee
BEIJING SHIZHU SCIENCE AND TECHNOLOGY 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 BEIJING SHIZHU SCIENCE AND TECHNOLOGY Co Ltd filed Critical BEIJING SHIZHU SCIENCE AND TECHNOLOGY Co Ltd
Priority to CN2012105932520A priority Critical patent/CN103067712A/en
Publication of CN103067712A publication Critical patent/CN103067712A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention discloses a non-decoding matching method of joint photographic experts group (JPEG) images, relates to the field of image processing technique, and resolves the problems that an existing JPEG 2000 image matching method conducts decoding and then conducts coding, distortion of the images occurs, and the matching speed is low. The non-decoding matching method of the JPEG images does not need decoding, filling blocks of all subimages needing matching are extracted to serve as filling blocks of the matched image, image information and filling block information are modified, and matching of the JPEG 2000 images is achieved. The non-decoding matching method conducts image matching directly, original image data are not changed, and the matching speed is greatly high.

Description

A kind of non-decoding joining method of JPEG2000 image
Technical field
The present invention relates to technical field of image processing, particularly a kind of non-decoding joining method of JPEG2000 image.
Background technology
JPEG2000 is based on the Standard of image compression of wavelet transformation, usually is considered to substitute the Standard of image compression of new generation of JPEG.JPEG2000 can not produce the previous mosaic effect that produces based on the Joint Photographic Experts Group of discrete cosine transform, and compression efficiency is higher simultaneously, supports more complicated gradual demonstration and download.
The chip of supporting the JPEG2000 encoding and decoding has been arranged at present on the market, but the size of compressed image there is certain restriction, sometimes can not satisfy the requirement of application.For example ADV212 is the single-chip of a JPEG2000 image coding and decoding, and it can support that the maximum image of encoding and decoding is 4096*4096 under the simple component, if surpass this size, then needs Image Segmentation Using before the compression.What obtain like this is the subimage of a series of JPEG2000 forms, in order to obtain original complete large image, just need to be stitched together these subimages with certain method.
The general decoding method that adopts of at present JPEG2000 format-pattern splicing: namely the subimage of all JPEG2000 forms that need to splice is decoded as first initial data, after the initial data splicing again recompile be the JEPG2000 form.This first decoding again method of coding may cause image fault and splicing speed slow.
Summary of the invention
The objective of the invention is to solve the method that the splicing of JPEG2000 format-pattern adopts first decoding to encode again in the prior art may cause image fault and splice slow-footed problem.
For achieving the above object, the invention provides a kind of non-decoding joining method of JPEG2000 image.
The constraints of the method is:
(1) compression parameters is identical, the environment facies of compression namely is set together;
(2) reference position of image and filling block: image and filling block are 0 with respect to the skew of the grid of reference;
(3) image and filling block size arranges: wide, the height of image and filling block are 2 power side, and filling block is wide is divided exactly by the wide of image, and the filling block height is divided exactly by the height of image.
The method may further comprise the steps:
S1 extracts the filling block of all JPEG2000 subimages that need to splice;
Filling block comprises fills build and filling block code stream.Fill build and begun to finish to the SOD section by the SOT section, comprise the SOD section; The filling block code stream finishes until run into next SOT section of filling build followed by the SOD section, does not comprise the SOT section.Therefore, a complete filling block is to begin to finish before the SOT section of next filling block from the SOT section.
The method of extracting the subimage filling block is search SOT mark, and namely the position of 0xFF90 in the searching code flow data is a filling block between two positions.Last filling block need to be removed code stream end mark EOC, namely deletes data 0xFFD9.With the method search, can extract the filling block of all JPEG2000 subimages that need to splice.
S2, the new call number of all filling blocks of extracting among the size of image and the step S1 after the calculating splicing;
The wide of image is the wide summation of all subimages in the delegation after the splicing; The height summation of all subimages in the Gao Weiyi of the image row after the splicing.
The filling block of all subimages that extract among the setting steps S1 is the position in the image after splicing.The position of filling block is determined by the call number of filling block, therefore need to redistribute the call number of filling block.
S3 extracts the main head of any one subimage that need to splice as the main head of the rear image of splicing, revises image size parameter wherein;
The restrictive condition of the non-decoding joining method of JPEG2000 of the present invention is: the compressed information of all subimages is except the size of image, and other need be consistent, and comprises the wavelet transformation of compression, filling block size etc.From code stream, main exactly head is consistent, and therefore spliced image can use the wherein main head of any one subimage.
Extract the main head of the rear image of main head conduct splicing of any one subimage that need to splice: main head begins to finish before to first SOT section from the image code stream data, so only need to search first SOT mark, and all bit stream datas before obtaining get final product.
With respect to subimage, variation has occured in spliced image size, needs to revise the code stream parameter of Description Image size.The information of image size is by the parameter X siz that is positioned at a main SIZ section, and Ysiz represents, search SIZ mark, and the size of revising this parameter and be the spliced image that calculates among the step S2 gets final product.
S4, upgrade the call number of the filling block that extracts among the S1 in steps be the new call number that calculates among the step S2;
The call number of filling block is represented by the parameter I sot that is positioned at the SOT section.Search SOT mark 0xFF90, change filling block call number is new call number behind the Image Mosaics.
S5, it is arranged sequentially to lead head and filling block, finishes splicing.
The invention has the beneficial effects as follows that during the JPEG2000 Image Mosaics, the again coding that do not need to decode first directly carries out Image Mosaics, guarantee that raw image data is not changed, and splicing speed is very fast.
Below by drawings and Examples, technical scheme of the present invention is described in further detail.
Description of drawings
Fig. 1 is JPEG2000 image reference grid schematic diagram.
Fig. 2 is JPEG2000 image filling block schematic diagram.
Fig. 3 is that JPEG2000 image and filling block are 0 schematic diagram with respect to grid of reference skew.
Fig. 4 is that the JPEG2000 image forms structural representation.
Fig. 5 is the syntactic structure figure of SOT.
Fig. 6 is the flow chart of the non-decoding joining method of JPEG2000 image.
Fig. 7 is the schematic diagram of index translation in the non-decoding joining method of JPEG2000 image.
Embodiment
As shown in Figure 1: JPEG2000 has introduced the grid of reference in order to carry out space orientation, and the grid of reference is limited in upper left initial point (0,0) to zone that bottom right grid point (Xsiz-1, Ysiz-1) fences up.Actual image area on this grid of reference is by the zone of upper left grid point (XOsiz, YOsiz) to bottom right grid point (Xsiz-1, Ysiz-1).Wherein, the skew of the relative grid initial point of (XOsiz, YOsiz) presentation video.
As shown in Figure 2: image segmentation is a plurality of rectangular region of filling block size, and the filling block searching number is arranged according to raster order, and filling block size is (XTsiz, YTsiz), and the skew of first filling block T0 is (XTOsiz, YTOsiz).
The restrictive condition of the non-decoding splicing solution method of JPEG2000 image of the present invention comprises: image-region is zero in the skew of the grid of reference, and the skew of first filling block is zero, as shown in Figure 3.
As shown in Figure 3, image-region is divided into the zone of a lot of filling block sizes before compression, and the filling block position is determined by its call number.Compress respectively take filling block as unit behind the image segmentation, can the phase mutual interference between the filling block, have independence.These mutual independently filling blocks are transferred to the rear end with the form of code stream from front end, when process the rear end, these image code stream data need to be stitched together, and form complete image.In the splicing, need necessary information that the image code stream data are made an explanation, such as the size of image, fill block size and call number, therefore the type of wavelet transformation etc. also need to have certain bit stream syntax data this are described.When front end carried out the image code stream data compression, these bit stream syntax data were embedded in the image code stream data with certain rule, send the rear end to the image code stream data.Be used for describing the main head of having of these information in the JPEG2000 image, fill build.
As shown in Figure 4: the JPEG2000 image is comprised of main head, filling block, behind the main head a plurality of filling blocks is arranged generally, among the embodiment of Fig. 4, behind the main head filling block 1 and filling block 2 is arranged.Main head begins with the SOC section, and followed by main head section, main head has comprised the descriptor of whole code stream.Filling block comprises fills build and filling block code stream.Fill build and begun by the SOT section, followed by the filling block section, finish to the SOD section, comprise the SOD section, fill the descriptor that build has comprised this filling block.The filling block code stream finishes until run into the SOT section of next filling block followed by the SOD section, does not comprise the SOT section.Therefore a complete filling block is to begin to finish before the SOT section of next filling block from the SOT section.The image code stream data be at last the expression its end mark EOC.
Main head and filling build are all by being comprised of mark and marker field.Wherein, the length of mark is two bytes, and first byte is 0xFF, illustrates that this is mark, and second byte representation mark kind is labeled as 0xFF90 such as SOT.Marker field is comprised of concrete flag parameters.As shown in Figure 5, be the syntactic structure figure of SOT.The bit stream syntax data the are clear and definite particular location of each information, for example the Isot flag parameters represents the call number of filling block, therefore can be by the grammer of code stream, search certain parameter information of revising image, the size of image for example, filling block call number etc., thereby after guaranteeing that filling block from different subimages is grouped together, relevant parameter information is revised adjustment, guarantees the correctness of picture format.
As shown in Figure 6, be the flow chart of the non-decoding joining method of JPEG2000 image.
The constraints of the method is:
(1) compression parameters is identical, the environment facies of compression namely is set together;
(2) reference position of image and filling block: image and filling block are 0 with respect to the skew of the grid of reference;
(3) image and filling block size arranges: wide, the height of image and filling block are 2 power side, and filling block is wide is divided exactly by the wide of image, and the filling block height is divided exactly by the height of image.
The method may further comprise the steps:
S1 extracts the filling block of all JPEG2000 subimages that need to splice;
Filling block comprises fills build and filling block code stream.Fill build and begun to finish to the SOD section by the SOT section, comprise the SOD section; The filling block code stream finishes until run into next SOT section of filling build followed by the SOD section, does not comprise the SOT section.Therefore, a complete filling block is to begin to finish before the SOT section of next filling block from the SOT section.
The method of extracting the subimage filling block is search SOT mark, and namely the position of 0xFF90 in the searching code flow data is a filling block between two positions.Last filling block need to be removed code stream end mark EOC, namely deletes data 0xFFD9.With the method search, can extract the filling block of all JPEG2000 subimages that need to splice.
S2, the new call number of all filling blocks of extracting among the size of image and the step S1 after the calculating splicing;
The wide of image is the wide summation of all subimages in the delegation after the splicing; The height summation of all subimages in the Gao Weiyi of the image row after the splicing.
The filling block of all subimages that extract among the setting steps S1 is the position in the image after splicing.The position of filling block is determined by the call number of filling block, therefore need to redistribute the call number of filling block.
S3 extracts the main head of any one subimage that need to splice as the main head of the rear image of splicing, revises image size parameter wherein;
The restrictive condition of the non-decoding joining method of JPEG2000 of the present invention is: the compressed information of all subimages is except the size of image, and other need be consistent, and comprises the wavelet transformation of compression, filling block size etc.From code stream, main exactly head is consistent, and therefore spliced image can use the wherein main head of any one subimage.
Extract the main head of the rear image of main head conduct splicing of any one subimage that need to splice: main head begins to finish before to first SOT section from the image code stream data, so only need to search first SOT mark, and all bit stream datas before obtaining get final product.
With respect to subimage, variation has occured in spliced image size, needs to revise the code stream parameter of Description Image size.The information of image size is by the parameter X siz that is positioned at a main SIZ section, and Ysiz represents, search SIZ mark, and the size of revising this parameter and be the spliced image that calculates among the step S2 gets final product.
S4, upgrade the call number of the filling block that extracts among the S1 in steps be the new call number that calculates among the step S2;
The call number of filling block is represented by the parameter I sot that is positioned at the SOT section.Search SOT mark 0xFF90, change filling block call number is new call number behind the Image Mosaics.
S5, it is arranged sequentially to lead head and filling block, finishes splicing.
The below illustrates with example, existing 4 JPEG2000 image files, and parameter is as follows:
The JPEG2000 image of File1, the number of filling block are 1, and file size is 128*128;
The JPEG2000 image of File2, the number of filling block are 3, and file size is 384*128;
The JPEG2000 image of File3, the number of filling block are 3, and file size is 128*384;
The JPEG2000 image of File4, the number of filling block are 9, and file size is 384*384;
As shown in Figure 7, be the transition diagram of filling block call number.Connecting method is:
File1 File2
File3 File4
As shown in Figure 5, call number continuous arrangement after the splicing.
The wide of image is the wide summation of all subimages in the delegation after the splicing; The height summation of all subimages in the Gao Weiyi of the image row after the splicing.Definition:
Width (subimage): subimage wide;
Height (subimage): the height of subimage;
Target_Width: image is wide after the splicing;
Target_Height: the height of image after the splicing;
Be applied in the above-mentioned specific embodiment,
Target_Width=Width(File1)+Width(File2)=128+384=512;
Target_Hieght=Height(File1)+Height(File3)=128+384=512。
The invention has the beneficial effects as follows that during the JPEG2000 Image Mosaics, the again coding that do not need to decode first directly carries out Image Mosaics, guarantee that raw image data is not changed, and splicing speed is very fast.
It should be noted that at last: above embodiment is only in order to technical scheme of the present invention to be described but not limit it, although with reference to preferred embodiment the present invention is had been described in detail, those of ordinary skill in the art is to be understood that: it still can be made amendment or be equal to replacement technical scheme of the present invention, and these modifications or be equal to replacement and also can not make amended technical scheme break away from the spirit and scope of technical solution of the present invention.

Claims (2)

1. the non-decoding joining method of a JPEG2000 image, it is characterized in that: do not decode, filling block by extracting all subimages that need to splice as splicing after the filling block of image, revise image information head and filling block information header and realize the combination of subimage, finish the splicing of JPEG2000 image;
The constraints of the method is:
(1) compression parameters is identical, the environment facies of compression namely is set together;
(2) reference position of image and filling block: image and filling block are 0 with respect to the skew of the grid of reference;
(3) image and filling block size arranges: wide, the height of image and filling block are 2 power side, and filling block is wide is divided exactly by the wide of image, and the filling block height is divided exactly by the height of image;
The method may further comprise the steps:
S1 extracts the filling block of all JPEG2000 subimages that need to splice;
S2, the new call number of all filling blocks of extracting among the size of image and the step S1 after the calculating splicing;
S3 extracts the main head of any one subimage that need to splice as the main head of the rear image of splicing, revises image size parameter wherein;
S4, upgrade the call number of the filling block that extracts among the S1 in steps be the new call number that calculates among the step S2;
S5, it is arranged sequentially to lead head and filling block, finishes splicing.
2. the non-decoding joining method of a kind of JPEG2000 image according to claim 1 is characterized in that:
The wide of image is the wide summation of all subimages in the delegation after the splicing;
The height summation of all subimages in the Gao Weiyi of the image row after the splicing.
CN2012105932520A 2012-12-31 2012-12-31 Non-decoding matching method of joint photographic experts group (JPEG) images Pending CN103067712A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2012105932520A CN103067712A (en) 2012-12-31 2012-12-31 Non-decoding matching method of joint photographic experts group (JPEG) images

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2012105932520A CN103067712A (en) 2012-12-31 2012-12-31 Non-decoding matching method of joint photographic experts group (JPEG) images

Publications (1)

Publication Number Publication Date
CN103067712A true CN103067712A (en) 2013-04-24

Family

ID=48110151

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2012105932520A Pending CN103067712A (en) 2012-12-31 2012-12-31 Non-decoding matching method of joint photographic experts group (JPEG) images

Country Status (1)

Country Link
CN (1) CN103067712A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104244000A (en) * 2014-09-19 2014-12-24 浙江宇视科技有限公司 JPEG picture rapid splicing method and device
CN111510717A (en) * 2019-01-31 2020-08-07 杭州海康威视数字技术股份有限公司 Image splicing method and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1668097A (en) * 2005-04-07 2005-09-14 北京北大方正电子有限公司 A method for quick generation of video file
CN101409831A (en) * 2008-07-10 2009-04-15 浙江师范大学 Method for processing multimedia video object
CN201846449U (en) * 2010-10-11 2011-05-25 大道计算机技术(上海)有限公司 Large-screen IP (internet protocol) video stream access device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1668097A (en) * 2005-04-07 2005-09-14 北京北大方正电子有限公司 A method for quick generation of video file
CN101409831A (en) * 2008-07-10 2009-04-15 浙江师范大学 Method for processing multimedia video object
CN201846449U (en) * 2010-10-11 2011-05-25 大道计算机技术(上海)有限公司 Large-screen IP (internet protocol) video stream access device

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104244000A (en) * 2014-09-19 2014-12-24 浙江宇视科技有限公司 JPEG picture rapid splicing method and device
CN104244000B (en) * 2014-09-19 2018-01-16 浙江宇视科技有限公司 A kind of quick joining method of JPEG picture and device
CN111510717A (en) * 2019-01-31 2020-08-07 杭州海康威视数字技术股份有限公司 Image splicing method and device
CN111510717B (en) * 2019-01-31 2022-04-26 杭州海康威视数字技术股份有限公司 Image splicing method and device

Similar Documents

Publication Publication Date Title
US11632560B2 (en) Methods and apparatuses for encoding and decoding a bytestream
CN104683805B (en) Image coding, coding/decoding method and device
US10282863B2 (en) Lossless compression of fragmented image data
CN102724529B (en) Method and device for generating video sequence of virtual viewpoints
CN107087184B (en) Multimedia data recompression method
CN106162180A (en) A kind of image coding/decoding method and device
CN103489170B (en) Method and device for JPEG picture synthesis and OSD information superimposition
CN106060652A (en) Identification method and identification device for panoramic information in video code stream
CN103248951B (en) A kind of system and method adding scroll information in video
CN107079105A (en) Image processing method, device, equipment and video image transmission system
CN103399895B (en) A kind of monitoring display processing system based on SVG and method
CN109408897A (en) The conversion method and system identified based on PDMS to AutoCAD drawing size marking
CN103067712A (en) Non-decoding matching method of joint photographic experts group (JPEG) images
CN100470535C (en) Efficient means for creating MPEG-4 intermedia format from MPEG-4 textual representation
CN103390266A (en) Image super-resolution method and device
CN103400394A (en) Video super-resolution method based on feature-oriented variational optical flow
CN110493604A (en) A method of 8K HEVC real-time coding is realized based on GPU cluster
CN104244000B (en) A kind of quick joining method of JPEG picture and device
CN106157251A (en) A kind of face super-resolution method based on Cauchy's regularization
CN105824608B (en) Processing, plug-in unit generation method and the device of process object
CN112995134B (en) Three-dimensional video streaming media transmission method and visualization method
CN103268619B (en) The method of image data batch compression in swf file and device
CN103597448A (en) Method and apparatuses for interchanging data
CN101986710B (en) Sort-last system structure-based parallel drawing system
CN106657384A (en) Method for greatly reducing communication data transmission amount by using multi-dimension technology

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20130424