WO2014129308A1 - Image compression device, image decompression device, image compression program, image decompression program, and data structure - Google Patents

Image compression device, image decompression device, image compression program, image decompression program, and data structure Download PDF

Info

Publication number
WO2014129308A1
WO2014129308A1 PCT/JP2014/052618 JP2014052618W WO2014129308A1 WO 2014129308 A1 WO2014129308 A1 WO 2014129308A1 JP 2014052618 W JP2014052618 W JP 2014052618W WO 2014129308 A1 WO2014129308 A1 WO 2014129308A1
Authority
WO
WIPO (PCT)
Prior art keywords
pixel
unit
data
compressed
sub
Prior art date
Application number
PCT/JP2014/052618
Other languages
French (fr)
Japanese (ja)
Inventor
シーロン ズ
Original Assignee
株式会社ドクターネット
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 株式会社ドクターネット filed Critical 株式会社ドクターネット
Priority to SG11201506584SA priority Critical patent/SG11201506584SA/en
Publication of WO2014129308A1 publication Critical patent/WO2014129308A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/90Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using coding techniques not provided for in groups H04N19/10-H04N19/85, e.g. fractals
    • H04N19/91Entropy coding, e.g. variable length coding [VLC] or arithmetic coding
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/50Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding
    • H04N19/593Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding involving spatial prediction techniques

Definitions

  • the present invention relates to an image compression apparatus, an image decompression apparatus, an image compression program, an image decompression program, and a data structure.
  • Patent Document 1 discloses a method of compressing image data indicating an image captured using radiation.
  • Patent Document 2 discloses a method of performing Huffman coding for each of a plurality of block data.
  • the compression process using Huffman coding has a problem that it takes a long time to process the frequency of pixel values in image data.
  • image data with a large background area such as medical image data
  • the same pixel values are often continuous in both the vertical and horizontal directions.
  • many medical image data have a feature that the pixel value is 0 in many pixels of the image data because the pixel value at a position where a part of the body is not projected is 0. Therefore, an image compression apparatus capable of compressing image data at high speed by utilizing such characteristics of image data is desired.
  • the present invention has been made in view of these points, and an object thereof is to provide an image compression apparatus, an image compression program, and a data structure capable of compressing image data at high speed. It is another object of the present invention to provide an image decompression apparatus and an image decompression program that can restore compressed image data created by an image compression apparatus and an image compression program.
  • an image data acquisition unit that acquires image data, and block data that is a part of the image data, a plurality of sub-block data including a plurality of pixel information indicating pixel values of pixels in the image data
  • a compressing unit that compresses sub-block data to create compressed sub-block data
  • a combining unit that combines compressed sub-block data to create compressed image data.
  • the unit includes a specifying unit that specifies a minimum value from pixel values of a plurality of pixel information, a subtraction unit that subtracts the minimum value from pixel values of the plurality of pixel information, and pixel information whose pixel value is other than a predetermined value.
  • the effective pixel information includes a pixel value after the minimum value is subtracted by the subtracting unit, compressed pixel information in which information specifying the pixel position of the pixel value is associated, and information indicating the minimum value
  • a creation unit for creating Chijimisumi subblock data comprising: a creation unit for creating Chijimisumi subblock data.
  • each of the plurality of pieces of pixel information has a predetermined data length
  • the specifying unit specifies the maximum value from the pixel values of the plurality of pieces of pixel information
  • the creating unit has the predetermined data length.
  • the compressed sub-block data may be created by changing the data length to the pixel value obtained by subtracting the minimum value from the maximum value.
  • the specifying unit specifies the number of effective pixel information based on the pixel values of the plurality of pixel information
  • the creating unit includes a plurality of pixels when the number of effective pixel information is within a predetermined range.
  • Information indicating whether each piece of information is effective pixel information, map data for storing the order of the plurality of pixel information in the sub-block, pixel values of effective pixel information after subtracting the minimum value by the subtracting unit, Compressed sub-block data including may be created.
  • a plurality of compression units are provided, and a plurality of sub-block data may be compressed in parallel.
  • the computer includes an image data acquisition unit that acquires image data, block data that is a part of the image data, and a plurality of pixel information that includes a plurality of pixel information indicating pixel values of the pixels in the image data.
  • the compression unit includes a specifying unit that specifies the minimum value from the pixel values of the plurality of pixel information, a subtraction unit that subtracts the minimum value from the pixel values of the plurality of pixel information, and a pixel having a pixel value other than the predetermined value.
  • the compressed pixel information in which the pixel value after the minimum value is subtracted by the subtraction unit of the effective pixel information, which is information, and the information specifying the pixel position of the pixel value are associated with each other.
  • an image data acquisition unit that acquires compressed image data obtained by compressing image data, and the compressed image data are divided into compressed block data that is a part of the compressed image data.
  • a decompression unit that restores block data and a concatenation unit that restores image data by combining a plurality of sub-block data restored by the decompression unit.
  • the compressed sub-block data includes a plurality of pixels included in the sub-block data.
  • the decompression unit includes a minimum value acquisition unit that acquires a minimum value from the compressed image data, and compressed sub-block data Based on the compressed pixel information included in the pixel block, the pixel restoration unit that restores the pixel information included in the sub-block data, and the minimum value are added to each of the pixel values of the pixel information restored by the pixel restoration unit.
  • An image decompression device comprising: a pixel value restoration unit that restores a pixel value before compression.
  • the computer includes an image data acquisition unit that acquires compressed image data obtained by compressing image data, and a compressed image that is a part of the compressed image data by dividing the compressed image data.
  • a division unit that obtains compressed sub-block data constituting block data, and pixel information that indicates pixel values of pixels in the image data that constitutes block data that is a part of the image data by decompressing the compressed sub-block data
  • the compressed sub-block data is included in the sub-block data.
  • the decompressing unit restores the sub-block data including the plurality of sub-block data and the combining unit restores the image data by combining the sub-block data restored by the decompressing unit.
  • a compressed pixel information that associates the pixel value after the subtraction and information specifying the pixel position of the pixel value, and the decompression unit acquires the minimum value from the compressed image data.
  • a pixel restoration unit that restores the pixel information included in the sub-block data, and a pixel value of the pixel information restored by the pixel restoration unit
  • An image decompression program including a pixel value restoration unit that restores a pixel value before compression by adding a minimum value to each is provided.
  • a data structure of compressed sub-block data constituting compressed image data obtained by compressing image data, the pixel value of pixel information indicating the pixel value of a pixel included in the image data.
  • a data structure including compressed pixel information in which a minimum value, a pixel value after the minimum value is subtracted from the pixel value of the pixel information, and information specifying the position of the pixel of the pixel value are associated with each other.
  • FIG. 1 is a diagram showing an overview of the image processing system S of the present embodiment.
  • the image processing system S includes an image compression device 1 that compresses image data and creates compressed image data, and an image decompression device that restores medical image data from the compressed image data created by the image compression device 1 2 is provided.
  • the image compression apparatus 1 divides image data into a plurality of block data, and divides the block data into sub-block data including a plurality of pixel information indicating pixel values of pixels in the image data. Then, the image compression apparatus 1 compresses the sub-block data and creates compressed image data.
  • the image data is medical image data, such as CT (Computed Tomography) image data or MRI (Magnetic Resonance Imaging) image data.
  • FIG. 2 is a block diagram illustrating a functional configuration of the image compression apparatus 1 according to the present embodiment.
  • the image compression apparatus 1 includes a display unit 11, an input unit 12, a storage unit 13, a control unit 14, and a plurality of compression units 15.
  • the display unit 11 is configured by, for example, a liquid crystal display or an organic EL (Electro-Luminescence) display.
  • the display unit 11 displays, for example, an operation screen for image data compression processing under the control of the control unit 14.
  • the input unit 12 is configured by, for example, a keyboard and a mouse.
  • the input unit 12 receives an operation input from the user of the image compression apparatus 1.
  • the storage unit 13 includes, for example, a ROM (Read Only Memory), a RAM (Random Access Memory), a hard disk, and an external storage device connected to the image compression apparatus 1.
  • the external storage device may be directly connected to the image compression device 1 or may be connected to be communicable via a communication network (not shown).
  • the storage unit 13 stores, for example, medical image data as image data to be compressed.
  • the storage unit 13 also stores an image compression program for causing the computer to function as an image data acquisition unit 141, a size adjustment unit 142, a division unit 143, a combining unit 144, an output unit 145, and a compression unit 15 described later.
  • the control part 14 is comprised by CPU (Central Processor Unit), for example.
  • the control unit 14 comprehensively controls functions related to the image compression device 1 by executing various programs stored in the storage unit 13 for causing the image compression device 1 to function.
  • the control unit 14 includes an image data acquisition unit 141, a size adjustment unit 142, a division unit 143, a combining unit 144, and an output unit 145.
  • FIG. 3 is a flowchart showing a flow of image compression processing of the image compression apparatus 1 according to the present embodiment.
  • FIG. 4 is a flowchart of sub-block data compression processing according to the present embodiment.
  • FIG. 5 is a flowchart of compressed sub-block data creation processing according to this embodiment.
  • the image data acquisition unit 141 acquires image data (S1). Specifically, the image data acquisition unit 141 acquires image data stored in the storage unit 13 in response to the input unit 12 receiving an image data acquisition operation. Note that the image data acquisition unit 141 may acquire image data by receiving image data from an external device connected to the image compression apparatus 1 via a communication network.
  • the size adjustment unit 142 adjusts the size of the image data acquired by the image data acquisition unit 141 (S2). Specifically, the size adjustment unit 142 adds a pixel having a pixel value of 0 to the image data so that the number of pixels in the row direction and the number of pixels in the column direction of the acquired image data are multiples of 4, respectively. To do.
  • the dividing unit 143 divides block data which is a part of the acquired image data into a plurality of sub-block data including a plurality of pieces of pixel information indicating pixel values of pixels in the image data (S3). Specifically, first, the image data acquisition unit 141 determines the number of block data constituting the image data, and divides the block data. Here, the number of block data in the row direction is bh, and the number of rows in the column direction is bw. Subsequently, the image data acquisition unit 141 determines the number of sub-block data constituting the block data.
  • the dividing unit 143 determines the number of sub-block data so that sw ⁇ sh is 16 to 128.
  • the sub-block data is divided into this number.
  • the dividing unit 143 secures a buffer area for each data (S4). Specifically, the dividing unit 143 secures a buffer area for compressed block data, which is compressed data of each block data, in the storage unit 13. The capacity of this buffer area is, for example, sh ⁇ sw ⁇ 396 + 4. Further, the dividing unit 143 determines the size of the buffer area for the compressed image data from the number of compressed block data, and secures the buffer area for the compressed image data.
  • FIG. 6A is a diagram illustrating a configuration of compressed image data.
  • FIG. 6B is a diagram illustrating a configuration of compressed sub-block data included in compressed image data.
  • Compressed image data is composed of a header part and a body part as shown in FIG. 6A.
  • the header portion of the compressed image data includes the number of compressed block data included in the body portion, the number of the compressed sub-block data, and pixels in the row direction of the image data before size adjustment by the size adjustment unit 142
  • the number and the number of pixels in the column direction are stored.
  • 1 to 8 bytes of the header portion of the compressed image data include the number bh of the block data in the row direction, the number bw in the column direction, the number sh of pixels in the row direction of the sub-block data, and the number of pixels sw in the column direction. Is remembered.
  • the 9th to 12th bytes of the header portion store the number of pixels in the column direction before the size adjustment of the image data and the number of pixels in the row direction height.
  • the body portion of the compressed image data stores one or more block data.
  • Compressed block data is composed of a header part and a body part as shown in FIG. 6A.
  • the header portion of the compressed block data stores an address indicating the position of the block data in the image data and the size of the body portion.
  • the body portion of the compressed block data stores one or more compressed sub-block data.
  • the compressed sub-block data is composed of a header part and a body part.
  • the header part of the compressed sub-block data is divided into a plurality of areas. Specifically, in 1 to 16 bits, an address indicating the position of the sub-block data in the block data and the data length of the compressed sub-block data are stored. More specifically, the address of sub-block data is stored in 1 to 7 bits. In 8 to 16 bits, the data length of the compressed sub-block data is stored. In the 17th to 29th bits, information indicating the minimum value among the pixel values of the pixel information included in the sub-block data is stored.
  • pattern information indicating the data length of the compressed pixel information is stored.
  • the data length after compression is, for example, 0 bit, 4 bits, 6 bits, 8 bits, 10 bits, or 12 bits. That is, binary pattern information for distinguishing these bit lengths is stored in 30 to 32 bits.
  • the number of effective pixel information is stored.
  • the number of valid unit data is stored.
  • Effective pixel information and effective unit data will be described later.
  • the pixel value of invalid pixel information is stored.
  • Unit data or effective pixel information is stored in the body portion of the compressed sub-block data.
  • the dividing unit 143 inputs the sub-block data to the compressing unit 15.
  • the pixel values of the plurality of pieces of pixel information included in the sub-block data are represented by binary numbers, for example.
  • Each of the plurality of pieces of pixel information has a predetermined data length (for example, 12 bits).
  • the plurality of compression units 15 are configured by, for example, a GPU (Graphics Processing Unit) including a plurality of cores. Each of the plurality of compression units 15 corresponds to one of a plurality of cores constituting the GPU. Each of the plurality of compression units 15 performs sub-block data compression processing, which is processing for compressing sub-block data and creating compressed sub-block data (S5). The plurality of compression units 15 create compressed sub-block data by compressing the plurality of sub-block data input from the control unit 14 in parallel. The processing of the compression unit 15 will be described later.
  • the combining unit 144 combines compressed sub-block data and creates compressed image data. Specifically, the combining unit 144 calculates the size of the compressed block data based on the size of the compressed sub-block data created by the compression unit 15 (S6). The combining unit 144 stores the calculated compressed block data size and the plurality of compressed sub-block data in the compressed block data buffer to create compressed block data (S7). Here, the combining unit 144 stores the compressed sub-block data in the buffer based on the position of the compressed sub-block data before compression.
  • the combining unit 144 generates a compressed image data by combining a plurality of compressed block data (S8).
  • the output unit 145 outputs the compressed image data created by the combining unit 144.
  • the output unit 145 transmits the compressed image data to the image decompression device 2 via, for example, a communication line, or stores the compressed image data in a storage medium.
  • Each of the plurality of compression units 15 includes a specifying unit 151, a subtraction unit 152, and a creation unit 153.
  • 7A and 7B are diagrams illustrating a process in which sub-block data is generated.
  • FIG. 7A is a diagram illustrating a state before sub-block data is compressed.
  • the sub-block data includes pixel information of 16 pixels p1 to p16.
  • the combined length of the white bar and the black bar represents the data length (predetermined data length) of the pixel information
  • the black bar represents the pixel value of the pixel. It shall be. For example, when the black bar is short, the pixel value is small, and when the black bar is long, the pixel value is large.
  • the specifying unit 151 specifies the minimum value and the maximum value from the pixel values included in the plurality of pixel information included in the sub-block data (S51).
  • the specifying unit 151 specifies the pixel values of the pixels p1 to p6 as the minimum value, and specifies the pixel value of the pixel p9 as the maximum value.
  • the identifying unit 151 stores information indicating the minimum value among the minimum value and the maximum value in the 17th to 29th bits of the header portion of the sub-block data.
  • the specifying unit 151 specifies effective pixel information from a plurality of pieces of pixel information included in the sub-block data (S52).
  • the effective pixel information is pixel information whose pixel value is other than a predetermined value.
  • the invalid pixel information is pixel information having a predetermined pixel value.
  • the predetermined value is the minimum value specified by the specifying unit 151.
  • the specifying unit 151 specifies pixels p1 to p6 as invalid pixel information pixels and specifies pixels p7 to p16 as valid pixel information pixels.
  • the specifying unit 151 stores the number of effective pixel information in the 33 to 41 bits of the header portion of the compressed sub-block data.
  • the predetermined value is the minimum value, but the present invention is not limited to this. For example, instead of the minimum value, a pixel value having the highest appearance frequency among a plurality of pieces of pixel information may be set as the predetermined value.
  • the specifying unit 151 specifies the data length after compression of the pixel information included in the sub-block data (S53). Specifically, the specifying unit 151 specifies the data length after compression of the data length (predetermined data length) of the pixel information as the data length corresponding to the pixel value obtained by subtracting the minimum value from the maximum value. . For example, the specifying unit 151 associates the pixel value with the pixel value, and stores the smallest bit among the predetermined number of bits that is greater than the number of bits required when the pixel value is represented in binary. Specify the data length corresponding to the number.
  • the predetermined number of bits is 0 bit, 4 bits, 6 bits, 8 bits, 10 bits, or 12 bits.
  • the identifying unit 151 stores pattern information indicating the data length after compression in 30 to 32 bits of the header portion of the sub-block data.
  • the specifying unit 151 may specify the first data length obtained by subtracting the data length corresponding to the minimum value from the data length of the pixel information as the compressed data length.
  • the number of effective unit data included in the sub-block data is specified (S54).
  • effective unit data is data constituting sub-block data, and includes effective pixel information after a minimum value is subtracted by a subtracting unit 152 described later.
  • the specifying unit 151 calculates the number of effective pixel information in each effective unit data (S55).
  • the subtracting unit 152 subtracts the minimum value specified by the specifying unit 151 from the pixels included in the plurality of pieces of pixel information included in the sub-block data (S56).
  • FIG. 7B is a diagram illustrating an example in which the minimum value is subtracted from the pixel values of the pixels p1 to p16 by the subtraction unit 152.
  • the creation unit 153 executes compressed sub-block data creation processing to create compressed sub-block data (S57). Specifically, the creation unit 153 performs the compressed sub-block data creation process, and thereby the pixel value after the pixel value is subtracted by the subtraction unit 152 from the effective pixel information that is pixel information other than the predetermined value. And compressed sub-block data including the compressed pixel information that associates the information specifying the pixel position of the pixel value with the information indicating the minimum value.
  • index information the information specifying the pixel position of the pixel value after the subtraction.
  • the creation unit 153 changes the data length (predetermined data length) of the pixel information to the data length (data length after compression) specified by the specification unit 151, and creates compressed sub-block data. Note that the creation unit 153 may subtract the data length corresponding to the minimum value specified by the specification unit 151 from the predetermined data length to change the data length to create the compressed sub-block data.
  • the creation unit 153 determines the value of the compressed data length specified by the specification unit 151, performs branch processing (S571), and creates compressed sub-block data.
  • the creation unit 153 performs processing of the processing pattern 1 when the data length after compression is 0 bit or 4 bits (S572).
  • FIG. 8A is a diagram illustrating a body portion of compressed sub-block data created by the processing pattern 1.
  • the creation unit 153 performs a different process when the number of effective pixel information is 0 to 31, 32 to 191 and 192 to 256, and creates a body portion of compressed sub-block data.
  • the creation unit 153 creates valid unit data when the number of valid pixel information is 0 to 31, and stores the created valid unit data in the body portion of the compressed sub-block data.
  • One effective unit data includes pixel information of 4 rows and 4 columns.
  • the data length of the header portion of the effective unit data is 8 bits.
  • the creation unit 153 stores information specifying the position of the effective unit data in the sub-block data in 1 to 4 bits of the header unit of the effective unit data, and stores the number of effective pixel information in 5 to 8 bits. .
  • the creation unit 153 stores an address indicating the position of the pixel information in the effective unit data in 1 to 4 bits of the plurality of effective pixel information included in the body portion of the effective unit data, and stores the address in 5 to 8 bits.
  • the pixel value after subtraction by the subtraction unit 152 is stored.
  • invalid pixel information that is, pixel information with a pixel value of 0 after being subtracted by the subtraction unit 152 is not stored in the body portion of the effective unit data.
  • the pixels p1 to p16 shown in FIG. 7B are stored in four unit data including pixel information of 2 rows and 2 columns in order.
  • the pixels p1 to p4 can be stored in the body portion of the first unit data, since the pixels p1 to p4 are not effective pixel information, the first unit data is not effective unit data and is compressed. Not stored in sub-block data.
  • the pixels p5 to p8 can be stored in the body portion of the second unit data, the pixels p5 and p6 are not effective pixel information.
  • the pixel value of p8 and index information are stored. When the number of pieces of pixel information included in the unit data is 4, the index information is, for example, 2-bit information.
  • the creating unit 153 creates compressed sub-block data including map data and the pixel value of the effective pixel information after subtracting the minimum value by the subtracting unit 152. That is, the creation unit 153 creates compressed sub-block data including the map data and the pixel value of the valid pixel information after subtracting the minimum value by the subtraction unit 152 when the number of valid pixel information is within a predetermined range. To do.
  • the map data stores information indicating whether each of the plurality of pieces of pixel information is effective pixel information in the order of arrangement of the plurality of pieces of pixel information in the sub-block, and the number of pieces of pixel information included in the sub-block data. Consists of. For example, when the sub-block data includes 16 ⁇ 16 pixel information, the map data is 256-bit binary information. Each bit of the map data indicates the state of the pixel value at the position of the pixel information included in the body part of the sub-block data. In the map data, a bit whose bit value is 0 indicates invalid pixel information, and a bit whose bit value is 1 indicates valid pixel information.
  • the creation unit 153 stores the map data and the pixel value (4 bits) of the effective pixel information in the body portion of the compressed sub-block data.
  • n is an odd number
  • the creation unit 153 inserts 4 bits of dummy data (pixel information with a pixel value of 0) into the body portion of the compressed sub-block data.
  • the creation unit 153 stores the pixel values (4 bits) of all the pixel information in the body portion of the compressed sub-block data in the order of the pixel information.
  • FIG. 8B is a diagram illustrating a body portion of compressed sub-block data created by the processing pattern 2.
  • the creation unit 153 performs different processing depending on the number of effective pixel information from 0 to 31, from 32 to 212, and from 213 to 256, and creates a body portion of compressed sub-block data.
  • the creation unit 153 creates valid unit data when the number of valid pixel information is 0 to 31, and stores the created valid unit data in the body portion of the compressed sub-block data.
  • One effective unit data includes pixel information of 2 rows and 2 columns.
  • the data length of the header portion of the effective unit data is 8 bits.
  • the creation unit 153 stores an address indicating the position of the effective unit data in the sub-block data in 1 to 6 bits of the header unit of the effective unit data, and stores the number of effective pixel information in 7 to 8 bits. .
  • the creation unit 153 stores an address indicating the position of the pixel information in the effective unit data in 1 to 2 bits of the plurality of effective pixel information included in the body portion of the effective unit data, and in 3 to 8 bits.
  • the pixel value after subtraction by the subtraction unit 152 is stored.
  • invalid pixel information is not stored in the body portion.
  • the creation unit 153 creates map data as described above.
  • the creation unit 153 stores the map data and the pixel value (6 bits) of the effective pixel information in the body portion of the compressed sub-block data.
  • the creation unit 153 stores the pixel values (6 bits) of all the pixel information in the body portion of the compressed sub-block data in the order of the pixel information.
  • FIG. 8C is a diagram illustrating a body portion of the compressed sub-block data created by the processing pattern 3.
  • the creation unit 153 performs a different process when the number of effective pixel information is 0 to 31, 32 to 223, and 224 to 256, and creates a body portion of compressed sub-block data.
  • the creation unit 153 stores the pixel information of the valid pixels in the body portion of the compressed sub-block data.
  • the creation unit 153 stores the address indicating the position of the pixel information in the sub-block data in 1 to 8 bits of the body portion, and stores the effective pixel information after subtraction by the subtraction unit 152 in 9 to 16 bits. Stores pixel values.
  • the creation unit 153 creates map data in the same manner as described above when the number of effective pixel information is 32 to 223.
  • the creation unit 153 stores the map data and the pixel value (8 bits) of the effective pixel information in the body portion of the compressed sub-block data.
  • the creation unit 153 stores the pixel values (8 bits) of all the pixel information in the body portion of the compressed sub-block data in the order of the pixel information.
  • FIG. 8D is a diagram illustrating a body portion of the compressed sub-block data created by the processing pattern 4.
  • the creation unit 153 performs different processing depending on the number of valid pixel information from 0 to 31, from 32 to 234, and from 235 to 256, and creates a body portion of compressed sub-block data.
  • the creation unit 153 creates valid unit data when the number of valid pixel information is 0 to 31, and stores the created valid unit data in the body portion of the compressed sub-block data.
  • One effective unit data stores pixel information of 4 rows and 4 columns.
  • the data length of the header portion of the effective unit data is 8 bits.
  • the creation unit 153 stores an address indicating the position of the effective unit data in the sub-block data in 1 to 4 bits of the header unit of the effective unit data, and stores the number of effective pixel information in 5 to 8 bits. .
  • the creation unit 153 stores an address indicating the position of the pixel information in the effective unit data in 1 to 4 bits of the plurality of effective pixel information included in the body portion of the effective unit data, and in 5 to 16 bits.
  • the pixel value of the effective pixel information after subtraction by the subtraction unit 152 is stored.
  • the creation unit 153 creates map data in the same manner as described above when the number of effective pixel information is 32 to 234.
  • the creation unit 153 stores the map data and the pixel value (12 bits) of the effective pixel information in the body portion of the compressed sub-block data.
  • n is an odd number
  • the creation unit 153 inserts 12 bits of dummy data (pixel information with a pixel value of 0) into the body portion.
  • the creation unit 153 stores the pixel values (12 bits) of all the pixel information in the body portion of the compressed sub-block data.
  • FIG. 9 is a block diagram showing a functional configuration of the image decompression apparatus 2 according to the present embodiment.
  • the image decompression device 2 includes a display unit 21, an input unit 22, a storage unit 23, a control unit 24, and a plurality of decompression units 25.
  • the display unit 21 is configured by, for example, a liquid crystal display device or an organic EL display.
  • the display unit 21 displays, for example, an operation screen for decompression processing in accordance with the control of the control unit 24.
  • the input unit 22 is configured by, for example, a keyboard and a mouse.
  • the input unit 22 receives an operation input from the user of the image decompression device 2.
  • the storage unit 23 includes, for example, a ROM, a RAM, a hard disk, and an external storage device connected to the image decompression device 2.
  • the external storage device may be directly connected to the image decompression device 2 or may be connected to be communicable via a communication network.
  • the storage unit 23 may store compressed image data obtained by compressing image data.
  • the storage unit 23 stores an image decompression program for causing the computer to function as an image data acquisition unit 241, a division unit 242, a combination unit 243, a size adjustment unit 244, an output unit 245, and a decompression unit 25, which will be described later.
  • the control unit 24 is configured by a CPU, for example.
  • the control unit 24 comprehensively controls functions related to the image decompression device 2 by executing various programs stored in the storage unit 23 for causing the image decompression device 2 to function.
  • the control unit 24 includes an image data acquisition unit 241, a dividing unit 242, a combining unit 243, a size adjusting unit 244, and an output unit 245.
  • FIG. 10 is a flowchart showing a flow of image decompression processing of the image decompression apparatus 2 according to the present embodiment.
  • the image data acquisition unit 241 acquires compressed image data obtained by compressing the image data (S11). Specifically, the image data acquisition unit 241 receives the compressed image data from an external device such as the image compression device 1 connected to the image decompression device 2 via a communication network, thereby obtaining the compressed image data. get. The image data acquisition unit 241 receives the compressed image data from the image compression apparatus 1 and stores the compressed image data in the storage unit 23. In response to the input unit 22 receiving an operation for acquiring compressed image data, The compressed image data stored in the storage unit 23 may be acquired.
  • the dividing unit 242 divides the compressed image data acquired by the image data acquiring unit 241 into a plurality of compressed block data. Then, the dividing unit 242 further divides the compressed image data to obtain a plurality of compressed sub-block data constituting the compressed block data that is a part of the compressed image data (S12). The dividing unit 242 inputs the acquired plurality of compressed sub-block data to the plurality of decompressing units 25.
  • the plurality of decompression units 25 are configured by a GPU, for example.
  • the plurality of decompression units 25 include a plurality of pieces of pixel information indicating pixel values of pixels in the image data, which decompress the compressed sub-block data to form block data that is a part of the image data by executing decompression processing.
  • the sub-block data is restored (S13).
  • the plurality of decompressing units 25 decompress the plurality of compressed sub-block data input from the control unit 24 in parallel. The processing of the decompression unit 25 will be described later.
  • the combination unit 243 combines a plurality of sub-block data restored by the decompression unit 25 to restore the image data (S14). Specifically, the combining unit 243 combines the plurality of restored sub-block data based on the address of the sub-block data stored in the header part of the compressed sub-block data, and restores the block data. Then, based on the block data address stored in the header portion of the compressed block data, the combining unit 243 combines the plurality of restored block data to restore the image data.
  • the size adjustment unit 244 adjusts the size of the restored image data (S15). Specifically, the size adjustment unit 244 restores an image restored based on the number of pixels in the column direction width and the number of pixels in the row direction before the size adjustment of the image data stored in the header portion of the compressed image data. Adjust the size of the data.
  • the output unit 245 outputs the image data after the size adjustment unit 244 has adjusted the size.
  • the output unit 245 displays image data on the display unit 21, for example.
  • FIG. 11 is a flowchart of the decompression process by the decompression unit 25 according to the present embodiment.
  • the processing of the decompression unit 25 when decompressing the compressed sub-block data compressed in the image compression apparatus 1 will be described with reference to FIG.
  • the minimum value acquisition unit 251 acquires information indicating the minimum value stored in the header portion of the compressed sub-block data (S131).
  • the pixel restoration unit 252 restores pixel information included in the sub-block data based on the compressed pixel information included in the compressed sub-block data.
  • the pixel restoration unit 252 changes the data length of the pixel information to a predetermined data length (S132). Since the storage format of the compressed pixel information differs depending on the data length after compression and the number of effective pixel information, the pixel restoration unit 252 performs different processing based on the data length after compression and the number of effective pixel information, and performs sub-block data The pixel information included in is restored.
  • the pixel restoration unit 252 stores the unit data stored in the compressed sub-block data.
  • the position of the pixel of the effective pixel information included in the unit data is specified based on the body part.
  • the pixel restoration unit 252 specifies that the pixel value of the pixel information whose pixel position cannot be specified is 0.
  • the pixel restoration unit 252 restores the pixel information based on the map data when the data length after compression is 0 bit or 4 bits and the number of effective pixel information is 32 to 191.
  • the bit value is 0 in the map data
  • the pixel information at the position corresponding to the bit value corresponds to the bit value based on the pixel value of the invalid pixel information included in the header portion of the compressed sub-block data.
  • the pixel information of the position is restored.
  • the bit value is 1 in the map data
  • the pixel information at the position corresponding to the bit value is restored based on the pixel value of the effective pixel information included in the body portion of the compressed sub-block data.
  • the pixel restoration unit 252 stores the pixel information included in the body portion of the compressed sub-block data. The pixel information of the sub-block data is restored based on the pixel value.
  • the pixel restoration unit 252 performs unit unit based on the body part of the unit data stored in the compressed sub-block data. The pixel position of the effective pixel information included in the data is specified. In addition, the pixel restoration unit 252 specifies that the pixel value of the pixel information in which the position of the pixel cannot be specified is 0.
  • the pixel restoration unit 252 restores the pixel information based on the map data when the compressed data length is 6 bits and the number of effective pixel information is 32 to 212. Further, when the compressed data length is 6 bits and the number of effective pixel information is 213 to 256, the pixel restoration unit 252 calculates the pixel value of the pixel information included in the body portion of the compressed sub-block data. Based on this, the pixel information of the sub-block data is restored.
  • the pixel restoration unit 252 is based on the effective pixel information stored in the body portion of the compressed sub-block data. Perform restoration.
  • the pixel restoration unit 252 specifies that the pixel value of the pixel information in which the position of the pixel cannot be specified is 0.
  • the pixel restoration unit 252 restores pixel information based on the map data when the compressed data length is 8 bits and the number of valid pixel information is 32 to 223.
  • the pixel restoration unit 252 calculates the pixel value of the pixel information included in the body portion of the compressed sub-block data. Based on this, the pixel information of the sub-block data is restored.
  • the pixel restoration unit 252 has a body portion of unit data stored in the compressed sub-block data when the data length after compression is 10 bits or 12 bits and the number of effective pixel information is 0 to 31.
  • the position of the pixel of the effective pixel information included in the unit data is specified based on the above.
  • the pixel restoration unit 252 specifies that the pixel value of the pixel information in which the position of the pixel cannot be specified is 0.
  • the pixel restoration unit 252 restores pixel information based on the map data when the data length after compression is 10 bits or 12 bits and the number of effective pixel information is 32 to 234.
  • the pixel restoration unit 252 stores the pixel information included in the body portion of the compressed sub-block data. The pixel information of the sub-block data is restored based on the pixel value.
  • the pixel value restoration unit 253 adds the minimum value to each of the pixel values of the pixel information restored by the pixel restoration unit 252 based on the information indicating the minimum value acquired by the minimum value acquisition unit 251, and before compression.
  • the pixel value is restored (S133).
  • the compression unit 15 of the image compression device 1 subtracts the minimum value from the pixel value of the plurality of pixel information and the specifying unit 151 that specifies the minimum value from the plurality of pixel information.
  • the subtracting unit 152 the effective pixel information whose pixel value is pixel information other than the predetermined value, the pixel value after the minimum value is subtracted by the subtracting unit 152, and the information specifying the pixel position of the pixel value
  • a creation unit 153 that creates compressed sub-block data including the associated compressed pixel information and information indicating the minimum value.
  • the image compression apparatus 1 can reduce conditional branch processing during processing, and can reduce the amount of processing in the image compression processing relative to other compression methods such as Huffman coding. Therefore, the image compression apparatus 1 can compress medical images at high speed. Further, the block data of medical image data has few gradations, and the minimum value and the maximum value of the pixel values of the pixel information included in the sub-block data tend to be close. For this reason, the image compression apparatus 1 can efficiently compress medical image data.
  • the compression unit 15 of the image compression apparatus 1 causes the creation unit 153 to use a data length corresponding to a pixel value obtained by subtracting a predetermined data length, which is a data length of a plurality of pieces of pixel information, from a maximum value. To create compressed sub-block data. By doing in this way, the image compression apparatus 1 can delete unnecessary data length and can compress efficiently.
  • a plurality of compression units 15 of the image compression apparatus 1 are provided, and a plurality of sub-block data are compressed in parallel, so that the compression can be performed at high speed.
  • the compression unit 15 of the image compression apparatus 1 causes the creation unit 153 to obtain information indicating whether each of the plurality of pieces of pixel information is effective pixel information when the number of effective pixel information is within a predetermined range.
  • Compressed sub-block data including map data stored in the arrangement order of a plurality of pieces of pixel information and pixel values of effective pixel information after subtracting the minimum value by the subtraction unit 152 is created.
  • the image compression apparatus 1 can express efficiently whether the pixel information contained in subblock data is expressed by the minimum data number, whether it is effective pixel information in map data.
  • the decompression unit 25 of the image decompression apparatus 2 obtains the minimum value from the compressed image data by the minimum value acquisition unit 251, and the compressed pixel information included in the compressed sub-block data by the pixel restoration unit 252 Based on the above, the pixel information included in the sub-block data is restored, and the pixel value restoration unit 253 restores the pixel value before compression by adding the minimum value to each of the restored pixel information. Then, the combining unit 243 combines a plurality of restored sub-block data to restore the image data. By doing so, the image decompression device 2 can restore the compressed image data compressed by the image compression device 1 to image data at high speed.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)
  • Compression Of Band Width Or Redundancy In Fax (AREA)
  • Compression, Expansion, Code Conversion, And Decoders (AREA)

Abstract

[Problem] To quickly compress image data. [Solution] An image compression device (1) is equipped with: an image data acquisition section (141) for obtaining image data; a dividing section (143) for dividing block data, that is, a portion of the image data, into multiple sets of sub-block data which include multiple pieces of pixel information indicating the pixel values of pixels in the image data; and compression units (15) for compressing the sets of sub-block data in order to generate compressed sub-block data. Each generation unit (15) is equipped with an identification section (151) for identifying the smallest value in each piece of information on multiple pixels; a subtraction section (152) for subtracting the smallest value from the pixels values in the piece of information on multiple pixels; and a generation section (153) for generating the compressed sub-block data which include a piece of compressed pixel information, wherein the resulting values of the pixels in effective pixel information, that is, information on pixels having pixel values other than a predetermined value, after the smallest value is subtracted therefrom by the subtraction section (152) are associated with a piece of information for identifying the pixel positions of the pixels having the pixel values, and a piece of information indicating the smallest value.

Description

画像圧縮装置、画像解凍装置、画像圧縮プログラム、画像解凍プログラム及びデータ構造Image compression apparatus, image decompression apparatus, image compression program, image decompression program, and data structure
 本発明は、画像圧縮装置、画像解凍装置、画像圧縮プログラム、画像解凍プログラム及びデータ構造に関する。 The present invention relates to an image compression apparatus, an image decompression apparatus, an image compression program, an image decompression program, and a data structure.
 従来、レントゲン画像やCT画像等の医療用の画像データを効率的に保存したり伝送したりするために、画像を高速に圧縮することが求められている。例えば、特許文献1では、放射線を用いて撮影された画像を示す画像データを圧縮する方法が開示されている。また、画像データの圧縮を高速化するために、複数のプロセッサで複数の画像データの一部分であるブロックデータを圧縮処理する方法が知られている。例えば、特許文献2では、複数のブロックデータごとにハフマン符号化をする方式が開示されている。 Conventionally, in order to efficiently store and transmit medical image data such as X-ray images and CT images, it is required to compress the images at high speed. For example, Patent Document 1 discloses a method of compressing image data indicating an image captured using radiation. In order to speed up the compression of image data, a method of compressing block data which is a part of a plurality of image data by a plurality of processors is known. For example, Patent Document 2 discloses a method of performing Huffman coding for each of a plurality of block data.
特開2011-130880号公報JP 2011-130880 A 特開2004-104677号公報JP 2004-104677 A
 ところで、ハフマン符号化を用いた圧縮処理は、画像データにおける画素値の頻度を集計する処理を行うため、処理時間がかかるという問題があった。
 医療用の画像データのように背景領域が大きい画像データにおいては、縦方向及び横方向の両方向において同一の画素値が連続することが多い。例えば医療用の画像データの多くは、身体の一部が投影されない位置の画素値が0であることから、画像データの多くの画素において画素値が0になるという特徴がある。そこで、このような画像データの特徴を活かして画像データを高速に圧縮することができる画像圧縮装置が望まれている。
By the way, the compression process using Huffman coding has a problem that it takes a long time to process the frequency of pixel values in image data.
In image data with a large background area, such as medical image data, the same pixel values are often continuous in both the vertical and horizontal directions. For example, many medical image data have a feature that the pixel value is 0 in many pixels of the image data because the pixel value at a position where a part of the body is not projected is 0. Therefore, an image compression apparatus capable of compressing image data at high speed by utilizing such characteristics of image data is desired.
 本発明はこれらの点に鑑みてなされたものであり、画像データを高速に圧縮することができる画像圧縮装置、画像圧縮プログラム及びデータ構造を提供することを目的とする。
 また、本発明は、画像圧縮装置及び画像圧縮プログラムによって作成された圧縮済画像データを復元することができる画像解凍装置及び画像解凍プログラムを提供することを目的とする。
The present invention has been made in view of these points, and an object thereof is to provide an image compression apparatus, an image compression program, and a data structure capable of compressing image data at high speed.
It is another object of the present invention to provide an image decompression apparatus and an image decompression program that can restore compressed image data created by an image compression apparatus and an image compression program.
 本発明の第1の態様においては、画像データを取得する画像データ取得部と、画像データの一部分であるブロックデータを、画像データにおける画素の画素値を示す画素情報を複数含む複数のサブブロックデータに分割する分割部と、サブブロックデータを圧縮して、圧縮済サブブロックデータを作成する圧縮部と、圧縮済サブブロックデータを結合して圧縮済画像データを作成する結合部とを備え、圧縮部は、複数の画素情報の画素値から、最小値を特定する特定部と、複数の画素情報の画素値から、最小値を減算する減算部と、画素値が所定値以外の画素情報である有効画素情報の、減算部により最小値が減算された後の画素値と、当該画素値の画素の位置を特定する情報とを関連付けた圧縮済画素情報と、最小値を示す情報とを含む圧縮済サブブロックデータを作成する作成部と、を備える画像圧縮装置を提供する。 In the first aspect of the present invention, an image data acquisition unit that acquires image data, and block data that is a part of the image data, a plurality of sub-block data including a plurality of pixel information indicating pixel values of pixels in the image data A compressing unit that compresses sub-block data to create compressed sub-block data, and a combining unit that combines compressed sub-block data to create compressed image data. The unit includes a specifying unit that specifies a minimum value from pixel values of a plurality of pixel information, a subtraction unit that subtracts the minimum value from pixel values of the plurality of pixel information, and pixel information whose pixel value is other than a predetermined value. The effective pixel information includes a pixel value after the minimum value is subtracted by the subtracting unit, compressed pixel information in which information specifying the pixel position of the pixel value is associated, and information indicating the minimum value To provide an image compression apparatus comprising: a creation unit for creating Chijimisumi subblock data.
 上記の画像圧縮装置では、複数の画素情報のそれぞれは所定のデータ長を有し、特定部は、複数の画素情報の画素値から、最大値を特定し、作成部は、所定のデータ長を、最大値から最小値を減算して得られる画素値に対応するデータ長に変更して圧縮済サブブロックデータを作成してもよい。 In the above image compression apparatus, each of the plurality of pieces of pixel information has a predetermined data length, the specifying unit specifies the maximum value from the pixel values of the plurality of pieces of pixel information, and the creating unit has the predetermined data length. The compressed sub-block data may be created by changing the data length to the pixel value obtained by subtracting the minimum value from the maximum value.
 上記の画像圧縮装置では、特定部は、複数の画素情報の画素値に基づいて、有効画素情報の数を特定し、作成部は、有効画素情報の数が所定範囲の場合に、複数の画素情報のそれぞれが有効画素情報か否かを示す情報を、サブブロックにおける当該複数の画素情報の並び順に格納するマップデータと、減算部によって最小値を減算した後の有効画素情報の画素値と、を含む圧縮済サブブロックデータを作成してもよい。上記の画像圧縮装置では、圧縮部は複数設けられており、複数のサブブロックデータを並列して圧縮してもよい。 In the above image compression device, the specifying unit specifies the number of effective pixel information based on the pixel values of the plurality of pixel information, and the creating unit includes a plurality of pixels when the number of effective pixel information is within a predetermined range. Information indicating whether each piece of information is effective pixel information, map data for storing the order of the plurality of pixel information in the sub-block, pixel values of effective pixel information after subtracting the minimum value by the subtracting unit, Compressed sub-block data including may be created. In the above image compression apparatus, a plurality of compression units are provided, and a plurality of sub-block data may be compressed in parallel.
 本発明の第2の態様においては、コンピュータを、画像データを取得する画像データ取得部と、画像データの一部分であるブロックデータを、画像データにおける画素の画素値を示す画素情報を複数含む複数のサブブロックデータに分割する分割部と、サブブロックデータを圧縮して、圧縮済サブブロックデータを作成する圧縮部と、圧縮済サブブロックデータを結合して圧縮済画像データを作成する結合部として機能させ、圧縮部は、複数の画素情報の画素値から、最小値を特定する特定部と、複数の画素情報の画素値から、最小値を減算する減算部と、画素値が所定値以外の画素情報である有効画素情報の、減算部により最小値が減算された後の画素値と、当該画素値の画素の位置を特定する情報とを関連付けた圧縮済画素情報と、最小値を示す情報とを含む圧縮済サブブロックデータを作成する作成部と、を含む画像圧縮プログラムを提供する。 In the second aspect of the present invention, the computer includes an image data acquisition unit that acquires image data, block data that is a part of the image data, and a plurality of pixel information that includes a plurality of pixel information indicating pixel values of the pixels in the image data. Functions as a division unit that divides into sub-block data, a compression unit that compresses sub-block data to create compressed sub-block data, and a combining unit that combines compressed sub-block data to create compressed image data The compression unit includes a specifying unit that specifies the minimum value from the pixel values of the plurality of pixel information, a subtraction unit that subtracts the minimum value from the pixel values of the plurality of pixel information, and a pixel having a pixel value other than the predetermined value. The compressed pixel information in which the pixel value after the minimum value is subtracted by the subtraction unit of the effective pixel information, which is information, and the information specifying the pixel position of the pixel value are associated with each other. To provide an image compression program comprising a creation unit for creating a zipped subblock data including the information indicating the value, the.
 本発明の第3の態様においては、画像データを圧縮した圧縮済画像データを取得する画像データ取得部と、圧縮済画像データを分割して、圧縮済画像データの一部分である圧縮済ブロックデータを構成する圧縮済サブブロックデータを取得する分割部と、圧縮済サブブロックデータを解凍して画像データの一部分であるブロックデータを構成する、画像データにおける画素の画素値を示す画素情報を複数含むサブブロックデータを復元する解凍部と、解凍部により復元されたサブブロックデータを複数結合して画像データを復元する結合部とを備え、圧縮済サブブロックデータは、サブブロックデータに含まれる複数の画素値の最小値と、画像データにおける画素値が所定値以外の画素値の有効画素情報の、最小値が減算された後の画素値、及び当該画素値の画素の位置を特定する情報とを関連付けた圧縮済画素情報と、を含み、解凍部は、圧縮済画像データから最小値を取得する最小値取得部と、圧縮済サブブロックデータに含まれている圧縮済画素情報に基づいて、サブブロックデータに含まれる画素情報を復元する画素復元部と、画素復元部により復元された画素情報の画素値のそれぞれに、最小値を加算して圧縮前の画素値を復元する画素値復元部と、を備える画像解凍装置を提供する。 In the third aspect of the present invention, an image data acquisition unit that acquires compressed image data obtained by compressing image data, and the compressed image data are divided into compressed block data that is a part of the compressed image data. A dividing unit that acquires compressed sub-block data to be configured; and a sub that includes a plurality of pieces of pixel information indicating pixel values of pixels in the image data that constitutes block data that is a part of the image data by decompressing the compressed sub-block data A decompression unit that restores block data; and a concatenation unit that restores image data by combining a plurality of sub-block data restored by the decompression unit. The compressed sub-block data includes a plurality of pixels included in the sub-block data. Pixel value after the minimum value is subtracted from the minimum value and the effective pixel information of the pixel value other than the specified pixel value in the image data And compressed pixel information associated with information specifying the pixel position of the pixel value, the decompression unit includes a minimum value acquisition unit that acquires a minimum value from the compressed image data, and compressed sub-block data Based on the compressed pixel information included in the pixel block, the pixel restoration unit that restores the pixel information included in the sub-block data, and the minimum value are added to each of the pixel values of the pixel information restored by the pixel restoration unit. An image decompression device comprising: a pixel value restoration unit that restores a pixel value before compression.
 本発明の第4の態様においては、コンピュータを、画像データを圧縮した圧縮済画像データを取得する画像データ取得部と、圧縮済画像データを分割して、圧縮済画像データの一部分である圧縮済ブロックデータを構成する圧縮済サブブロックデータを取得する分割部と、圧縮済サブブロックデータを解凍して画像データの一部分であるブロックデータを構成する、画像データにおける画素の画素値を示す画素情報を複数含むサブブロックデータを復元する解凍部と、解凍部により復元されたサブブロックデータを複数結合して画像データを復元する結合部として機能させ、圧縮済サブブロックデータは、サブブロックデータに含まれる複数の画素値の最小値と、画像データにおける画素値が所定値以外の画素値の有効画素情報の、最小値が減算された後の画素値、及び当該画素値の画素の位置を特定する情報とを関連付けた圧縮済画素情報と、を含み、解凍部は、圧縮済画像データから最小値を取得する最小値取得部と、圧縮済サブブロックデータに含まれている圧縮済画素情報に基づいて、サブブロックデータに含まれる画素情報を復元する画素復元部と、画素復元部により復元された画素情報の画素値のそれぞれに、最小値を加算して圧縮前の画素値を復元する画素値復元部を含む画像解凍プログラムを提供する。 In the fourth aspect of the present invention, the computer includes an image data acquisition unit that acquires compressed image data obtained by compressing image data, and a compressed image that is a part of the compressed image data by dividing the compressed image data. A division unit that obtains compressed sub-block data constituting block data, and pixel information that indicates pixel values of pixels in the image data that constitutes block data that is a part of the image data by decompressing the compressed sub-block data The compressed sub-block data is included in the sub-block data. The decompressing unit restores the sub-block data including the plurality of sub-block data and the combining unit restores the image data by combining the sub-block data restored by the decompressing unit. Minimum value of multiple pixel values and effective pixel information for pixel values other than the specified pixel value in image data A compressed pixel information that associates the pixel value after the subtraction and information specifying the pixel position of the pixel value, and the decompression unit acquires the minimum value from the compressed image data. Based on the compressed pixel information included in the compressed sub-block data, a pixel restoration unit that restores the pixel information included in the sub-block data, and a pixel value of the pixel information restored by the pixel restoration unit An image decompression program including a pixel value restoration unit that restores a pixel value before compression by adding a minimum value to each is provided.
 本発明の第5の態様においては、画像データを圧縮した圧縮画像データを構成する圧縮済サブブロックデータのデータ構造であって、画像データに含まれる画素の画素値を示す画素情報における画素値の最小値と、画素情報の画素値から最小値が減算された後の画素値と、当該画素値の画素の位置を特定する情報とを関連付けた圧縮済画素情報を含むデータ構造を提供する。 According to a fifth aspect of the present invention, there is provided a data structure of compressed sub-block data constituting compressed image data obtained by compressing image data, the pixel value of pixel information indicating the pixel value of a pixel included in the image data. Provided is a data structure including compressed pixel information in which a minimum value, a pixel value after the minimum value is subtracted from the pixel value of the pixel information, and information specifying the position of the pixel of the pixel value are associated with each other.
 本発明によれば、画像データを高速に圧縮することができるという効果を奏する。 According to the present invention, there is an effect that the image data can be compressed at high speed.
本実施形態の画像処理システムの概要を示す図である。It is a figure which shows the outline | summary of the image processing system of this embodiment. 本実施形態に係る画像圧縮装置の機能構成を示すブロック図である。It is a block diagram which shows the function structure of the image compression apparatus which concerns on this embodiment. 本実施形態に係る画像圧縮装置の画像圧縮処理のフローチャートである。It is a flowchart of the image compression process of the image compression apparatus which concerns on this embodiment. 本実施形態に係るサブブロックデータ圧縮処理のフローチャートである。It is a flowchart of the subblock data compression process which concerns on this embodiment. 本実施形態に係るサブブロックデータ作成処理のフローチャートである。It is a flowchart of the sub block data creation processing according to the present embodiment. 本実施形態に係る圧縮済画像データの構成を示す図である。It is a figure which shows the structure of the compressed image data which concerns on this embodiment. 本実施形態に係る圧縮済サブブロックデータの構成を示す図である。It is a figure which shows the structure of the compressed subblock data which concern on this embodiment. 本実施形態に係るサブブロックデータが圧縮される前の状態を示す図である。It is a figure which shows the state before the subblock data which concern on this embodiment are compressed. 本実施形態に係る減算部により最小値を減算された例を示す図である。It is a figure which shows the example by which the minimum value was subtracted by the subtraction part which concerns on this embodiment. 本実施形態に係る処理パターン1の処理によって作成されたサブブロックデータのボディ部を示す図である。It is a figure which shows the body part of the subblock data produced by the process of the process pattern 1 which concerns on this embodiment. 本実施形態に係る処理パターン2の処理によって作成されたサブブロックデータのボディ部を示す図である。It is a figure which shows the body part of the subblock data produced by the process of the process pattern 2 which concerns on this embodiment. 本実施形態に係る処理パターン3の処理によって作成されたサブブロックデータのボディ部を示す図である。It is a figure which shows the body part of the subblock data produced by the process of the process pattern 3 which concerns on this embodiment. 本実施形態に係る処理パターン4の処理によって作成されたサブブロックデータのボディ部を示す図である。It is a figure which shows the body part of the subblock data produced by the process of the process pattern 4 which concerns on this embodiment. 本実施形態に係る画像解凍装置の機能構成を示すブロック図である。It is a block diagram which shows the function structure of the image decompression | decompression apparatus which concerns on this embodiment. 本実施形態に係る画像解凍装置の画像解凍処理の流れを示すフローチャートである。It is a flowchart which shows the flow of the image decompression process of the image decompression | decompression apparatus which concerns on this embodiment. 本実施形態に係る解凍部による解凍処理のフローチャートである。It is a flowchart of the decompression | decompression process by the decompression | decompression part which concerns on this embodiment.
 図1は、本実施形態の画像処理システムSの概要を示す図である。
 画像処理システムSは、画像データを圧縮して圧縮済画像データを作成する画像圧縮装置1と、当該画像圧縮装置1によって作成された圧縮済画像データから医療用の画像データを復元する画像解凍装置2とを備える。
FIG. 1 is a diagram showing an overview of the image processing system S of the present embodiment.
The image processing system S includes an image compression device 1 that compresses image data and creates compressed image data, and an image decompression device that restores medical image data from the compressed image data created by the image compression device 1 2 is provided.
 画像圧縮装置1は、画像データを複数のブロックデータに分割し、ブロックデータを、画像データにおける画素の画素値を示す画素情報を複数含むサブブロックデータに分割する。そして、画像圧縮装置1は、サブブロックデータを圧縮して圧縮済画像データを作成する。ここで、画像データとは、医療用の画像データであり、例えば、CT(Computed Tomography)画像データや、MRI(Magnetic Resonance Imaging)画像データである。 The image compression apparatus 1 divides image data into a plurality of block data, and divides the block data into sub-block data including a plurality of pixel information indicating pixel values of pixels in the image data. Then, the image compression apparatus 1 compresses the sub-block data and creates compressed image data. Here, the image data is medical image data, such as CT (Computed Tomography) image data or MRI (Magnetic Resonance Imaging) image data.
 以下、画像圧縮装置1の詳細について説明する。
 図2は、本実施形態に係る画像圧縮装置1の機能構成を示すブロック図である。
 画像圧縮装置1は、図2に示すように、表示部11と、入力部12と、記憶部13と、制御部14と、複数の圧縮部15と、を備える。
Details of the image compression apparatus 1 will be described below.
FIG. 2 is a block diagram illustrating a functional configuration of the image compression apparatus 1 according to the present embodiment.
As shown in FIG. 2, the image compression apparatus 1 includes a display unit 11, an input unit 12, a storage unit 13, a control unit 14, and a plurality of compression units 15.
 表示部11は、例えば、液晶ディスプレイや有機EL(Electro-Luminescence)ディスプレイ等により構成される。表示部11は、制御部14の制御に応じて、例えば画像データの圧縮処理の操作画面等を表示する。
 入力部12は、例えば、キーボードやマウス等によって構成される。入力部12は、画像圧縮装置1のユーザから操作入力を受け付ける。
The display unit 11 is configured by, for example, a liquid crystal display or an organic EL (Electro-Luminescence) display. The display unit 11 displays, for example, an operation screen for image data compression processing under the control of the control unit 14.
The input unit 12 is configured by, for example, a keyboard and a mouse. The input unit 12 receives an operation input from the user of the image compression apparatus 1.
 記憶部13は、例えば、ROM(Read Only Memory)、RAM(Random Access Memory)、ハードディスク、及び画像圧縮装置1に接続された外部記憶装置等により構成される。ここで、外部記憶装置は、画像圧縮装置1に直接接続されていてもよいし、通信ネットワーク(不図示)を介して通信可能に接続されていてもよい。記憶部13は、圧縮対象の画像データとして、例えば、医療用の画像データを記憶する。また、記憶部13は、コンピュータを後述の画像データ取得部141、サイズ調整部142、分割部143、結合部144、出力部145、圧縮部15として機能させるための画像圧縮プログラムを記憶する。 The storage unit 13 includes, for example, a ROM (Read Only Memory), a RAM (Random Access Memory), a hard disk, and an external storage device connected to the image compression apparatus 1. Here, the external storage device may be directly connected to the image compression device 1 or may be connected to be communicable via a communication network (not shown). The storage unit 13 stores, for example, medical image data as image data to be compressed. The storage unit 13 also stores an image compression program for causing the computer to function as an image data acquisition unit 141, a size adjustment unit 142, a division unit 143, a combining unit 144, an output unit 145, and a compression unit 15 described later.
 制御部14は、例えば、CPU(Central Processor Unit)により構成される。制御部14は、記憶部13に記憶されている、画像圧縮装置1を機能させるための各種プログラムを実行することにより、画像圧縮装置1に係る機能を統括的に制御する。制御部14は、画像データ取得部141と、サイズ調整部142と、分割部143と、結合部144と、出力部145とを備える。
 以下、各機能について、フローチャートを適宜参照しながら説明を進める。図3は、本実施形態に係る画像圧縮装置1の画像圧縮処理の流れを示すフローチャートである。図4は、本実施形態に係るサブブロックデータ圧縮処理のフローチャートである。図5は、本実施形態に係る圧縮済サブブロックデータ作成処理のフローチャートである。
The control part 14 is comprised by CPU (Central Processor Unit), for example. The control unit 14 comprehensively controls functions related to the image compression device 1 by executing various programs stored in the storage unit 13 for causing the image compression device 1 to function. The control unit 14 includes an image data acquisition unit 141, a size adjustment unit 142, a division unit 143, a combining unit 144, and an output unit 145.
Hereinafter, description of each function will be made with reference to flowcharts as appropriate. FIG. 3 is a flowchart showing a flow of image compression processing of the image compression apparatus 1 according to the present embodiment. FIG. 4 is a flowchart of sub-block data compression processing according to the present embodiment. FIG. 5 is a flowchart of compressed sub-block data creation processing according to this embodiment.
 まず、図3を参照しながら、画像圧縮処理の全体の流れについて説明する。
 画像データ取得部141は、画像データを取得する(S1)。具体的には、画像データ取得部141は、入力部12が画像データの取得操作を受け付けたことに応じて、記憶部13に記憶されている画像データを取得する。なお、画像データ取得部141は、画像圧縮装置1に通信ネットワークを介して接続されている外部装置から画像データを受信して、当該画像データを取得してもよい。
First, the overall flow of image compression processing will be described with reference to FIG.
The image data acquisition unit 141 acquires image data (S1). Specifically, the image data acquisition unit 141 acquires image data stored in the storage unit 13 in response to the input unit 12 receiving an image data acquisition operation. Note that the image data acquisition unit 141 may acquire image data by receiving image data from an external device connected to the image compression apparatus 1 via a communication network.
 サイズ調整部142は、画像データ取得部141が取得した画像データのサイズを調整する(S2)。具体的には、サイズ調整部142は、取得した画像データの行方向の画素数と、列方向の画素数とがそれぞれ4の倍数となるように、画像データに画素値が0の画素を追加する。 The size adjustment unit 142 adjusts the size of the image data acquired by the image data acquisition unit 141 (S2). Specifically, the size adjustment unit 142 adds a pixel having a pixel value of 0 to the image data so that the number of pixels in the row direction and the number of pixels in the column direction of the acquired image data are multiples of 4, respectively. To do.
 分割部143は、取得した画像データの一部分であるブロックデータを、当該画像データにおける画素の画素値を示す画素情報を複数含む複数のサブブロックデータに分割する(S3)。具体的には、まず、画像データ取得部141は、画像データを構成するブロックデータの数を決定し、ブロックデータを分割する。ここで、ブロックデータの行方向の数をbh、列方向の行数をbwとする。続いて、画像データ取得部141は、当該ブロックデータを構成するサブブロックデータの数を決定する。分割部143は、例えば、サブブロックデータの行方向の画素数をsh、列方向の画素数をswとした場合に、sw×shが16~128となるようにサブブロックデータの数を決定し、この数にサブブロックデータを分割する。 The dividing unit 143 divides block data which is a part of the acquired image data into a plurality of sub-block data including a plurality of pieces of pixel information indicating pixel values of pixels in the image data (S3). Specifically, first, the image data acquisition unit 141 determines the number of block data constituting the image data, and divides the block data. Here, the number of block data in the row direction is bh, and the number of rows in the column direction is bw. Subsequently, the image data acquisition unit 141 determines the number of sub-block data constituting the block data. For example, when the number of pixels in the row direction of the sub-block data is sh and the number of pixels in the column direction is sw, the dividing unit 143 determines the number of sub-block data so that sw × sh is 16 to 128. The sub-block data is divided into this number.
 続いて、分割部143は、各データのバッファ領域を確保する(S4)。具体的には、分割部143は、各ブロックデータの圧縮データである圧縮済ブロックデータのバッファ領域を記憶部13に確保する。このバッファ領域の容量は、例えば、sh×sw×396+4である。また、分割部143は、圧縮済ブロックデータの個数から圧縮済画像データのバッファ領域の大きさを決定し、圧縮済画像データのバッファ領域を確保する。 Subsequently, the dividing unit 143 secures a buffer area for each data (S4). Specifically, the dividing unit 143 secures a buffer area for compressed block data, which is compressed data of each block data, in the storage unit 13. The capacity of this buffer area is, for example, sh × sw × 396 + 4. Further, the dividing unit 143 determines the size of the buffer area for the compressed image data from the number of compressed block data, and secures the buffer area for the compressed image data.
 ここで、圧縮済画像データの構成について説明する。図6Aは、圧縮済画像データの構成を示す図である。図6Bは、圧縮済画像データに含まれる圧縮済サブブロックデータの構成を示す図である。 Here, the configuration of the compressed image data will be described. FIG. 6A is a diagram illustrating a configuration of compressed image data. FIG. 6B is a diagram illustrating a configuration of compressed sub-block data included in compressed image data.
 圧縮済画像データは、図6Aに示すように、ヘッダー部とボディ部とから構成されている。圧縮済画像データのヘッダー部は、ボディ部に含まれている圧縮済ブロックデータの数と、当該圧縮済サブブロックデータの数と、サイズ調整部142によるサイズ調整前の画像データの行方向の画素数及び列方向の画素数とを格納している。例えば、圧縮済画像データのヘッダー部の1~8バイトには、ブロックデータの行方向の数bh、列方向の数bw、サブブロックデータの行方向の画素数sh、及び列方向の画素数swを記憶している。また、ヘッダー部の9~12バイトには、画像データのサイズ調整前の列方向の画素数width、行方向の画素数heightを記憶している。圧縮済画像データのボディ部は、1以上のブロックデータを格納している。 Compressed image data is composed of a header part and a body part as shown in FIG. 6A. The header portion of the compressed image data includes the number of compressed block data included in the body portion, the number of the compressed sub-block data, and pixels in the row direction of the image data before size adjustment by the size adjustment unit 142 The number and the number of pixels in the column direction are stored. For example, 1 to 8 bytes of the header portion of the compressed image data include the number bh of the block data in the row direction, the number bw in the column direction, the number sh of pixels in the row direction of the sub-block data, and the number of pixels sw in the column direction. Is remembered. The 9th to 12th bytes of the header portion store the number of pixels in the column direction before the size adjustment of the image data and the number of pixels in the row direction height. The body portion of the compressed image data stores one or more block data.
 圧縮済ブロックデータは、図6Aに示すように、ヘッダー部とボディ部とから構成されている。圧縮済ブロックデータのヘッダー部は、画像データにおけるブロックデータの位置を示すアドレスと、ボディ部のサイズとを格納している。圧縮済ブロックデータのボディ部は、1以上の圧縮済サブブロックデータを格納している。 Compressed block data is composed of a header part and a body part as shown in FIG. 6A. The header portion of the compressed block data stores an address indicating the position of the block data in the image data and the size of the body portion. The body portion of the compressed block data stores one or more compressed sub-block data.
 圧縮済サブブロックデータは、図6Bに示すように、ヘッダー部とボディ部とから構成されている。圧縮済サブブロックデータのヘッダー部は、複数の領域に分かれている。
 具体的には、1~16ビットには、サブブロックデータのブロックデータにおける位置を示すアドレス及び圧縮済サブブロックデータのデータ長が格納される。より具体的には、1~7ビットには、サブブロックデータのアドレスが格納される。8~16ビットには、圧縮済サブブロックデータのデータ長が格納される。
 17~29ビットには、サブブロックデータに含まれる画素情報の画素値のうち最小値を示す情報が格納される。
As shown in FIG. 6B, the compressed sub-block data is composed of a header part and a body part. The header part of the compressed sub-block data is divided into a plurality of areas.
Specifically, in 1 to 16 bits, an address indicating the position of the sub-block data in the block data and the data length of the compressed sub-block data are stored. More specifically, the address of sub-block data is stored in 1 to 7 bits. In 8 to 16 bits, the data length of the compressed sub-block data is stored.
In the 17th to 29th bits, information indicating the minimum value among the pixel values of the pixel information included in the sub-block data is stored.
 30~32ビットには、圧縮後の画素情報のデータ長を示すパターン情報が格納される。圧縮後のデータ長は、例えば、0ビット、4ビット、6ビット、8ビット、10ビット及び12ビットのいずれかである。すなわち、30~32ビットには、これらのビット長を区別するための2進数のパターン情報が格納される。 In 30 to 32 bits, pattern information indicating the data length of the compressed pixel information is stored. The data length after compression is, for example, 0 bit, 4 bits, 6 bits, 8 bits, 10 bits, or 12 bits. That is, binary pattern information for distinguishing these bit lengths is stored in 30 to 32 bits.
 33~41ビットには、有効画素情報の数が格納される。
 42~48ビットには、有効ユニットデータの数が格納される。有効画素情報及び有効ユニットデータについては後述する。
 49~64ビットには、無効画素情報の画素値が格納される。
 圧縮済サブブロックデータのボディ部には、ユニットデータ又は有効画素情報が格納される。
In 33 to 41 bits, the number of effective pixel information is stored.
In 42 to 48 bits, the number of valid unit data is stored. Effective pixel information and effective unit data will be described later.
In the 49th to 64th bits, the pixel value of invalid pixel information is stored.
Unit data or effective pixel information is stored in the body portion of the compressed sub-block data.
 分割部143は、サブブロックデータを圧縮部15に入力する。ここで、サブブロックデータに含まれている複数の画素情報の画素値は、例えば2進数で表されている。これら複数の画素情報のそれぞれは所定のデータ長(例えば12ビット)である。 The dividing unit 143 inputs the sub-block data to the compressing unit 15. Here, the pixel values of the plurality of pieces of pixel information included in the sub-block data are represented by binary numbers, for example. Each of the plurality of pieces of pixel information has a predetermined data length (for example, 12 bits).
 複数の圧縮部15は、例えば、複数のコアを備えるGPU(Graphics Processing Unit)により構成される。複数の圧縮部15のそれぞれは、GPUを構成する複数のコアのいずれかに対応している。複数の圧縮部15のそれぞれは、サブブロックデータを圧縮して、圧縮済サブブロックデータを作成する処理であるサブブロックデータ圧縮処理を実行する(S5)。複数の圧縮部15は、制御部14から入力された複数のサブブロックデータを並列して圧縮することにより、圧縮済サブブロックデータを作成する。圧縮部15の処理については後述する。 The plurality of compression units 15 are configured by, for example, a GPU (Graphics Processing Unit) including a plurality of cores. Each of the plurality of compression units 15 corresponds to one of a plurality of cores constituting the GPU. Each of the plurality of compression units 15 performs sub-block data compression processing, which is processing for compressing sub-block data and creating compressed sub-block data (S5). The plurality of compression units 15 create compressed sub-block data by compressing the plurality of sub-block data input from the control unit 14 in parallel. The processing of the compression unit 15 will be described later.
 結合部144は、圧縮済サブブロックデータを結合して圧縮済画像データを作成する。
 具体的には、結合部144は、圧縮部15により作成された圧縮済サブブロックデータのサイズに基づいて、圧縮済ブロックデータのサイズを算出する(S6)。結合部144は、算出した圧縮済ブロックデータのサイズと、複数の圧縮済サブブロックデータとを圧縮済ブロックデータのバッファに格納して圧縮済ブロックデータを作成する(S7)。ここで、結合部144は、圧縮済サブブロックデータの圧縮前のサブブロックデータの位置に基づいて、当該圧縮済サブブロックデータをバッファに格納する。
The combining unit 144 combines compressed sub-block data and creates compressed image data.
Specifically, the combining unit 144 calculates the size of the compressed block data based on the size of the compressed sub-block data created by the compression unit 15 (S6). The combining unit 144 stores the calculated compressed block data size and the plurality of compressed sub-block data in the compressed block data buffer to create compressed block data (S7). Here, the combining unit 144 stores the compressed sub-block data in the buffer based on the position of the compressed sub-block data before compression.
 続いて、結合部144は、複数の圧縮済ブロックデータを結合して圧縮済画像データを作成する(S8)。 Subsequently, the combining unit 144 generates a compressed image data by combining a plurality of compressed block data (S8).
 出力部145は、結合部144が作成した圧縮済画像データを出力する。出力部145は、例えば通信回線を介して画像解凍装置2に圧縮済画像データを送信したり、記憶媒体に圧縮済画像データを記憶させたりする。 The output unit 145 outputs the compressed image data created by the combining unit 144. The output unit 145 transmits the compressed image data to the image decompression device 2 via, for example, a communication line, or stores the compressed image data in a storage medium.
 続いて、圧縮部15の処理の詳細について説明を行う。複数の圧縮部15のそれぞれは、特定部151と、減算部152と、作成部153とを備える。図7A及び図7Bは、サブブロックデータが生成される過程を示す図である。図7Aは、サブブロックデータが圧縮される前の状態を示す図である。なお、説明を簡易的にするため、図7A及び図7Bでは、サブブロックデータが16個の画素p1~p16の画素情報を含んでいるものとする。また、図7A及び図7Bに示される白いバーと黒いバーとを合わせたバーの長さは、画素情報のデータ長(所定のデータ長)を表し、黒いバーは、画素の画素値を表しているものとする。例えば、黒いバーが短い場合、画素値が小さく、黒いバーが長い場合、画素値が大きいものとする。 Subsequently, details of the processing of the compression unit 15 will be described. Each of the plurality of compression units 15 includes a specifying unit 151, a subtraction unit 152, and a creation unit 153. 7A and 7B are diagrams illustrating a process in which sub-block data is generated. FIG. 7A is a diagram illustrating a state before sub-block data is compressed. In order to simplify the description, in FIGS. 7A and 7B, it is assumed that the sub-block data includes pixel information of 16 pixels p1 to p16. 7A and 7B, the combined length of the white bar and the black bar represents the data length (predetermined data length) of the pixel information, and the black bar represents the pixel value of the pixel. It shall be. For example, when the black bar is short, the pixel value is small, and when the black bar is long, the pixel value is large.
 以下、図4を参照しながら、圧縮部15におけるサブブロックデータ圧縮処理の詳細について説明を行う。特定部151は、サブブロックデータに含まれる複数の画素情報に含まれる画素値から、最小値及び最大値を特定する(S51)。図7Aに示す例では、特定部151は、画素p1~p6の画素値を最小値と特定し、画素p9の画素値を最大値と特定する。特定部151は、最小値及び最大値のうち、最小値を示す情報をサブブロックデータのヘッダー部の17~29ビットに格納する。 Hereinafter, the details of the sub-block data compression processing in the compression unit 15 will be described with reference to FIG. The specifying unit 151 specifies the minimum value and the maximum value from the pixel values included in the plurality of pixel information included in the sub-block data (S51). In the example illustrated in FIG. 7A, the specifying unit 151 specifies the pixel values of the pixels p1 to p6 as the minimum value, and specifies the pixel value of the pixel p9 as the maximum value. The identifying unit 151 stores information indicating the minimum value among the minimum value and the maximum value in the 17th to 29th bits of the header portion of the sub-block data.
 続いて、特定部151は、サブブロックデータに含まれる複数の画素情報から有効画素情報を特定する(S52)。有効画素情報とは、画素値が所定値以外の画素情報である。また、無効画素情報とは、画素値が所定値の画素情報である。ここで、所定値とは、特定部151により特定された最小値である。例えば、図7Aでは、特定部151は、画素p1~p6を無効画素情報の画素と特定し、画素p7~p16を有効画素情報の画素と特定する。特定部151は、有効画素情報の数を圧縮済サブブロックデータのヘッダー部の33~41ビットに格納する。なお、本実施形態では、所定値を最小値としたが、これに限らない。例えば、最小値ではなく、複数の画素情報中で出現頻度が最も高い画素値を所定値としてもよい。 Subsequently, the specifying unit 151 specifies effective pixel information from a plurality of pieces of pixel information included in the sub-block data (S52). The effective pixel information is pixel information whose pixel value is other than a predetermined value. The invalid pixel information is pixel information having a predetermined pixel value. Here, the predetermined value is the minimum value specified by the specifying unit 151. For example, in FIG. 7A, the specifying unit 151 specifies pixels p1 to p6 as invalid pixel information pixels and specifies pixels p7 to p16 as valid pixel information pixels. The specifying unit 151 stores the number of effective pixel information in the 33 to 41 bits of the header portion of the compressed sub-block data. In the present embodiment, the predetermined value is the minimum value, but the present invention is not limited to this. For example, instead of the minimum value, a pixel value having the highest appearance frequency among a plurality of pieces of pixel information may be set as the predetermined value.
 続いて、特定部151は、サブブロックデータに含まれている画素情報の圧縮後のデータ長を特定する(S53)。具体的には、特定部151は、画素情報のデータ長(所定のデータ長)の圧縮後のデータ長を、最大値から最小値を減算して得られる画素値に対応するデータ長に特定する。例えば、特定部151は、画素値に関連付けて予め記憶部13に記憶された、画素値を2進数で表した場合に要するビット数よりも多い、予め定められたビット数のうち、最も小さいビット数に対応するデータ長に特定する。ここで、予め定められたビット数とは、0ビット又は4ビット、6ビット、8ビット、10ビット又は12ビットである。 Subsequently, the specifying unit 151 specifies the data length after compression of the pixel information included in the sub-block data (S53). Specifically, the specifying unit 151 specifies the data length after compression of the data length (predetermined data length) of the pixel information as the data length corresponding to the pixel value obtained by subtracting the minimum value from the maximum value. . For example, the specifying unit 151 associates the pixel value with the pixel value, and stores the smallest bit among the predetermined number of bits that is greater than the number of bits required when the pixel value is represented in binary. Specify the data length corresponding to the number. Here, the predetermined number of bits is 0 bit, 4 bits, 6 bits, 8 bits, 10 bits, or 12 bits.
 特定部151は、サブブロックデータのヘッダー部の30~32ビットに、圧縮後のデータ長を示すパターン情報を格納する。
 なお、特定部151は、画素情報のデータ長から最小値に対応するデータ長を減算した第1のデータ長を、圧縮後のデータ長として特定してもよい。
The identifying unit 151 stores pattern information indicating the data length after compression in 30 to 32 bits of the header portion of the sub-block data.
The specifying unit 151 may specify the first data length obtained by subtracting the data length corresponding to the minimum value from the data length of the pixel information as the compressed data length.
 続いて、サブブロックデータに含まれる有効ユニットデータの数を特定する(S54)。ここで、有効ユニットデータとは、サブブロックデータを構成するデータであり、後述の減算部152により最小値が減算された後の有効画素情報を含んでいる。なお、圧縮後のデータ長が8ビットの場合、又は圧縮済サブブロックデータに含まれる有効画素情報の数が32個以上の場合には、有効ユニットデータは作成されない。
 続いて、特定部151は、有効ユニットデータのそれぞれにおける有効画素情報の数を算出する(S55)。
Subsequently, the number of effective unit data included in the sub-block data is specified (S54). Here, effective unit data is data constituting sub-block data, and includes effective pixel information after a minimum value is subtracted by a subtracting unit 152 described later. When the data length after compression is 8 bits, or when the number of effective pixel information included in the compressed sub-block data is 32 or more, effective unit data is not created.
Subsequently, the specifying unit 151 calculates the number of effective pixel information in each effective unit data (S55).
 減算部152は、サブブロックデータに含まれる複数の画素情報に含まれている画素から、特定部151により特定された最小値を減算する(S56)。例えば、図7Bは、減算部152により、画素p1~p16の画素値から、最小値が減算された例を示す図である。 The subtracting unit 152 subtracts the minimum value specified by the specifying unit 151 from the pixels included in the plurality of pieces of pixel information included in the sub-block data (S56). For example, FIG. 7B is a diagram illustrating an example in which the minimum value is subtracted from the pixel values of the pixels p1 to p16 by the subtraction unit 152.
 作成部153は、圧縮済サブブロックデータ作成処理を実行し、圧縮済サブブロックデータを作成する(S57)。具体的には、作成部153は、圧縮済サブブロックデータ作成処理を実行することで、画素値が所定値以外の画素情報である有効画素情報の、減算部152により減算された後の画素値と、当該画素値の画素の位置を特定する情報とを関連付けた圧縮済画素情報と、最小値を示す情報とを含む圧縮済サブブロックデータを作成する。以下、減算された後の画素値の画素の位置を特定する情報をインデックス情報ともいう。 The creation unit 153 executes compressed sub-block data creation processing to create compressed sub-block data (S57). Specifically, the creation unit 153 performs the compressed sub-block data creation process, and thereby the pixel value after the pixel value is subtracted by the subtraction unit 152 from the effective pixel information that is pixel information other than the predetermined value. And compressed sub-block data including the compressed pixel information that associates the information specifying the pixel position of the pixel value with the information indicating the minimum value. Hereinafter, the information specifying the pixel position of the pixel value after the subtraction is also referred to as index information.
 ここで、作成部153は、画素情報のデータ長(所定のデータ長)を、特定部151により特定されたデータ長(圧縮後のデータ長)に変更して圧縮済サブブロックデータを作成する。なお、作成部153は、所定のデータ長から、特定部151により特定した最小値に対応するデータ長を減算してデータ長を変更して、圧縮済サブブロックデータを作成してもよい。 Here, the creation unit 153 changes the data length (predetermined data length) of the pixel information to the data length (data length after compression) specified by the specification unit 151, and creates compressed sub-block data. Note that the creation unit 153 may subtract the data length corresponding to the minimum value specified by the specification unit 151 from the predetermined data length to change the data length to create the compressed sub-block data.
 以下、圧縮済サブブロックデータ作成処理の詳細について図5を参照しながら説明する。
 まず、作成部153は、特定部151により特定された圧縮後のデータ長の値を判定し、分岐処理を行い(S571)、圧縮済サブブロックデータを作成する。
The details of the compressed sub-block data creation process will be described below with reference to FIG.
First, the creation unit 153 determines the value of the compressed data length specified by the specification unit 151, performs branch processing (S571), and creates compressed sub-block data.
 作成部153は、圧縮後のデータ長が0ビット又は4ビットである場合、処理パターン1の処理を行う(S572)。図8Aは、処理パターン1の処理によって作成された圧縮済サブブロックデータのボディ部を示す図である。作成部153は、有効画素情報の数が0~31の場合、32~191の場合、192~256の場合とで異なる処理を行い、圧縮済サブブロックデータのボディ部を作成する。 The creation unit 153 performs processing of the processing pattern 1 when the data length after compression is 0 bit or 4 bits (S572). FIG. 8A is a diagram illustrating a body portion of compressed sub-block data created by the processing pattern 1. The creation unit 153 performs a different process when the number of effective pixel information is 0 to 31, 32 to 191 and 192 to 256, and creates a body portion of compressed sub-block data.
 具体的には、作成部153は、有効画素情報の数が0~31の場合、有効ユニットデータを作成し、作成した有効ユニットデータを圧縮済サブブロックデータのボディ部に格納する。1つの有効ユニットデータは、4行4列の画素情報を含む。この有効ユニットデータのヘッダー部のデータ長は、8ビットである。作成部153は、有効ユニットデータのヘッダー部の1~4ビットに、サブブロックデータにおける当該有効ユニットデータの位置を特定する情報を格納するとともに、5~8ビットに有効画素情報の数を格納する。 Specifically, the creation unit 153 creates valid unit data when the number of valid pixel information is 0 to 31, and stores the created valid unit data in the body portion of the compressed sub-block data. One effective unit data includes pixel information of 4 rows and 4 columns. The data length of the header portion of the effective unit data is 8 bits. The creation unit 153 stores information specifying the position of the effective unit data in the sub-block data in 1 to 4 bits of the header unit of the effective unit data, and stores the number of effective pixel information in 5 to 8 bits. .
 作成部153は、この有効ユニットデータのボディ部に含まれる複数の有効画素情報の1~4ビットに、当該有効ユニットデータにおける当該画素情報の位置を示すアドレスを格納するとともに、5~8ビットに、減算部152により減算した後の画素値を格納する。ここで、無効画素情報、すなわち、減算部152によって減算された後の画素値が0の画素情報は、有効ユニットデータのボディ部に格納されない。 The creation unit 153 stores an address indicating the position of the pixel information in the effective unit data in 1 to 4 bits of the plurality of effective pixel information included in the body portion of the effective unit data, and stores the address in 5 to 8 bits. The pixel value after subtraction by the subtraction unit 152 is stored. Here, invalid pixel information, that is, pixel information with a pixel value of 0 after being subtracted by the subtraction unit 152 is not stored in the body portion of the effective unit data.
 例えば、図7Bに示す画素p1~p16は、順番に2行2列の画素情報を含む4つのユニットデータに格納されるものとする。ここで、第1のユニットデータのボディ部には、画素p1~p4を格納できるものの、画素p1~p4は有効画素情報ではないことから第1のユニットデータは有効ユニットデータとならず、圧縮済サブブロックデータには格納されない。同様に、第2のユニットデータのボディ部には、画素p5~p8を格納できるものの、画素p5及びp6は有効画素情報ではないことから、第2のユニットデータのボディ部には、画素p7及びp8の画素値及びインデックス情報が格納される。ユニットデータに含まれている画素情報の数が4である場合、インデックス情報は、例えば2ビットの情報である。 For example, it is assumed that the pixels p1 to p16 shown in FIG. 7B are stored in four unit data including pixel information of 2 rows and 2 columns in order. Here, although the pixels p1 to p4 can be stored in the body portion of the first unit data, since the pixels p1 to p4 are not effective pixel information, the first unit data is not effective unit data and is compressed. Not stored in sub-block data. Similarly, although the pixels p5 to p8 can be stored in the body portion of the second unit data, the pixels p5 and p6 are not effective pixel information. The pixel value of p8 and index information are stored. When the number of pieces of pixel information included in the unit data is 4, the index information is, for example, 2-bit information.
 作成部153は、有効画素情報の数が32~191の場合、マップデータと、減算部152によって最小値を減算した後の有効画素情報の画素値とを含む圧縮済サブブロックデータを作成する。すなわち、作成部153は、有効画素情報の数が所定範囲の場合に、マップデータと、減算部152によって最小値を減算した後の有効画素情報の画素値とを含む圧縮済サブブロックデータを作成する。 When the number of effective pixel information is 32 to 191, the creating unit 153 creates compressed sub-block data including map data and the pixel value of the effective pixel information after subtracting the minimum value by the subtracting unit 152. That is, the creation unit 153 creates compressed sub-block data including the map data and the pixel value of the valid pixel information after subtracting the minimum value by the subtraction unit 152 when the number of valid pixel information is within a predetermined range. To do.
 マップデータは、複数の画素情報のそれぞれが有効画素情報か否かを示す情報をサブブロックにおける当該複数の画素情報の並び順に格納するものであり、サブブロックデータに含まれる画素情報の数のビットより構成される。例えば、サブブロックデータが16×16の画素情報を含む場合、マップデータは、256ビットの2値情報である。マップデータの各ビットは、サブブロックデータのボディ部に含まれる画素情報の位置における画素値の状態を示している。マップデータにおいてビット値が0のビットは、無効画素情報を示し、ビット値が1のビットは、有効画素情報を示している。 The map data stores information indicating whether each of the plurality of pieces of pixel information is effective pixel information in the order of arrangement of the plurality of pieces of pixel information in the sub-block, and the number of pieces of pixel information included in the sub-block data. Consists of. For example, when the sub-block data includes 16 × 16 pixel information, the map data is 256-bit binary information. Each bit of the map data indicates the state of the pixel value at the position of the pixel information included in the body part of the sub-block data. In the map data, a bit whose bit value is 0 indicates invalid pixel information, and a bit whose bit value is 1 indicates valid pixel information.
 作成部153は、マップデータと、有効画素情報の画素値(4ビット)とを圧縮済サブブロックデータのボディ部に格納する。ここで、作成部153は、nが奇数の場合、圧縮済サブブロックデータのボディ部にダミーデータ(画素値が0の画素情報)を4ビット挿入する。
 作成部153は、有効画素情報の数が192~256の場合、全ての画素情報の画素値(4ビット)を画素情報の位置順に圧縮済サブブロックデータのボディ部に格納する。
The creation unit 153 stores the map data and the pixel value (4 bits) of the effective pixel information in the body portion of the compressed sub-block data. Here, when n is an odd number, the creation unit 153 inserts 4 bits of dummy data (pixel information with a pixel value of 0) into the body portion of the compressed sub-block data.
When the number of valid pixel information is 192 to 256, the creation unit 153 stores the pixel values (4 bits) of all the pixel information in the body portion of the compressed sub-block data in the order of the pixel information.
 図5に説明を戻す。作成部153は、圧縮後のデータ長が6ビットである場合、処理パターン2の処理を行う(S573)。図8Bは、処理パターン2の処理によって作成された圧縮済サブブロックデータのボディ部を示す図である。作成部153は、有効画素情報の数が0~31の場合、32~212の場合、213~256の場合とで異なる処理を行い、圧縮済サブブロックデータのボディ部を作成する。 Returning to FIG. If the data length after compression is 6 bits, the creation unit 153 performs processing pattern 2 (S573). FIG. 8B is a diagram illustrating a body portion of compressed sub-block data created by the processing pattern 2. The creation unit 153 performs different processing depending on the number of effective pixel information from 0 to 31, from 32 to 212, and from 213 to 256, and creates a body portion of compressed sub-block data.
 具体的には、作成部153は、有効画素情報の数が0~31の場合、有効ユニットデータを作成し、作成した有効ユニットデータを圧縮済サブブロックデータのボディ部に格納する。1つの有効ユニットデータは、2行2列の画素情報を含む。この有効ユニットデータのヘッダー部のデータ長は、8ビットである。作成部153は、この有効ユニットデータのヘッダー部の1~6ビットに、サブブロックデータにおける当該有効ユニットデータの位置を示すアドレスを格納するとともに、7~8ビットに有効画素情報の数を格納する。 Specifically, the creation unit 153 creates valid unit data when the number of valid pixel information is 0 to 31, and stores the created valid unit data in the body portion of the compressed sub-block data. One effective unit data includes pixel information of 2 rows and 2 columns. The data length of the header portion of the effective unit data is 8 bits. The creation unit 153 stores an address indicating the position of the effective unit data in the sub-block data in 1 to 6 bits of the header unit of the effective unit data, and stores the number of effective pixel information in 7 to 8 bits. .
 作成部153は、この有効ユニットデータのボディ部に含まれる複数の有効画素情報の1~2ビットに、当該有効ユニットデータにおける画素情報の位置を示すアドレスを格納するとともに、3~8ビットに、減算部152により減算した後の画素値を格納する。ここで、無効画素情報は、ボディ部に格納されない。 The creation unit 153 stores an address indicating the position of the pixel information in the effective unit data in 1 to 2 bits of the plurality of effective pixel information included in the body portion of the effective unit data, and in 3 to 8 bits. The pixel value after subtraction by the subtraction unit 152 is stored. Here, invalid pixel information is not stored in the body portion.
 作成部153は、有効画素情報の数が32~212の場合、上述と同様にマップデータを作成する。作成部153は、マップデータと、有効画素情報の画素値(6ビット)とを圧縮済サブブロックデータのボディ部に格納する。ここで、作成部153は、n×6+k=24となるように、ボディ部にダミーデータ(画素値が0の画素情報)をkビット挿入する。
 作成部153は、有効画素情報の数が213~256の場合、全ての画素情報の画素値(6ビット)を画素情報の位置順に圧縮済サブブロックデータのボディ部に格納する。
When the number of effective pixel information is 32 to 212, the creation unit 153 creates map data as described above. The creation unit 153 stores the map data and the pixel value (6 bits) of the effective pixel information in the body portion of the compressed sub-block data. Here, the creation unit 153 inserts k bits of dummy data (pixel information with a pixel value of 0) into the body portion so that n × 6 + k = 24.
When the number of valid pixel information is 213 to 256, the creation unit 153 stores the pixel values (6 bits) of all the pixel information in the body portion of the compressed sub-block data in the order of the pixel information.
 図5に説明を戻す。作成部153は、データ長が8ビットである場合、処理パターン3の処理を行う(S574)。図8Cは、処理パターン3の処理によって作成された圧縮済サブブロックデータのボディ部を示す図である。作成部153は、有効画素情報の数が0~31の場合、32~223の場合、224~256の場合とで異なる処理を行い、圧縮済サブブロックデータのボディ部を作成する。 Returning to FIG. When the data length is 8 bits, the creation unit 153 performs processing pattern 3 (S574). FIG. 8C is a diagram illustrating a body portion of the compressed sub-block data created by the processing pattern 3. The creation unit 153 performs a different process when the number of effective pixel information is 0 to 31, 32 to 223, and 224 to 256, and creates a body portion of compressed sub-block data.
 具体的には、作成部153は、有効画素情報の数が0~31の場合、圧縮済サブブロックデータのボディ部に有効画素の画素情報を格納する。作成部153は、このボディ部の1~8ビットに、当該サブブロックデータにおける画素情報の位置を示すアドレスを格納するとともに、9~16ビットに、減算部152により減算した後の有効画素情報の画素値を格納する。 Specifically, when the number of valid pixel information is 0 to 31, the creation unit 153 stores the pixel information of the valid pixels in the body portion of the compressed sub-block data. The creation unit 153 stores the address indicating the position of the pixel information in the sub-block data in 1 to 8 bits of the body portion, and stores the effective pixel information after subtraction by the subtraction unit 152 in 9 to 16 bits. Stores pixel values.
 作成部153は、有効画素情報の数が32~223の場合、上述と同様にマップデータを作成する。作成部153は、マップデータと、有効画素情報の画素値(8ビット)とを圧縮済サブブロックデータのボディ部に格納する。
 作成部153は、有効画素情報の数が224~256の場合、全ての画素情報の画素値(8ビット)を画素情報の位置順に圧縮済サブブロックデータのボディ部に格納する。
The creation unit 153 creates map data in the same manner as described above when the number of effective pixel information is 32 to 223. The creation unit 153 stores the map data and the pixel value (8 bits) of the effective pixel information in the body portion of the compressed sub-block data.
When the number of effective pixel information is 224 to 256, the creation unit 153 stores the pixel values (8 bits) of all the pixel information in the body portion of the compressed sub-block data in the order of the pixel information.
 図5に説明を戻す。作成部153は、データ長が10ビット又は12ビットである場合、処理パターン4の処理を行う(S575)。図8Dは、処理パターン4の処理によって作成された圧縮済サブブロックデータのボディ部を示す図である。作成部153は、有効画素情報の数が0~31の場合、32~234の場合、235~256の場合とで異なる処理を行い、圧縮済サブブロックデータのボディ部を作成する。 Returning to FIG. When the data length is 10 bits or 12 bits, the creation unit 153 performs processing of the processing pattern 4 (S575). FIG. 8D is a diagram illustrating a body portion of the compressed sub-block data created by the processing pattern 4. The creation unit 153 performs different processing depending on the number of valid pixel information from 0 to 31, from 32 to 234, and from 235 to 256, and creates a body portion of compressed sub-block data.
 具体的には、作成部153は、有効画素情報の数が0~31の場合、有効ユニットデータを作成し、作成した有効ユニットデータを圧縮済サブブロックデータのボディ部に格納する。1つの有効ユニットデータは、4行4列の画素情報を格納する。この有効ユニットデータのヘッダー部のデータ長は、8ビットである。作成部153は、この有効ユニットデータのヘッダー部の1~4ビットに、サブブロックデータにおける当該有効ユニットデータの位置を示すアドレスを格納するとともに、5~8ビットに有効画素情報の数を格納する。作成部153は、この有効ユニットデータのボディ部に含まれる複数の有効画素情報の1~4ビットに、当該有効ユニットデータにおける画素情報の位置を示すアドレスを格納するとともに、5~16ビットに、減算部152により減算した後の有効画素情報の画素値を格納する。 Specifically, the creation unit 153 creates valid unit data when the number of valid pixel information is 0 to 31, and stores the created valid unit data in the body portion of the compressed sub-block data. One effective unit data stores pixel information of 4 rows and 4 columns. The data length of the header portion of the effective unit data is 8 bits. The creation unit 153 stores an address indicating the position of the effective unit data in the sub-block data in 1 to 4 bits of the header unit of the effective unit data, and stores the number of effective pixel information in 5 to 8 bits. . The creation unit 153 stores an address indicating the position of the pixel information in the effective unit data in 1 to 4 bits of the plurality of effective pixel information included in the body portion of the effective unit data, and in 5 to 16 bits. The pixel value of the effective pixel information after subtraction by the subtraction unit 152 is stored.
 作成部153は、有効画素情報の数が32~234の場合、上述と同様にマップデータを作成する。作成部153は、マップデータと、有効画素情報の画素値(12ビット)とを圧縮済サブブロックデータのボディ部に格納する。ここで、作成部153は、nが奇数の場合、ボディ部にダミーデータ(画素値が0の画素情報)を12ビット挿入する。
 作成部153は、有効画素情報の数が235~256の場合、全ての画素情報の画素値(12ビット)を圧縮済サブブロックデータのボディ部に格納する。
The creation unit 153 creates map data in the same manner as described above when the number of effective pixel information is 32 to 234. The creation unit 153 stores the map data and the pixel value (12 bits) of the effective pixel information in the body portion of the compressed sub-block data. Here, when n is an odd number, the creation unit 153 inserts 12 bits of dummy data (pixel information with a pixel value of 0) into the body portion.
When the number of effective pixel information is 235 to 256, the creation unit 153 stores the pixel values (12 bits) of all the pixel information in the body portion of the compressed sub-block data.
 続いて、画像解凍装置2の詳細について説明する。
 図9は、本実施形態に係る画像解凍装置2の機能構成を示すブロック図である。
 画像解凍装置2は、図9に示すように、表示部21と、入力部22と、記憶部23と、制御部24と、複数の解凍部25と、を備える。
Next, details of the image decompression device 2 will be described.
FIG. 9 is a block diagram showing a functional configuration of the image decompression apparatus 2 according to the present embodiment.
As shown in FIG. 9, the image decompression device 2 includes a display unit 21, an input unit 22, a storage unit 23, a control unit 24, and a plurality of decompression units 25.
 表示部21は、例えば、液晶ディスプレイ装置や有機ELディスプレイ等により構成される。表示部21は、制御部24の制御に応じて、例えば解凍処理の操作画面等を表示する。
 入力部22は、例えば、キーボードやマウス等によって構成される。入力部22は、画像解凍装置2のユーザから操作入力を受け付ける。
The display unit 21 is configured by, for example, a liquid crystal display device or an organic EL display. The display unit 21 displays, for example, an operation screen for decompression processing in accordance with the control of the control unit 24.
The input unit 22 is configured by, for example, a keyboard and a mouse. The input unit 22 receives an operation input from the user of the image decompression device 2.
 記憶部23は、例えば、ROM、RAM、ハードディスク、及び画像解凍装置2に接続された外部記憶装置等により構成される。ここで、外部記憶装置は、画像解凍装置2に直接接続されていてもよいし、通信ネットワークを介して通信可能に接続されていてもよい。記憶部23は、画像データが圧縮された圧縮済画像データを記憶してもよい。また、記憶部23は、コンピュータを後述の画像データ取得部241、分割部242、結合部243、サイズ調整部244、出力部245、解凍部25として機能させるための画像解凍プログラムを記憶する。 The storage unit 23 includes, for example, a ROM, a RAM, a hard disk, and an external storage device connected to the image decompression device 2. Here, the external storage device may be directly connected to the image decompression device 2 or may be connected to be communicable via a communication network. The storage unit 23 may store compressed image data obtained by compressing image data. Further, the storage unit 23 stores an image decompression program for causing the computer to function as an image data acquisition unit 241, a division unit 242, a combination unit 243, a size adjustment unit 244, an output unit 245, and a decompression unit 25, which will be described later.
 制御部24は、例えば、CPUにより構成される。制御部24は、記憶部23に記憶されている、画像解凍装置2を機能させるための各種プログラムを実行することにより、画像解凍装置2に係る機能を統括的に制御する。制御部24は、画像データ取得部241と、分割部242と、結合部243と、サイズ調整部244と、出力部245とを備える。
 以下、各機能について、フローチャートを適宜参照しながら説明を進める。図10は、本実施形態に係る画像解凍装置2の画像解凍処理の流れを示すフローチャートである。
The control unit 24 is configured by a CPU, for example. The control unit 24 comprehensively controls functions related to the image decompression device 2 by executing various programs stored in the storage unit 23 for causing the image decompression device 2 to function. The control unit 24 includes an image data acquisition unit 241, a dividing unit 242, a combining unit 243, a size adjusting unit 244, and an output unit 245.
Hereinafter, description of each function will be made with reference to flowcharts as appropriate. FIG. 10 is a flowchart showing a flow of image decompression processing of the image decompression apparatus 2 according to the present embodiment.
 画像データ取得部241は、画像データを圧縮した圧縮済画像データを取得する(S11)。具体的には、画像データ取得部241は、画像解凍装置2に通信ネットワークを介して接続されている画像圧縮装置1等の外部装置から圧縮済画像データを受信することにより、圧縮済画像データを取得する。なお、画像データ取得部241は、画像圧縮装置1から圧縮済画像データを受信して記憶部23に記憶しておき、入力部22が圧縮済画像データの取得操作を受け付けたことに応じて、記憶部23に記憶されている圧縮済画像データを取得してもよい。 The image data acquisition unit 241 acquires compressed image data obtained by compressing the image data (S11). Specifically, the image data acquisition unit 241 receives the compressed image data from an external device such as the image compression device 1 connected to the image decompression device 2 via a communication network, thereby obtaining the compressed image data. get. The image data acquisition unit 241 receives the compressed image data from the image compression apparatus 1 and stores the compressed image data in the storage unit 23. In response to the input unit 22 receiving an operation for acquiring compressed image data, The compressed image data stored in the storage unit 23 may be acquired.
 分割部242は、画像データ取得部241が取得した圧縮済画像データを複数の圧縮済ブロックデータに分割する。そして、分割部242は、圧縮済画像データをさらに分割して、圧縮済画像データの一部分である圧縮済ブロックデータを構成する複数の圧縮済サブブロックデータを取得する(S12)。分割部242は、取得した複数の圧縮済サブブロックデータを複数の解凍部25に入力する。 The dividing unit 242 divides the compressed image data acquired by the image data acquiring unit 241 into a plurality of compressed block data. Then, the dividing unit 242 further divides the compressed image data to obtain a plurality of compressed sub-block data constituting the compressed block data that is a part of the compressed image data (S12). The dividing unit 242 inputs the acquired plurality of compressed sub-block data to the plurality of decompressing units 25.
 複数の解凍部25は、例えば、GPUにより構成される。複数の解凍部25は、解凍処理を実行することにより、圧縮済サブブロックデータを解凍して画像データの一部分であるブロックデータを構成する、画像データにおける画素の画素値を示す画素情報を複数含むサブブロックデータを復元する(S13)。また、複数の解凍部25は、制御部24から入力された複数の圧縮済サブブロックデータを並列して解凍する。解凍部25の処理については後述する。 The plurality of decompression units 25 are configured by a GPU, for example. The plurality of decompression units 25 include a plurality of pieces of pixel information indicating pixel values of pixels in the image data, which decompress the compressed sub-block data to form block data that is a part of the image data by executing decompression processing. The sub-block data is restored (S13). The plurality of decompressing units 25 decompress the plurality of compressed sub-block data input from the control unit 24 in parallel. The processing of the decompression unit 25 will be described later.
 結合部243は、解凍部25により復元されたサブブロックデータを複数結合して画像データを復元する(S14)。具体的には、結合部243は、圧縮済サブブロックデータのヘッダー部に格納されているサブブロックデータのアドレスに基づいて、復元された複数のサブブロックデータを結合し、ブロックデータを復元する。そして、結合部243は、圧縮済ブロックデータのヘッダー部に格納されているブロックデータのアドレスに基づいて、復元された複数のブロックデータを結合して画像データを復元する。 The combination unit 243 combines a plurality of sub-block data restored by the decompression unit 25 to restore the image data (S14). Specifically, the combining unit 243 combines the plurality of restored sub-block data based on the address of the sub-block data stored in the header part of the compressed sub-block data, and restores the block data. Then, based on the block data address stored in the header portion of the compressed block data, the combining unit 243 combines the plurality of restored block data to restore the image data.
 サイズ調整部244は、復元された画像データのサイズを調整する(S15)。具体的には、サイズ調整部244は、圧縮済画像データのヘッダー部に格納されている画像データのサイズ調整前の列方向の画素数width、行方向の画素数heightに基づいて復元された画像データのサイズを調整する。
 出力部245は、サイズ調整部244がサイズ調整した後の画像データを出力する。出力部245は、例えば表示部21に画像データを表示させる。
The size adjustment unit 244 adjusts the size of the restored image data (S15). Specifically, the size adjustment unit 244 restores an image restored based on the number of pixels in the column direction width and the number of pixels in the row direction before the size adjustment of the image data stored in the header portion of the compressed image data. Adjust the size of the data.
The output unit 245 outputs the image data after the size adjustment unit 244 has adjusted the size. The output unit 245 displays image data on the display unit 21, for example.
 続いて、解凍部25の処理の詳細について説明を行う。複数の解凍部25のそれぞれは、最小値取得部251と、画素復元部252と、画素値復元部253とを備える。図11は、本実施形態に係る解凍部25による解凍処理のフローチャートである。以下、図11を参照しながら、画像圧縮装置1において圧縮された圧縮済サブブロックデータを解凍する場合の解凍部25の処理について説明する。 Subsequently, details of the processing of the decompression unit 25 will be described. Each of the plurality of decompression units 25 includes a minimum value acquisition unit 251, a pixel restoration unit 252, and a pixel value restoration unit 253. FIG. 11 is a flowchart of the decompression process by the decompression unit 25 according to the present embodiment. Hereinafter, the processing of the decompression unit 25 when decompressing the compressed sub-block data compressed in the image compression apparatus 1 will be described with reference to FIG.
 まず、最小値取得部251は、圧縮済サブブロックデータのヘッダー部に格納されている最小値を示す情報を取得する(S131)。
 画素復元部252は、圧縮済サブブロックデータに含まれている圧縮済画素情報に基づいて、サブブロックデータに含まれる画素情報を復元する。続いて、画素復元部252は、画素情報のデータ長を所定のデータ長に変更する(S132)。圧縮済画素情報の格納形式は圧縮後のデータ長及び有効画素情報の数によって異なるため、画素復元部252は、圧縮後のデータ長及び有効画素情報の数に基づいて異なる処理を行いサブブロックデータに含まれる画素情報を復元する。
First, the minimum value acquisition unit 251 acquires information indicating the minimum value stored in the header portion of the compressed sub-block data (S131).
The pixel restoration unit 252 restores pixel information included in the sub-block data based on the compressed pixel information included in the compressed sub-block data. Subsequently, the pixel restoration unit 252 changes the data length of the pixel information to a predetermined data length (S132). Since the storage format of the compressed pixel information differs depending on the data length after compression and the number of effective pixel information, the pixel restoration unit 252 performs different processing based on the data length after compression and the number of effective pixel information, and performs sub-block data The pixel information included in is restored.
 具体的には、画素復元部252は、圧縮後のデータ長が、0ビット又は4ビット、かつ、有効画素情報の数が0~31の場合、圧縮済サブブロックデータに格納されているユニットデータのボディ部に基づいてユニットデータに含まれている有効画素情報の画素の位置を特定する。画素復元部252は、画素の位置を特定できていない画素情報の画素値が0であると特定する。 Specifically, when the data length after compression is 0 or 4 bits and the number of effective pixel information is 0 to 31, the pixel restoration unit 252 stores the unit data stored in the compressed sub-block data. The position of the pixel of the effective pixel information included in the unit data is specified based on the body part. The pixel restoration unit 252 specifies that the pixel value of the pixel information whose pixel position cannot be specified is 0.
 また、画素復元部252は、圧縮後のデータ長が0ビット又は4ビット、かつ、有効画素情報の数が32~191の場合、マップデータに基づいて画素情報の復元を行う。マップデータにおいてビット値が0の場合、当該ビット値に対応する位置の画素情報を圧縮済サブブロックデータのヘッダー部に含まれている無効画素情報の画素値に基づいて、当該ビット値に対応する位置の画素情報の復元を行う。また、マップデータにおいてビット値が1の場合、圧縮済サブブロックデータのボディ部に含まれている有効画素情報の画素値に基づいて、当該ビット値に対応する位置の画素情報の復元を行う。 Also, the pixel restoration unit 252 restores the pixel information based on the map data when the data length after compression is 0 bit or 4 bits and the number of effective pixel information is 32 to 191. When the bit value is 0 in the map data, the pixel information at the position corresponding to the bit value corresponds to the bit value based on the pixel value of the invalid pixel information included in the header portion of the compressed sub-block data. The pixel information of the position is restored. When the bit value is 1 in the map data, the pixel information at the position corresponding to the bit value is restored based on the pixel value of the effective pixel information included in the body portion of the compressed sub-block data.
 また、画素復元部252は、圧縮後のデータ長が0ビット又は4ビット、かつ、有効画素情報の数が192~256の場合、圧縮済サブブロックデータのボディ部に含まれている画素情報の画素値に基づいてサブブロックデータの画素情報の復元を行う。 In addition, when the compressed data length is 0 bit or 4 bits and the number of effective pixel information is 192 to 256, the pixel restoration unit 252 stores the pixel information included in the body portion of the compressed sub-block data. The pixel information of the sub-block data is restored based on the pixel value.
 また、画素復元部252は、圧縮後のデータ長が6ビット、かつ、有効画素情報の数が0~31の場合、圧縮済サブブロックデータに格納されているユニットデータのボディ部に基づいてユニットデータに含まれている有効画素情報の画素の位置を特定する。また、画素復元部252は、画素の位置を特定できていない画素情報の画素値が0であると特定する。 In addition, when the data length after compression is 6 bits and the number of effective pixel information is 0 to 31, the pixel restoration unit 252 performs unit unit based on the body part of the unit data stored in the compressed sub-block data. The pixel position of the effective pixel information included in the data is specified. In addition, the pixel restoration unit 252 specifies that the pixel value of the pixel information in which the position of the pixel cannot be specified is 0.
 また、画素復元部252は、圧縮後のデータ長が6ビット、かつ、有効画素情報の数が32~212の場合、マップデータに基づいて画素情報の復元を行う。また、画素復元部252は、圧縮後のデータ長が6ビット、かつ、有効画素情報の数が213~256の場合、圧縮済サブブロックデータのボディ部に含まれている画素情報の画素値に基づいてサブブロックデータの画素情報の復元を行う。 Also, the pixel restoration unit 252 restores the pixel information based on the map data when the compressed data length is 6 bits and the number of effective pixel information is 32 to 212. Further, when the compressed data length is 6 bits and the number of effective pixel information is 213 to 256, the pixel restoration unit 252 calculates the pixel value of the pixel information included in the body portion of the compressed sub-block data. Based on this, the pixel information of the sub-block data is restored.
 また、画素復元部252は、圧縮後のデータ長が8ビット、かつ、有効画素情報の数が0~31の場合、圧縮済サブブロックデータのボディ部に格納されている有効画素情報に基づいて復元を行う。また、画素復元部252は、画素の位置を特定できていない画素情報の画素値が0であると特定する。また、画素復元部252は、圧縮後のデータ長が8ビット、かつ、有効画素情報の数が32~223の場合、マップデータに基づいて画素情報の復元を行う。また、画素復元部252は、圧縮後のデータ長が8ビット、かつ、有効画素情報の数が224~256の場合、圧縮済サブブロックデータのボディ部に含まれている画素情報の画素値に基づいてサブブロックデータの画素情報の復元を行う。 Further, when the compressed data length is 8 bits and the number of effective pixel information is 0 to 31, the pixel restoration unit 252 is based on the effective pixel information stored in the body portion of the compressed sub-block data. Perform restoration. In addition, the pixel restoration unit 252 specifies that the pixel value of the pixel information in which the position of the pixel cannot be specified is 0. Also, the pixel restoration unit 252 restores pixel information based on the map data when the compressed data length is 8 bits and the number of valid pixel information is 32 to 223. In addition, when the data length after compression is 8 bits and the number of effective pixel information is 224 to 256, the pixel restoration unit 252 calculates the pixel value of the pixel information included in the body portion of the compressed sub-block data. Based on this, the pixel information of the sub-block data is restored.
 また、画素復元部252は、圧縮後のデータ長が、10ビット又は12ビット、かつ、有効画素情報の数が0~31の場合、圧縮済サブブロックデータに格納されているユニットデータのボディ部に基づいてユニットデータに含まれている有効画素情報の画素の位置を特定する。また、画素復元部252は、画素の位置を特定できていない画素情報の画素値が0であると特定する。また、画素復元部252は、圧縮後のデータ長が10ビット又は12ビット、かつ、有効画素情報の数が32~234の場合、マップデータに基づいて画素情報の復元を行う。また、画素復元部252は、圧縮後のデータ長が10ビット又は12ビット、かつ、有効画素情報の数が235~256の場合、圧縮済サブブロックデータのボディ部に含まれている画素情報の画素値に基づいてサブブロックデータの画素情報の復元を行う。 In addition, the pixel restoration unit 252 has a body portion of unit data stored in the compressed sub-block data when the data length after compression is 10 bits or 12 bits and the number of effective pixel information is 0 to 31. The position of the pixel of the effective pixel information included in the unit data is specified based on the above. In addition, the pixel restoration unit 252 specifies that the pixel value of the pixel information in which the position of the pixel cannot be specified is 0. Also, the pixel restoration unit 252 restores pixel information based on the map data when the data length after compression is 10 bits or 12 bits and the number of effective pixel information is 32 to 234. In addition, when the compressed data length is 10 bits or 12 bits and the number of valid pixel information is 235 to 256, the pixel restoration unit 252 stores the pixel information included in the body portion of the compressed sub-block data. The pixel information of the sub-block data is restored based on the pixel value.
 画素値復元部253は、画素復元部252により復元された画素情報の画素値のそれぞれに、最小値取得部251により取得された最小値を示す情報に基づいて最小値を加算して圧縮前の画素値を復元する(S133)。 The pixel value restoration unit 253 adds the minimum value to each of the pixel values of the pixel information restored by the pixel restoration unit 252 based on the information indicating the minimum value acquired by the minimum value acquisition unit 251, and before compression. The pixel value is restored (S133).
 以上、本実施形態によれば、画像圧縮装置1の圧縮部15は、複数の画素情報から、最小値を特定する特定部151と、当該複数の画素情報の画素値から、最小値を減算する減算部152と、画素値が所定値以外の画素情報である有効画素情報の、減算部152により最小値が減算された後の画素値と、当該画素値の画素の位置を特定する情報とを関連付けた圧縮済画素情報と、最小値を示す情報とを含む圧縮済サブブロックデータを作成する作成部153とを備える。 As described above, according to the present embodiment, the compression unit 15 of the image compression device 1 subtracts the minimum value from the pixel value of the plurality of pixel information and the specifying unit 151 that specifies the minimum value from the plurality of pixel information. The subtracting unit 152, the effective pixel information whose pixel value is pixel information other than the predetermined value, the pixel value after the minimum value is subtracted by the subtracting unit 152, and the information specifying the pixel position of the pixel value A creation unit 153 that creates compressed sub-block data including the associated compressed pixel information and information indicating the minimum value.
 このようにすることで、画像圧縮装置1は、処理中における条件分岐処理を減らし、画像圧縮処理における処理量をハフマン符号化等の他の圧縮方式に対して減らすことができる。よって、画像圧縮装置1は、医療用の画像を高速に圧縮することができる。また、医療用の画像データのブロックデータは階調が少なく、サブブロックデータに含まれる画素情報の画素値の最小値と最大値とが近い傾向にある。このため、画像圧縮装置1は、医療用の画像データを効率的に圧縮することができる。 By doing in this way, the image compression apparatus 1 can reduce conditional branch processing during processing, and can reduce the amount of processing in the image compression processing relative to other compression methods such as Huffman coding. Therefore, the image compression apparatus 1 can compress medical images at high speed. Further, the block data of medical image data has few gradations, and the minimum value and the maximum value of the pixel values of the pixel information included in the sub-block data tend to be close. For this reason, the image compression apparatus 1 can efficiently compress medical image data.
 また、画像圧縮装置1の圧縮部15は、作成部153により、複数の画素情報のデータ長である所定のデータ長を、最大値から最小値を減算して得られる画素値に対応するデータ長に変更して圧縮済サブブロックデータを作成する。このようにすることで、画像圧縮装置1は、不要なデータ長を削除して効率的に圧縮することができる。また、画像圧縮装置1の圧縮部15は、複数設けられており、複数のサブブロックデータを並列して圧縮するので、高速に圧縮することができる。 Further, the compression unit 15 of the image compression apparatus 1 causes the creation unit 153 to use a data length corresponding to a pixel value obtained by subtracting a predetermined data length, which is a data length of a plurality of pieces of pixel information, from a maximum value. To create compressed sub-block data. By doing in this way, the image compression apparatus 1 can delete unnecessary data length and can compress efficiently. In addition, a plurality of compression units 15 of the image compression apparatus 1 are provided, and a plurality of sub-block data are compressed in parallel, so that the compression can be performed at high speed.
 また、画像圧縮装置1の圧縮部15は、作成部153により、有効画素情報の数が所定範囲の場合に、複数の画素情報のそれぞれが有効画素情報か否かを示す情報をサブブロックにおける当該複数の画素情報の並び順に格納するマップデータと、減算部152によって最小値を減算した後の有効画素情報の画素値と、を含む圧縮済サブブロックデータを作成する。このようにすることで、画像圧縮装置1は、マップデータにおいて有効画素情報か否かを最小データ数で表現して、サブブロックデータに含まれる画素情報を効率的に圧縮することができる。 Further, the compression unit 15 of the image compression apparatus 1 causes the creation unit 153 to obtain information indicating whether each of the plurality of pieces of pixel information is effective pixel information when the number of effective pixel information is within a predetermined range. Compressed sub-block data including map data stored in the arrangement order of a plurality of pieces of pixel information and pixel values of effective pixel information after subtracting the minimum value by the subtraction unit 152 is created. By doing in this way, the image compression apparatus 1 can express efficiently whether the pixel information contained in subblock data is expressed by the minimum data number, whether it is effective pixel information in map data.
 また、画像解凍装置2の解凍部25は、最小値取得部251により、圧縮済画像データから最小値を取得し、画素復元部252により、圧縮済サブブロックデータに含まれている圧縮済画素情報に基づいて、サブブロックデータに含まれる前記画素情報を復元し、画素値復元部253により、復元された画素情報のそれぞれに、最小値を加算して圧縮前の画素値を復元する。そして、結合部243により、復元されたサブブロックデータを複数結合して画像データを復元する。このようにすることで、画像解凍装置2は、画像圧縮装置1により圧縮された圧縮済画像データを画像データに高速に復元することができる。 Further, the decompression unit 25 of the image decompression apparatus 2 obtains the minimum value from the compressed image data by the minimum value acquisition unit 251, and the compressed pixel information included in the compressed sub-block data by the pixel restoration unit 252 Based on the above, the pixel information included in the sub-block data is restored, and the pixel value restoration unit 253 restores the pixel value before compression by adding the minimum value to each of the restored pixel information. Then, the combining unit 243 combines a plurality of restored sub-block data to restore the image data. By doing so, the image decompression device 2 can restore the compressed image data compressed by the image compression device 1 to image data at high speed.
 以上、本発明を実施の形態を用いて説明したが、本発明の技術的範囲は上記実施の形態に記載の範囲には限定されない。また、上記実施の形態に、多様な変更又は改良を加えることが可能であることが当業者に明らかである。そのような変更又は改良を加えた形態も本発明の技術的範囲に含まれ得ることが、特許請求の範囲の記載から明らかである。例えば、本実施形態では医療用の画像データと異なる他の種類の画像データにも適用することができる。 As mentioned above, although this invention was demonstrated using embodiment, the technical scope of this invention is not limited to the range as described in the said embodiment. In addition, it will be apparent to those skilled in the art that various modifications or improvements can be added to the above embodiment. It is apparent from the scope of the claims that the embodiments added with such changes or improvements can be included in the technical scope of the present invention. For example, the present embodiment can be applied to other types of image data different from medical image data.
1・・・画像圧縮装置、2・・・画像解凍装置、11、21・・・表示部、12、22・・・入力部、13、23・・・記憶部、14、24・・・制御部、15・・・圧縮部、25・・・解凍部、141、241・・・画像データ取得部、142、244・・・サイズ調整部、143、242・・・分割部、144、243・・・結合部、145、245・・・出力部、151・・・特定部、152・・・減算部、153・・・作成部、251・・・最小値取得部、252・・・画素復元部、253・・・画素値復元部、S・・・画像処理システム
 
DESCRIPTION OF SYMBOLS 1 ... Image compression apparatus, 2 ... Image decompression | decompression apparatus, 11, 21 ... Display part, 12, 22 ... Input part, 13, 23 ... Memory | storage part, 14, 24 ... Control 15, compression unit 25, decompression unit 141, 241 image data acquisition unit 142 244 size adjustment unit 143 242 division unit 144 243 ..Combining unit, 145, 245 ... Output unit, 151 ... Specifying unit, 152 ... Subtracting unit, 153 ... Creating unit, 251 ... Minimum value obtaining unit, 252 ... Pixel restoration , 253... Pixel value restoration unit, S... Image processing system

Claims (8)

  1.  画像データを取得する画像データ取得部と、
     前記画像データの一部分であるブロックデータを、前記画像データにおける画素の画素値を示す画素情報を複数含む複数のサブブロックデータに分割する分割部と、
     前記サブブロックデータを圧縮して、圧縮済サブブロックデータを作成する圧縮部と、
     前記圧縮済サブブロックデータを結合して圧縮済画像データを作成する結合部とを備え、
     前記圧縮部は、
     前記複数の画素情報の画素値から、最小値を特定する特定部と、
     前記複数の画素情報の画素値から、前記最小値を減算する減算部と、
     前記画素値が所定値以外の画素情報である有効画素情報の、前記減算部により前記最小値が減算された後の画素値と、当該画素値の画素の位置を特定する情報とを関連付けた圧縮済画素情報と、前記最小値を示す情報とを含む前記圧縮済サブブロックデータを作成する作成部と、
     を備える画像圧縮装置。
    An image data acquisition unit for acquiring image data;
    A division unit that divides block data that is a part of the image data into a plurality of sub-block data including a plurality of pieces of pixel information indicating pixel values of pixels in the image data;
    A compression unit that compresses the sub-block data and creates compressed sub-block data;
    A combining unit that combines the compressed sub-block data to create compressed image data;
    The compression unit is
    A specifying unit for specifying a minimum value from pixel values of the plurality of pieces of pixel information;
    A subtraction unit that subtracts the minimum value from pixel values of the plurality of pixel information;
    Compression that associates the pixel value after the minimum value is subtracted by the subtracting unit with the information specifying the pixel position of the pixel value of the effective pixel information whose pixel value is pixel information other than the predetermined value. A creation unit for creating the compressed sub-block data including finished pixel information and information indicating the minimum value;
    An image compression apparatus comprising:
  2.  前記複数の画素情報のそれぞれは所定のデータ長を有し、
     前記特定部は、前記複数の画素情報の画素値から、最大値を特定し、
     前記作成部は、前記所定のデータ長を、前記最大値から前記最小値を減算して得られる画素値に対応するデータ長に変更して前記圧縮済サブブロックデータを作成する、
     請求項1に記載の画像圧縮装置。
    Each of the plurality of pixel information has a predetermined data length,
    The specifying unit specifies a maximum value from pixel values of the plurality of pixel information,
    The creation unit creates the compressed sub-block data by changing the predetermined data length to a data length corresponding to a pixel value obtained by subtracting the minimum value from the maximum value.
    The image compression apparatus according to claim 1.
  3.  前記特定部は、前記複数の画素情報の画素値に基づいて、前記有効画素情報の数を特定し、
     前記作成部は、前記有効画素情報の数が所定範囲の場合に、前記複数の画素情報のそれぞれが前記有効画素情報か否かを示す情報を、前記サブブロックデータにおける当該複数の画素情報の並び順に格納するマップデータと、前記減算部によって前記最小値を減算した後の前記有効画素情報の画素値と、を含む圧縮済サブブロックデータを作成する、
     請求項1又は2に記載の画像圧縮装置。
    The specifying unit specifies the number of effective pixel information based on pixel values of the plurality of pixel information,
    When the number of pieces of effective pixel information is within a predetermined range, the creating unit displays information indicating whether each of the plurality of pieces of pixel information is the piece of effective pixel information. Creating compressed sub-block data including map data to be stored in order and a pixel value of the effective pixel information after the minimum value is subtracted by the subtraction unit;
    The image compression apparatus according to claim 1 or 2.
  4.  前記圧縮部は複数設けられており、前記複数のサブブロックデータを並列して圧縮する、
     請求項1から3のいずれか1項に記載の画像圧縮装置。
    A plurality of the compression units are provided, and compress the plurality of sub-block data in parallel.
    The image compression apparatus according to claim 1.
  5.  コンピュータを、
     画像データを取得する画像データ取得部と、
     前記画像データの一部分であるブロックデータを、前記画像データにおける画素の画素値を示す画素情報を複数含む複数のサブブロックデータに分割する分割部と、
     前記サブブロックデータを圧縮して、圧縮済サブブロックデータを作成する圧縮部と、
     前記圧縮済サブブロックデータを結合して圧縮済画像データを作成する結合部として機能させ、
     前記圧縮部は、
     前記複数の画素情報の画素値から、最小値を特定する特定部と、
     前記複数の画素情報の画素値から、前記最小値を減算する減算部と、
     前記画素値が所定値以外の画素情報である有効画素情報の、前記減算部により前記最小値が減算された後の画素値と、当該画素値の画素の位置を特定する情報とを関連付けた圧縮済画素情報と、前記最小値を示す情報とを含む前記圧縮済サブブロックデータを作成する作成部と、を含む画像圧縮プログラム。
    Computer
    An image data acquisition unit for acquiring image data;
    A division unit that divides block data that is a part of the image data into a plurality of sub-block data including a plurality of pieces of pixel information indicating pixel values of pixels in the image data;
    A compression unit that compresses the sub-block data and creates compressed sub-block data;
    Function as a combining unit that combines the compressed sub-block data to create compressed image data;
    The compression unit is
    A specifying unit for specifying a minimum value from pixel values of the plurality of pieces of pixel information;
    A subtraction unit that subtracts the minimum value from pixel values of the plurality of pixel information;
    Compression that associates the pixel value after the minimum value is subtracted by the subtracting unit with the information specifying the pixel position of the pixel value of the effective pixel information whose pixel value is pixel information other than the predetermined value. An image compression program including: a creation unit that creates the compressed sub-block data including completed pixel information and information indicating the minimum value.
  6.  画像データを圧縮した圧縮済画像データを取得する画像データ取得部と、
     前記圧縮済画像データを分割して、前記圧縮済画像データの一部分である圧縮済ブロックデータを構成する圧縮済サブブロックデータを取得する分割部と、
     前記圧縮済サブブロックデータを解凍して前記画像データの一部分であるブロックデータを構成する、前記画像データにおける画素の画素値を示す画素情報を複数含むサブブロックデータを復元する解凍部と、
     前記解凍部により復元されたサブブロックデータを複数結合して前記画像データを復元する結合部とを備え、
     前記圧縮済サブブロックデータは、前記サブブロックデータに含まれる複数の画素値の最小値と、前記画像データにおける画素値が所定値以外の画素値の有効画素情報の、前記最小値が減算された後の画素値、及び当該画素値の画素の位置を特定する情報とを関連付けた圧縮済画素情報と、を含み、
     前記解凍部は、
     前記圧縮済画像データから最小値を取得する最小値取得部と、
     前記圧縮済サブブロックデータに含まれている前記圧縮済画素情報に基づいて、サブブロックデータに含まれる前記画素情報を復元する画素復元部と、
     前記画素復元部により復元された前記画素情報の画素値のそれぞれに、前記最小値を加算して圧縮前の画素値を復元する画素値復元部と、
     を備える画像解凍装置。
    An image data acquisition unit for acquiring compressed image data obtained by compressing image data;
    A dividing unit that divides the compressed image data and obtains compressed sub-block data constituting compressed block data that is a part of the compressed image data;
    Decompressing the compressed sub-block data to form block data which is a part of the image data, decompressing unit for restoring sub-block data including a plurality of pixel information indicating pixel values of pixels in the image data;
    A combining unit that combines a plurality of sub-block data restored by the decompression unit to restore the image data;
    The compressed sub-block data is obtained by subtracting the minimum value of a plurality of pixel values included in the sub-block data and the effective pixel information of pixel values other than a predetermined value in the image data. A compressed pixel information that associates a subsequent pixel value and information that specifies the position of the pixel of the pixel value, and
    The decompression unit
    A minimum value acquisition unit for acquiring a minimum value from the compressed image data;
    A pixel restoration unit for restoring the pixel information included in the sub-block data based on the compressed pixel information included in the compressed sub-block data;
    A pixel value restoring unit that restores a pixel value before compression by adding the minimum value to each of the pixel values of the pixel information restored by the pixel restoring unit;
    An image decompression apparatus comprising:
  7.  コンピュータを、
     画像データを圧縮した圧縮済画像データを取得する画像データ取得部と、
     前記圧縮済画像データを分割して、前記圧縮済画像データの一部分である圧縮済ブロックデータを構成する圧縮済サブブロックデータを取得する分割部と、
     前記圧縮済サブブロックデータを解凍して前記画像データの一部分であるブロックデータを構成する、前記画像データにおける画素の画素値を示す画素情報を複数含むサブブロックデータを復元する解凍部と、
     前記解凍部により復元されたサブブロックデータを複数結合して前記画像データを復元する結合部として機能させ、
     前記圧縮済サブブロックデータは、前記サブブロックデータに含まれる複数の画素値の最小値と、前記画像データにおける画素値が所定値以外の画素値の有効画素情報の、前記最小値が減算された後の画素値、及び当該画素値の画素の位置を特定する情報とを関連付けた圧縮済画素情報と、を含み、
     前記解凍部は、
     前記圧縮済画像データから最小値を取得する最小値取得部と、
     前記圧縮済サブブロックデータに含まれている前記圧縮済画素情報に基づいて、サブブロックデータに含まれる前記画素情報を復元する画素復元部と、
     前記画素復元部により復元された前記画素情報の画素値のそれぞれに、前記最小値を加算して圧縮前の画素値を復元する画素値復元部を含む画像解凍プログラム。
    Computer
    An image data acquisition unit for acquiring compressed image data obtained by compressing image data;
    A dividing unit that divides the compressed image data and obtains compressed sub-block data constituting compressed block data that is a part of the compressed image data;
    Decompressing the compressed sub-block data to form block data which is a part of the image data, decompressing unit for restoring sub-block data including a plurality of pixel information indicating pixel values of pixels in the image data;
    A plurality of sub-block data restored by the decompression unit are combined to function as a combining unit that restores the image data,
    The compressed sub-block data is obtained by subtracting the minimum value of a plurality of pixel values included in the sub-block data and the effective pixel information of pixel values other than a predetermined value in the image data. A compressed pixel information that associates a subsequent pixel value and information that specifies the position of the pixel of the pixel value, and
    The decompression unit
    A minimum value acquisition unit for acquiring a minimum value from the compressed image data;
    A pixel restoration unit for restoring the pixel information included in the sub-block data based on the compressed pixel information included in the compressed sub-block data;
    An image decompression program including a pixel value restoration unit that restores a pixel value before compression by adding the minimum value to each pixel value of the pixel information restored by the pixel restoration unit.
  8.  画像データを圧縮した圧縮画像データを構成する圧縮済サブブロックデータのデータ構造であって、
     前記画像データに含まれる画素の画素値を示す画素情報における画素値の最小値と、
     前記画素情報の画素値から前記最小値が減算された後の画素値と、当該画素値の画素の位置を特定する情報とを関連付けた圧縮済画素情報を含む、
     データ構造。
    A data structure of compressed sub-block data constituting compressed image data obtained by compressing image data,
    A minimum pixel value in pixel information indicating a pixel value of a pixel included in the image data;
    Including compressed pixel information associating a pixel value after the minimum value is subtracted from a pixel value of the pixel information and information specifying a position of the pixel of the pixel value;
    data structure.
PCT/JP2014/052618 2013-02-25 2014-02-05 Image compression device, image decompression device, image compression program, image decompression program, and data structure WO2014129308A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
SG11201506584SA SG11201506584SA (en) 2013-02-25 2014-02-05 Image compression device, image decompression device, image compression program, image decompression program, and data structure

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP2013035165A JP5263854B1 (en) 2013-02-25 2013-02-25 Image compression apparatus, image decompression apparatus, image compression program, image decompression program, and data structure
JP2013-035165 2013-02-25

Publications (1)

Publication Number Publication Date
WO2014129308A1 true WO2014129308A1 (en) 2014-08-28

Family

ID=49053035

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/JP2014/052618 WO2014129308A1 (en) 2013-02-25 2014-02-05 Image compression device, image decompression device, image compression program, image decompression program, and data structure

Country Status (3)

Country Link
JP (1) JP5263854B1 (en)
SG (1) SG11201506584SA (en)
WO (1) WO2014129308A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11431999B2 (en) 2016-12-21 2022-08-30 Interdigital Vc Holdings, Inc. Method and apparatus for embedding key information in an image

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190075319A1 (en) * 2016-03-08 2019-03-07 Interdigital Vc Holdings, Inc. Methods for performing an intra prediction encoding and decoding of at least one picture, and corresponding electronic devices

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000134511A (en) * 1998-10-26 2000-05-12 Sony Corp Device and method for converting image information
JP2003230138A (en) * 2002-02-05 2003-08-15 Sony Corp Apparatus and method for coding processing and decoding processing, and computer program
JP2003259368A (en) * 2002-02-28 2003-09-12 Sony Corp Encoding apparatus, decoding apparatus and method, and computer program

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01144790A (en) * 1987-11-30 1989-06-07 Sony Corp Information volume controller
JPH0292162A (en) * 1988-09-29 1990-03-30 Sony Corp High efficiency encoder
JPH06209469A (en) * 1993-01-11 1994-07-26 Sony Corp Picture coder, picture coding method, picture decoder, picture decoding method and picture recording medium
JP3590994B2 (en) * 1994-06-30 2004-11-17 ソニー株式会社 Apparatus and method for controlling information amount of quantization output
JP3716842B2 (en) * 2003-03-24 2005-11-16 ソニー株式会社 Data encoding apparatus, data encoding method, and program
JP4506811B2 (en) * 2007-10-29 2010-07-21 ソニー株式会社 Encoding processing apparatus and method, and computer program

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000134511A (en) * 1998-10-26 2000-05-12 Sony Corp Device and method for converting image information
JP2003230138A (en) * 2002-02-05 2003-08-15 Sony Corp Apparatus and method for coding processing and decoding processing, and computer program
JP2003259368A (en) * 2002-02-28 2003-09-12 Sony Corp Encoding apparatus, decoding apparatus and method, and computer program

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11431999B2 (en) 2016-12-21 2022-08-30 Interdigital Vc Holdings, Inc. Method and apparatus for embedding key information in an image

Also Published As

Publication number Publication date
JP5263854B1 (en) 2013-08-14
JP2014165678A (en) 2014-09-08
SG11201506584SA (en) 2015-09-29

Similar Documents

Publication Publication Date Title
EP2786554B1 (en) Tiling process for digital image retrieval
ES2397341T3 (en) Encoding, decoding and representation of high dynamic range images
US8576242B2 (en) Image processing using meshes and gradient information
CN106030652B (en) Method, system and composite display controller for providing output surface and computer medium
JP2012523765A (en) System and method for image compression
CN102341825A (en) Multi-modal tone-mapping of images
GB2539241B (en) Video processing system
JP2008152334A (en) Program, information storage medium, two-dimensional code, printed matter, two-dimensional code image, method for controlling display of two-dimensional code image, and two-dimensional code creation system
JP5263854B1 (en) Image compression apparatus, image decompression apparatus, image compression program, image decompression program, and data structure
US20110175927A1 (en) Information processing apparatus, method of operation thereof and storage medium
CN106797447A (en) Color index figure compression set and method
JP2013243610A (en) Image data transmission apparatus, image data reception apparatus, image data transmission system, image data transmission method, image data reception method, transmission image data, and program
JP7309081B2 (en) Blind local reshaping in HDR imaging
KR101551915B1 (en) Device and method for video compression
CA2763831A1 (en) Presentation and manipulation of high depth images in low depth image display systems
JP6158576B2 (en) Image compression apparatus, image decompression apparatus, image compression program, image decompression program, and data structure
JP6276596B2 (en) Spatial super-resolution / tone interpolation device and program
JP6467933B2 (en) Image smoothing method and image smoothing apparatus
JP2008117226A (en) Image data compression decompressor
US11132776B2 (en) Image processing device, image processing method, and image processing program for maintaining sharpness of image
CN104041055A (en) Right sizing enhanced content to generate optimized source content
JP2020108138A (en) Video processing apparatus and video processing method thereof
CN104392410B (en) Picture integration method, skin method for drafting and equipment in integumentary system
JP2017016511A (en) Distortion correction image processor and program
US10462478B2 (en) Method of video generation

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 14753701

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

WWE Wipo information: entry into national phase

Ref document number: IDP00201505290

Country of ref document: ID

122 Ep: pct application non-entry in european phase

Ref document number: 14753701

Country of ref document: EP

Kind code of ref document: A1