CN109618172A - Infrared image storage transmission compression algorithm - Google Patents

Infrared image storage transmission compression algorithm Download PDF

Info

Publication number
CN109618172A
CN109618172A CN201810426328.8A CN201810426328A CN109618172A CN 109618172 A CN109618172 A CN 109618172A CN 201810426328 A CN201810426328 A CN 201810426328A CN 109618172 A CN109618172 A CN 109618172A
Authority
CN
China
Prior art keywords
gray scale
pixel gray
difference
infrared image
byte
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
CN201810426328.8A
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.)
Hangzhou Xinhan Photoelectric Science & Technology Co Ltd
Original Assignee
Hangzhou Xinhan Photoelectric Science & 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 Hangzhou Xinhan Photoelectric Science & Technology Co Ltd filed Critical Hangzhou Xinhan Photoelectric Science & Technology Co Ltd
Priority to CN201810426328.8A priority Critical patent/CN109618172A/en
Publication of CN109618172A publication Critical patent/CN109618172A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/70Methods or arrangements for coding, decoding, compressing or decompressing digital video signals characterised by syntax aspects related to video coding, e.g. related to compression standards

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Compression Of Band Width Or Redundancy In Fax (AREA)

Abstract

The invention discloses a kind of infrared images to store transmission compression algorithm, includes the following steps: that storage file includes file header and file body, in preceding 2 byte 0H0L of file body first trip structure, records first pixel gray scale for needing the infrared image stored;Since the 3rd byte of file body first trip structure, the difference of current pixel gray scale and previous pixel gray scale of going together under each byte records, and difference is converted to 0-255, it is recorded as △ T1;Since file body the second row structure to end line structure, under every first byte records of row with the difference of the first pixel gray scale of lastrow, the difference of current pixel gray scale and previous pixel gray scale of going together under the 2nd byte start recording of every row, and difference is converted to 0-255, it is recorded as △ T2.The present invention has the characteristics of capable of compressing infrared picture data, saving memory space.

Description

Infrared image storage transmission compression algorithm
Technical field
The present invention relates to infrared image delivery technical fields, can compress infrared picture data more particularly, to one kind, section Save the infrared image storage transmission compression algorithm of memory space.
Background technique
Now, infrared imagery technique is widely used to multiple fields.With the continuous development of infrared imagery technique, it is based on The product of infrared imagery technique is also constantly updated.Acquisition infrared image can be used for analyzing the characteristic of infrared focus plane and design more Efficient image algorithm, to obtain better image quality.However, current infrared image is mostly with 2 byte representations, one pixel Gray scale needs biggish memory space.When data volume adds up more, need to spend biggish space storage image data.Cause This, infrared picture data can be compressed by designing one kind, saved the infrared image storage transmission compression algorithm of memory space, just seemed It is very necessary.
Summary of the invention
The present invention be in order to overcome in the prior art, it is hot because infrared image is mostly with 2 byte representations, one pixel gray scale When outer image data amount adds up more, need to spend biggish space come the problem of storing image data, provide one kind can Infrared picture data is compressed, the infrared image storage transmission compression algorithm of memory space is saved.
To achieve the above object, the invention adopts the following technical scheme:
A kind of infrared image storage transmission compression algorithm, characterized in that include the following steps:
(1-1) storage file includes file header and file body, in preceding 2 byte 0H0L of file body first trip structure, note First pixel gray scale of the infrared image for needing to store under record;
(1-2) since the 3rd byte of file body first trip structure, under each byte records current pixel gray scale with go together The difference of previous pixel gray scale, and difference is converted to 0-255, it is recorded as △ T1;
(1-3) is first with lastrow under every first byte records of row since file body the second row structure to end line structure The difference of a pixel gray scale, the difference of current pixel gray scale and previous pixel gray scale of going together under the 2nd byte start recording of every row Value, and difference is converted to 0-255, it is recorded as △ T2.
The present invention is based on medical infrared image features, and infrared image is mostly with 2 byte representations, one picture in the prior art In the case where first gray scale, using new storage mode, using in a manner of 1 byte indicates a pixel ash of infrared image Angle value.The present invention has in the case where guaranteeing the distortionless situation of temperature measurement data, can compress infrared picture data, saves memory space The characteristics of.
Preferably, in step (1-2), Δ T1=Gn-Gn-1+128。GnIndicate the current pixel gray scale of file body first trip structure Numerical value, n refers to current pixel column.
Preferably, as △ T1 < 0, pixel gray scale and previous pixel ash of going together before each broomrape of file body first trip structure The difference △ T of degree0n=0, as 0≤△ T1≤255, △ T0n=△ T1, as △ T1 > 255, △ T0n=255, n refer to pixel institute It is arranging.It is formulated asWhen △ T1 is not within the scope of 0-255, then it is assumed that The pixel gray scale point is singular point.
Preferably, in step (1-3),K indicates current line number, and n is Columns, G refer to the numerical value of pixel gray scale.
Preferably, as △ T2 < 0, pixel gray scale and same before file body the second row structure to each broomrape of end line structure The difference △ T of the previous pixel gray scale of rowkn=0, as 0≤△ T2≤255, △ Tkn=△ T2, as △ T2 > 255, △ Tkn= 255, k indicate current line number, and n refers to current pixel column.It is formulated as When △ T2 is not within the scope of 0-255, then it also hold that the pixel gray scale point is singular point.
Preferably, measurement temperature computation parameter information is stored in the file header part of storage file.
Therefore, the invention has the following beneficial effects: (1) to be based on medical infrared image feature, is guaranteeing temperature measurement data not In the case where distortion, infrared picture data can be compressed;(2) memory space is saved, file data amount of storage is improved.
Detailed description of the invention
Fig. 1 is a kind of flow chart of the invention;
Fig. 2 is a kind of structural schematic diagram of file body first trip structure of the invention;
Fig. 3 is a kind of structural schematic diagram of the second row of file body of the invention to end line structure.
Specific embodiment
The present invention will be further described with specific embodiment with reference to the accompanying drawing:
A kind of infrared image storage transmission compression algorithm as shown in Figure 1, includes the following steps:
Step 100, storage file includes file header and file body, in preceding 2 byte 0H0L of file body first trip structure, Record first pixel gray scale for needing the infrared image stored;
Step 200, since the 3rd byte of file body first trip structure, under each byte records current pixel gray scale with The difference for previous pixel gray scale of going together, and difference is converted to 0-255, it is recorded as △ T1;
Step 300, since file body the second row structure to end line structure, under every first byte records of row with lastrow The difference of first pixel gray scale, current pixel gray scale and previous pixel gray scale of going together under the 2nd byte start recording of every row Difference, and difference is converted to 0-255, it is recorded as △ T2.
As shown in Fig. 2, in step 200, Δ T1=Gn-Gn-1+128。GnIndicate the current pixel gray scale of file body first trip structure Numerical value, n refers to current pixel column.As △ T1 < 0, before each broomrape of file body first trip structure pixel gray scale with go together it is previous The difference △ T of a pixel gray scale0n=0, as 0≤△ T1≤255, △ T0n=△ T1, as △ T1 > 255, △ T0n=255.I.e. It is formulated asWhen △ T1 is not within the scope of 0-255, then it is assumed that the pixel Gray scale point is singular point
As shown in figure 3, in step 300,K indicates current line number, and n is column Number, G refer to the numerical value of pixel gray scale.As △ T2 < 0, before file body the second row structure to each broomrape of end line structure pixel gray scale with The difference △ T for previous pixel gray scale of going togetherkn=0, as 0≤△ T2≤255, △ Tkn=△ T2, as △ T2 > 255, △ Tkn= 255, k indicate current line number, and n refers to current pixel column.It is formulated as When △ T2 is not within the scope of 0-255, then it also hold that the pixel gray scale point is singular point.
In addition, measurement temperature computation parameter information is stored in the file header part of storage file.The file of storage file Head and file body arrangement are in column-shaped.
It should be understood that this embodiment is only used to illustrate the invention but not to limit the scope of the invention.In addition, it should also be understood that, After having read the content of the invention lectured, those skilled in the art can make various modifications or changes to the present invention, these etc. Valence form is also fallen within the scope of the appended claims of the present application.

Claims (6)

1. a kind of infrared image storage transmission compression algorithm, characterized in that include the following steps:
(1-1) storage file includes that file header and file body are recorded in preceding 2 byte 0H0L of file body first trip structure First pixel gray scale of the infrared image for needing to store;
(1-2) since the 3rd byte of file body first trip structure, under each byte records current pixel gray scale with go together it is previous The difference of a pixel gray scale, and difference is converted to 0-255, it is recorded as △ T1;
(1-3) since file body the second row structure to end line structure, under every first byte records of row with the first picture of lastrow The difference of first gray scale, the difference of current pixel gray scale and previous pixel gray scale of going together under the 2nd byte start recording of every row, and Difference is converted to 0-255, is recorded as △ T2.
2. infrared image storage transmission compression algorithm according to claim 1, characterized in that Δ T1=Gn-Gn-1+128。
3. infrared image storage transmission compression algorithm according to claim 2, characterized in that as △ T1 < 0, file body The difference △ T of pixel gray scale and previous pixel gray scale of going together before each broomrape of first trip structure0n=0, as 0≤△ T1≤255, △ T0n=△ T1, as △ T1 > 255, △ T0n=255, n refer to pixel column.
4. infrared image storage transmission compression algorithm according to claim 1, characterized in thatK indicates current line number, and n is columns.
5. infrared image storage transmission compression algorithm according to claim 4, characterized in that as △ T2 < 0, file body The difference △ T of pixel gray scale and previous pixel gray scale of going together before second row structure to each broomrape of end line structurekn=0, when 0≤ When △ T2≤255, △ Tkn=△ T2, as △ T2 > 255, △ Tkn=255, k indicate current line number, and n refers to where current pixel Column.
6. storing transmission compression algorithm according to infrared image described in claim or 1 or 2 or 3 or 4 or 5, characterized in that measurement Temperature computation parameter information is stored in the file header part of storage file.
CN201810426328.8A 2018-05-07 2018-05-07 Infrared image storage transmission compression algorithm Pending CN109618172A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810426328.8A CN109618172A (en) 2018-05-07 2018-05-07 Infrared image storage transmission compression algorithm

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810426328.8A CN109618172A (en) 2018-05-07 2018-05-07 Infrared image storage transmission compression algorithm

Publications (1)

Publication Number Publication Date
CN109618172A true CN109618172A (en) 2019-04-12

Family

ID=66001883

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810426328.8A Pending CN109618172A (en) 2018-05-07 2018-05-07 Infrared image storage transmission compression algorithm

Country Status (1)

Country Link
CN (1) CN109618172A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6377270A (en) * 1986-09-20 1988-04-07 Sanyo Electric Co Ltd Image transmitting device
JP2007281758A (en) * 2006-04-05 2007-10-25 Seiko Epson Corp Moving image display system, moving image data output device, display device, and program
CN102217311A (en) * 2008-11-17 2011-10-12 松下电器产业株式会社 Image transmitter and image receiver
CN106649474A (en) * 2016-09-29 2017-05-10 上海热像机电科技股份有限公司 Novel infrared image data storage method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6377270A (en) * 1986-09-20 1988-04-07 Sanyo Electric Co Ltd Image transmitting device
JP2007281758A (en) * 2006-04-05 2007-10-25 Seiko Epson Corp Moving image display system, moving image data output device, display device, and program
CN102217311A (en) * 2008-11-17 2011-10-12 松下电器产业株式会社 Image transmitter and image receiver
CN106649474A (en) * 2016-09-29 2017-05-10 上海热像机电科技股份有限公司 Novel infrared image data storage method

Similar Documents

Publication Publication Date Title
US8879858B1 (en) Multi-channel bit packing engine
CN102104764B (en) Method for compressing, storing and processing image sequence
US8704918B2 (en) Image correction apparatus and image correction method
CN101312532B (en) Imaging apparatus, imaging circuit and imaging method
CN100418358C (en) Pixel interpolation device and camera
CN106231214A (en) High-speed cmos sensor image based on adjustable macro block approximation lossless compression method
US20100232513A1 (en) Video compression circuit and method thereof
US20060291731A1 (en) System, method and computer instructions for compression of four dimensional data
CN110958362A (en) Image correction system and method based on block table look-up
CN105407272A (en) Method of prolonging shooting duration of high-speed camera
JP2005057605A (en) Image processor, image processing system, imaging device and image processing method
CN104243886B (en) A kind of high speed image parsing and video generation method based on plug-in part technology
CN107509019A (en) Picture pick-up device, image capture method and non-transient computer-readable media
JP5231330B2 (en) Image processing device
CN109618172A (en) Infrared image storage transmission compression algorithm
US8543788B2 (en) Conformal rolling buffer apparatus, systems, and methods
CN111651630B (en) Method for improving storage efficiency of acquisition dynamic infrared thermal map by adopting key data frame
CN104715070A (en) Large image file as well as generation and read method thereof
CN113873094A (en) Chaotic compressed sensing image encryption method
US20210192794A1 (en) Feature compression algorithm based on neural network
TW468341B (en) Video encoder having an integrated scaling mechanism
CN110572664A (en) Novel BMP image compression method and system
CN107079130A (en) Image processing equipment and image processing method
CN108184113B (en) Image compression coding method and system based on inter-image reference
JP4803224B2 (en) Image processing apparatus, image processing system, imaging apparatus, and image processing method

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
CB02 Change of applicant information
CB02 Change of applicant information

Address after: Room 101, Room 201, Room 301, Room 401, room 501-4, building 52, no.650 Hongfeng Road, Donghu street, Yuhang District, Hangzhou City, Zhejiang Province

Applicant after: HANGZHOU XINHAN OPTOELECTRONICS TECHNOLOGY Co.,Ltd.

Address before: 311100 502A, No. 22, Xinyan Road, Yuhang Economic and Technological Development Zone, Yuhang District, Hangzhou City, Zhejiang Province

Applicant before: HANGZHOU XINHAN OPTOELECTRONICS TECHNOLOGY Co.,Ltd.

RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20190412