IMAGE SENSOR MODULE, IMAGE PROCESSING SYSTEM, AND IMAGE COMPRESSION METHOD

The image sensor module employs DPCM and HV coding to address inefficient compression in isolated areas, enhancing compression efficiency and reducing data loss for improved image quality.

DE102021117548B4Active Publication Date: 2026-11-26SAMSUNG ELECTRONICS CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
DE102021117548
Authority / Receiving Office
DE · DE
Patent Type
Patents
Current Assignee / Owner
Priority Date
2021-03-04
Filing Date
2021-07-07
Publication Date
2026-11-26
Estimated Expiration
2041-07-07

AI Technical Summary

Technical Problem

Existing image compression methods struggle with efficient compression of pixel data in isolated areas of image data, leading to increased data loss and image degradation.

Method used

An image sensor module and compression method that utilizes Differential Pulse Code Modulation (DPCM) and Horizontal/Vertical (HV) balance coding to compress pixel data, particularly in isolated areas, reducing data loss and improving compression efficiency.

Benefits of technology

Enhances compression efficiency and reduces data loss in isolated areas, resulting in improved image quality during decompression.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 00000001_0000
    Figure 00000001_0000
  • Figure 00000028_0000
    Figure 00000028_0000
  • Figure 00000029_0000
    Figure 00000029_0000
Patent Text Reader

Abstract

Image compression method, comprising: Receiving (S110) pixel values ​​from target pixels (T0-T3) of a target pixel group (TG) of image data (IDT) on which compression is to be performed, and reference values ​​from reference pixels (R11-R34) to be used in the compression of the target pixel group (TG); Determining (S120) an averaging direction (HD; VD) in which an averaging calculation is to be performed on the pixel values ​​of the target pixels (T0-T3); Generating averages (AVGh0, AVGh1; AVGv0, AVGv1) by averaging (S130) the pixel values ​​of the target pixels (T0-T3) in the averaging direction (HD; VD); Generating (S140) balancing information (BIF) based on the reference pixels (R11-R34), wherein the balancing information (BIF) contains compensation values ​​to be applied to the means (AVGh0, AVGh1; AVGv0, AVGv1); and generating (S150) a bitstream (BSa; BSb) based on the means (AVGh0, AVGh1;AVGv0, AVGv1), the balancing information (BIF), and a mode information, wherein the averaging (S130) includes calculating a first mean (AVGh0; AVGv0) and a second mean (AVGh1; AVGv1) for two pairs of target pixels in the averaging direction (HD; VD) among the target pixels (T0-T3), and wherein the bitstream (BSa; BSb) includes the first mean (AVGh0; AVGv0), the second mean (AVGh1; AVGv1), the balancing information (BIF), and the mode information.;
Need to check novelty before this filing date? Find Prior Art

Description

AREA The present invention relates to image sensors in general, and in particular to an image sensor module for compressing data in an isolated area and an image compression method. DISCUSSION OF THE STATE OF THE TECHNOLOGY As interest in high-quality, high-resolution photos and images has increased, so too has the number of capture pixels in image sensor pixel arrays, as well as the size of the image data generated by the image sensor. This image data can be transmitted to an image processing device, where it can be compressed to improve transmission efficiency. The compressed image data can then be sent to the image processing device. The image data can comprise various image patterns in two or more dimensions. To compress pixel data contained within a specific region of the image pattern, a compression method can be applied that increases compression efficiency and reduces compression loss. From US 2008 / 0 175 498 A1, an image compression method is known in which an image is divided into 2×2 blocks, pixel values ​​of pixels arranged on direction edges are predicted using neighboring pixels, an edge mode is selected, and a bitstream packet containing mode data, edge mode data, neighbor mode data, and compressed pixel values ​​is generated. From US patent 2019 / 0373189A1, an image encoding device for image data of a Bayer pattern is known, wherein a bitstream is generated in a first mode based on difference values ​​between original pixel values ​​and a reference value based on reference pixels, and in a second mode based on an average of at least two original pixel values. SUMMARY The claimed invention provides an image sensor module for efficient compression of pixel data of an isolated area and an image compression method. An image compression method according to the invention is specified by claim 1. Advantageous further developments of the image compression method are specified in dependent claims 2 to 8. An image sensor module according to the invention is specified by claim 9. BRIEF DESCRIPTION OF THE DRAWINGS Embodiments of the present invention are better understood from the detailed description below together with the accompanying drawings, wherein: Fig. 1 is a block diagram of an image processing system according to one embodiment; Fig. 2 is a hybrid concept diagram of a pixel array and image data applied to an image sensor module according to one embodiment; Fig. 3A is a block diagram of an encoder according to one embodiment; Fig. 3B is a block diagram of an encoder according to one embodiment; Fig. 4 is a hybrid concept diagram of a reference card according to one embodiment; Fig. 5 is a flowchart of a compression method according to one embodiment; Fig. 6A is a concept diagram describing an operation of the compression method of Fig. 5; Fig. 6B is a concept diagram describing an operation of the compression method of Fig. 5; Fig.Figure 6C is a concept diagram describing the operation of the compression method of Figure 5; Figure 6D is a concept diagram describing the operation of the compression method of Figure 5; Figure 7A is a concept diagram representing a bitstream according to one embodiment; Figure 7B is a concept diagram representing a bitstream according to one embodiment; Figure 8 is a concept diagram describing a compression method using a comparative example according to one embodiment; Figure 9 is a concept diagram representing image data and a reference card according to one embodiment; Figure 10 is a concept diagram describing a compression method according to one embodiment; Figure 11A is a block diagram representing image sensor modules according to one embodiment; Figure 11B is a block diagram representing image sensor modules according to one embodiment; FigureFigure 12 is a schematic block diagram of an encoder according to one embodiment; Figure 13 is a block diagram of an image processing system according to one embodiment; Figure 14 is a tabular diagram describing compression information according to one embodiment; Figure 15A is a block diagram of an electronic device including a multi-camera module; Figure 15B is a block diagram of a camera module in Figure 15A; and Figure 16 is a schematic block diagram of an electronic device according to one embodiment. DETAILED DESCRIPTION The following describes in detail embodiments of the present invention with reference to the accompanying drawings. Fig. 1 shows an image processing system 10 according to one embodiment. Fig. 2 shows a pixel array and image data applied to an image sensor module according to one embodiment. The image processing system 10 can capture an image of an object or person, store the captured image on a memory device, and / or process the captured image and store the processed image in or on a memory device. According to one embodiment, the image processing system 10 can be implemented as a digital camera, a digital camcorder, a mobile phone, a tablet computer, or a portable electronic device. The portable electronic device can include a laptop computer, a mobile phone, a smartphone, a tablet PC, a personal digital assistant (PDA), an enterprise digital assistant (EDA), a digital camera, a digital video camera, an audio device, a portable multimedia player (PMP), a personal navigation device (PND), an MP3 player, a handheld game console, an e-reader, a portable device, or the like.Furthermore, the image processing system 10 can be mounted as a component in electronic devices such as a drone, an advanced driver assistance system (ADAS), vehicles, furniture, production facilities, doors, various measuring instruments, or similar. Referring to Fig. 1, the image processing system 10 can comprise an image sensor module 100 and an image processing device 200. In one embodiment, the image sensor module 100 can comprise an image sensor 110, an encoder 120, and an interface (I / F) 130. In another embodiment, the image sensor module 100 can be implemented as a plurality of semiconductor chips. For example, a pixel array (e.g., PXA in Fig. 2) of the image sensor 110 can be integrated into a semiconductor chip, or it can be integrated into other semiconductor chips in which the logic circuits of the image sensor 110, the encoder 120, and the I / F 130 are different. The plurality of semiconductor chips can be electrically connected to each other via interconnects or can be electrically connected to each other via stacked vias.However, embodiments are not limited thereto, and the image sensor module 100 can be implemented as a single semiconductor chip without any limitation thereto. In one embodiment, the image processing device 200 can comprise an I / F 210, a memory 220, a decoder 230, and an image signal processor 240. The image sensor module 100 can target an external object or person and generate image data (IDT). The image sensor module 100 can include the image sensor 110, which is capable of converting an optical signal from the target, passing through a lens (LS), into an electrical signal. The image sensor 110 can comprise the pixel array (e.g., PXA in Fig. 2) in which a plurality of detection pixels or detected pixels (e.g., SPX in Fig. 2) are arranged two-dimensionally, and can output the image data IDT, which comprises a plurality of pixel values, each corresponding to the plurality of detection pixels SPX of the pixel array PXA. The pixel array PXA can comprise a plurality of rows, a plurality of columns, and a plurality of capture pixels SPX, each connected to the plurality of rows and the plurality of columns, and arranged in a matrix form. Each of the plurality of capture pixels SPX of the pixel array PXA can capture an optical signal of at least one color from a plurality of reference colors. For example, the plurality of reference colors can include red, green, and blue, or red, green, blue, and white, and can also include colors other than these. For example, the plurality of reference colors can include cyan, yellow, green, and magenta. The pixel array PXA can generate pixel signals that contain information about the reference color of each plurality of the capture pixels SPX. For example, as shown in Fig. 2, the pixel array PXA can include a red capture pixel SPX_R, a blue capture pixel SPX_B, and first and second green capture pixels SPX_Gr and SPX_Gb. A green capture pixel located in the same row as the red capture pixel SPX_R can be called the first green capture pixel SPX_Gr, and a green capture pixel located in the same row as the blue capture pixel SPX_B can be called the second green capture pixel SPX_Gb. The red capture pixels SPX_R, the blue capture pixels SPX_B, the first green capture pixels SPX_Gr, and the second green capture pixels SPX_Gb can be arranged in rows and columns, and this arrangement can be called a pixel pattern PT. A plurality of pixel patterns PT can be arranged repeatedly in the pixel array PXA. For example, as shown in Fig. 2, the pixel pattern PT can comprise the red detection pixels SPX_R, arranged in a 2 x 2 matrix, the blue detection pixels SPX_B, arranged in a 2 x 2 matrix, the first green detection pixels SPX_Gr, arranged in a 2 x 2 matrix, and the second green detection pixels SPX_Gb, arranged in a 2 x 2 matrix. This pixel pattern PT type can be referred to as a Tetra pattern. However, the technical idea of ​​the present invention is not limited thereto, and the pixel patterns PT can comprise the red sensing pixel SPX_R, the blue sensing pixel SPX_B, the first green sensing pixel SPX_Gr, and the second green sensing pixel SPX_Gb, which are arranged in a 2 x 2 matrix, and this type of pixel pattern PT can be referred to as a Bayer pattern (see e.g. Fig. 9).Alternatively, the pixel pattern PT can include the red capture pixels SPX_R, which are arranged in an nxn matrix (where n is an integer equal to or greater than 3), the blue capture pixels SPX_B, which are arranged in an nxn matrix, the first green capture pixels SPX_Gr, which are arranged in an nxn matrix, and the second green capture pixels SPX_Gb, which are arranged in an nxn matrix. The image data (IDT) can be generated based on the pixel signal output from the pixel array (PXA). The image data (IDT) can have a color pattern that corresponds to the pixel pattern (PT) of the pixel array (PXA). For example, if the pixel array (PXA) has a Bayer pattern, the image data (IDT) can also have a Bayer pattern. Similarly, if the pixel array (PXA) has a Tetra pattern, the image data (IDT) can have either the Tetra pattern or the Bayer pattern. For example, if the pixel array PXA has a Tetra pattern, a pixel signal can be output from four capture pixels SPX of the same color contained in the pixel pattern PT, or four pixel signals can be output if the pixel signal is output from each of the four capture pixels SPX. If one pixel signal is output, the image data IDT can have a Bayer pattern, and if four pixel signals are output, as shown in Fig. 2, the image data IDT can have a Tetra pattern. The image data IDT can comprise a red pixel PX_R, a blue pixel PX_B, a first green pixel PX_Gr, and a second green pixel PX_Gb, arranged alternately. A pixel PX of the image data IDT can specify data corresponding to the acquisition pixel SPX of the pixel array PXA, that is, pixel data. The red pixel PX_R, the blue pixel PX_B, the first green pixel PX_Gr, and the second green pixel PX_Gb can each correspond to the red acquisition pixel SPX_R, the blue acquisition pixel SPX_B, the first green acquisition pixel SPX_Gr, and the second green acquisition pixel SPX_Gb, respectively. The image data IDT can comprise a plurality of pixel groups PG, and in this case, the pixel group PG can be defined according to the color pattern PT of the image data IDT such that it comprises a preset number of pixels PX arranged sequentially in rows and columns or in one direction, or comprises adjacent pixels PX corresponding to the same reference color. For example, as shown in Fig. 2, if the image data IDT has a Tetra pattern, the pixel group PG can be defined such that it corresponds to the same reference color (for example, red, blue, and green colors, or similar) and comprises four adjacent pixels PX. As another example, if the image data IDT has a Bayer pattern, the pixel group PG can be defined such that it comprises a preset number (for example, four) of different color pixels PX arranged in a matrix. Referring again to Fig. 1, each of the majority of the SPX sensing pixels can include at least one photo-sensing element, or photoelectric conversion element. The photo-sensing element can detect light and convert the detected light into an electrical signal. For example, the photo-sensing element can include a photodiode, a phototransistor, a photogate, a pinned photodiode (PPD), or a combination thereof. Each of the plurality of capture pixels SPX can comprise the photo capture element and a pixel circuit for outputting the pixel signal, which corresponds to an electrical signal generated by the photo capture element. For example, the pixel circuit can have a four-transistor structure comprising a transfer transistor, a reset transistor, a gain transistor, and a select transistor. However, embodiments are not limited to this, and the pixel circuit can have a one-transistor structure, a three-transistor structure, a four-transistor structure, a five-transistor structure, or a structure in which the plurality of pixels PX share some transistors. In one embodiment, each of the pixel circuits can be equipped with a memory and / or an analog-to-digital converter. In one embodiment, a plurality of color filters transmitting an optical signal (e.g., an optical signal of a specific color) of a particular wavelength band can be arranged on the plurality of pixels PX to correspond to the plurality of pixels PX of the pixel array PXA, and can convert the optical signal transmitted by a color filter corresponding to at least one photo-detection element equipped in the pixel PX. Accordingly, each of the plurality of detection pixels SPX can output at least one pixel signal corresponding to at least one assigned reference color. However, embodiments are not limited to this. For example, an optical signal of a particular wavelength band of light incident on at least one photo-detection element contained in the detection pixel SPX can be selectively converted into an electrical signal. In one embodiment, the image data IDT can comprise raw image data, which includes the majority of pixel values, wherein the majority of pixel signals output by the pixel array PXA have been digital-to-analog converted, or image data in which a preprocessing operation has been performed on the raw image data. For data transmission speed, reduction of power consumption according to data transmission, and the efficiency of data storage space, the image sensor module 100 can compress the image data IDT using the encoder 120, and transmit the compressed data CDT to the image processing device 200. The encoder 120 can receive the image data IDT from the image sensor 110, compress the image data IDT, and generate the compressed data CDT. The compressed data CDT can be implemented in an encoded bitstream form. Hereinafter, the encoded bitstream can simply be referred to as a bitstream. The bitstream can include a compression result and compression information (for example, mode information specifying a compression method). The encoder 120 can generate the compressed data CDT by encoding the image data IDT into units of pixel groups PG. The encoder 120 can generate a bitstream by encoding a pixel group PG, and can generate the compressed data CDT based on the bitstream of all pixel groups PG in the image data IDT. When the pixel group PG is encoded, the pixel group PG can be compressed, and subsequently, in the present invention, encoding can be used in the same way as compression. The encoder 120 can perform compression using a reference map. This reference map is generated in front of the target pixel group (PG) where compression is to be performed, based on the pixel values ​​corresponding to previously compressed pixels (PX). The encoder 120 can compress the pixel value of a target pixel based on a reference value from at least one reference pixel that is adjacent to at least one target pixel in the target pixel group on the reference map. The reference value can be generated based on the pixel value of the reference pixel itself; for example, the reference value could be a value generated when the pixel value of the reference pixel is compressed and then decompressed. It is possible that the pixel value of the target pixel may be similar to the pixel value of the adjacent reference pixel. Furthermore, it is possible that the pixel values ​​of the target pixels within the target pixel group may be similar to each other. Accordingly, encoder 120 can compress the target pixel group using a Differential Pulse Code Modulation (DPCM) coding method, where an coding operation is performed based on a difference between the target pixels of the target pixel group and neighboring pixels, such as a difference between the pixel value of the target pixel and the reference pixel, or a difference between the pixel value of the target pixel and the pixel value of another target pixel group.Accordingly, the compression efficiency or compression rate can be increased, and therefore data loss due to compression can be reduced. The difference between the pixel values ​​of the target pixel group, contained in an isolated area within the image data (IDT), and the pixel values ​​of the reference pixels can be large. In other words, the correlation between the pixel values ​​of the target pixels and the reference pixel values ​​can be low. In this case, the isolated area can specify an area that corresponds to a peripheral area in at least two directions (for example, two directions perpendicular to each other) of peripheral areas of a two-dimensional or multi-dimensional image pattern generated in the image data IDT, such as an area that corresponds to the edges of the image pattern. According to one embodiment, the encoder 120 may include a balance mode compressor (BMC). If the differences between the pixel values ​​of the target pixels and the reference pixels are large, the balance mode compressor (BMC) may compress the target pixels using an associated coding method, such as a horizontal or vertical (HV) balance coding method. The balance mode compressor (BMC) may generate averages by averaging the pixel values ​​of the target pixels in a horizontal or longitudinal direction, or in a vertical or diagonal direction, and generates the bitstream based on the averages and the balance information.In this case, the compensation information can include information for compensating a difference between the mean and the pixel value. It can include a selection value indicating whether the pixel values ​​should be restored by applying a difference value between the reference values ​​of neighboring pixels to the mean as a compensation value during the coding operation. It can also include a slope value indicating whether a difference value, or a given default value, should be added to or subtracted from the mean for a specific pixel. This HV compensation coding method can be described in more detail with reference to Figures 5, 6, 7, 8, 9 to 10. If the encoder 120 compresses a pixel group in an isolated area using the DPCM method described above, or according to a method of encoding the pixel group in the isolated area based on some high data bits, including the most significant bit (MSB) of the majority of the data bits that specify the pixel value of each of the target pixels, a large amount of data loss can occur. Accordingly, image degradation can occur in recovered image data produced by decompressing the compressed data CDT, and artifacts or noise can appear in the image data. However, as described above, in one embodiment, the encoder 120 can compress the pixel group in the isolated area using an associated encoding method, for example, the HV equalization encoding method.Accordingly, compression can be increased efficiently, and data loss can be reduced. The encoder 120 can provide the compressed data CDT to the image processing device 200 via the I / F 130. For example, the I / F 130 can be implemented as a Camera Serial Interface (CSI) based on the Mobile Industry Processor Interface (MIPI). However, the I / F 130 is not limited to this and can be implemented according to various protocol standards. The image processing device 200 can generate an image that is to be played back on a display by converting the compressed data CDT received from the image sensor module 100. The image processing device 200 can receive the compressed data CDT from the image sensor module 100, generate decompressed data DDT, such as recovered image data by decompressing the compressed data CDT, and perform an image processing operation on the decompressed data DDT. In one embodiment, the image processing device 200 can receive the compressed data CDT from the image sensor module 100 via the I / F 210. The I / F 210 can be implemented with MIPI as the I / F 130 equipped in the image sensor module 100, but is not limited to this. The image processing device 200 can store the received, compressed data CDT on the memory 220. Memory 220 can be a storage location for data. Compressed data CDT can be stored in memory 220. Memory 220 can also store other data, such as an operating system (OS), various programs, and various other data (for example, compressed data CDT). Memory 220 can comprise volatile memory, such as random access memory (RAM), dynamic random access memory (DRAM), and / or static RAM (SRAM), or non-volatile memory, such as phase-change RAM (PRAM), resistive RAM (ReRAM), magnetic RAM (MRAM), and / or flash memory. In Fig. 1, memory 220 is shown contained within the image processing device 200, but is not limited to this, and memory 220 can be arranged separately outside the image processing device 200. Decoder 230 can read the compressed data CDT from memory 220 and generates the decompressed data DDT by decompressing the compressed data CDT. Decoder 230 can then provide the decompressed data DDT to the image signal processor 240. The decoder 230 can decompress the compressed data CDT into units of pixel groups PG using a decompression or encoding method according to a compression or encoding method performed by the encoder 120 of the image sensor module 100. The decoder 230 can determine the decompression method applied to the pixel group PG based on compression information contained in the bitstream of the compressed data CDT. The decoder 230 can decompress the target pixels of the target pixel group based on the pixels that were decompressed before the target pixel group is decompressed, i.e., the reference map, which comprises the reference values ​​corresponding to the reference pixels. In one embodiment, the decoder 230 can decompress the target pixel group by using an encoding method according to the HV equalization coding method. The decoder 230 can store the pixel values ​​by setting the mean value contained in the bitstream based on the equalization information. The image signal processor 240 can perform various image processing operations on the received decompressed data DDT. As a non-limiting example, the image signal processor 240 can perform at least one image processing operation on the decompressed data DDT, such as poor pixel compensation, offset compensation, lens distortion compensation, chromatic enhancement compensation, shading compensation, gamma compensation, denoising, and / or sharpening. In an embodiment corresponding to the implementation of the image sensor module 100, some of the processing operations described above can be omitted. For example, if the image sensor module 100 includes a high-quality image sensor 110, the poor pixel compensation (e.g.,Static compensation of bad pixels) or offset compensation or similar image processing operations are omitted. On the other hand, each of the encoder 120 and the decoder 230 can be implemented as software or hardware, or a combination of software and hardware such as firmware. If the encoder 120 and the decoder 230 are implemented as software, each of the functions described above can be implemented as programmed source code and can be loaded onto a storage medium provided in each of the image sensor module 100 and the image processing device 200. If a processor (for example, an image processor) provided in each of the image sensor module 100 and the image processing device 200 executes software, functions of the encoder 120 and the decoder 230 can be implemented.If the encoder 120 and the decoder 230 are implemented as hardware, the encoder 120 and the decoder 230 can comprise a logic circuit and a register, and each of the functions described above can be performed based on a register setting. Figure 1 shows the image processing system 10 comprising the image sensor module 100 and the image processing device 200, but embodiments are not limited thereto. For example, the image processing system 10 can comprise several image sensor modules 100 and the image processing device 200, or it can be implemented to comprise a plurality of image sensor modules 100. Furthermore, Figure 1 shows the decoder 230 and the image signal processor 240 as separate components, but embodiments are not limited thereto. For example, the image signal processor 240 can be implemented comprising the decoder 230. Figures 3A and 3B show encoders according to the embodiments. Figures 3A and 3B show examples of the encoder 120 in Figure 1. Referring to Fig. 1 and Fig. 3A, the encoder 120 can include a reference pixel detector 121, a compression circuit 122, a mode selector 123, a recovery image generator 124, and a reference buffer memory 125. The reference pixel detector 121 can receive the image data IDT from the image sensor (e.g., 110 in Fig. 1) and can receive the reference map, including the reference values ​​of the reference pixels, from the reference buffer 125. These reference maps are used to compress the target pixel group. The reference pixel detector 121 can detect the reference value of the reference pixels adjacent to the target pixel group in the recovered image data stored in the reference buffer 125—that is, the recovered pixel values ​​of the reference pixels—and can receive these reference values ​​from the reference buffer 125 as the reference map. The reference pixel detector 121 can then provide the target pixel group and the reference map of the image data IDT to the compression circuit 122. The compression circuit 122 can compress the target pixel group based on the reference map. The compression circuit 122 can include the equalization-mode compressor BMC and a normal-mode compressor NMC, and the equalization-mode compressor BMC and the normal-mode compressor NMC can compress the target pixel group using different compression or encoding methods. The normal-mode compressor NMC can output first encoding data EDT1, and the equalization-mode compressor BMC can output second encoding data EDT2. The normal-mode compressor (NMC) can encode the target pixel group using the DPCM method based on the reference map. In one embodiment, the NMC can generate a difference between the reference value of the reference pixel and the pixel value of the target pixel, as well as difference values ​​between the pixel values ​​of the target pixels, and generate the bitstream based on these difference values. In another embodiment, the NMC can generate a difference between the mean of the pixel values ​​of the target pixels and a reference value of the reference pixel, as well as difference values ​​between the mean and the pixel values ​​of the target pixels, and generate the bitstream based on these difference values. The bitstream generated in the NMC can be output as the first encoding data, EDT1. The BMC equalization mode compressor can encode the target pixel group using the HV equalization coding method, as described above with reference to Fig. 1. As described above with reference to Fig. 1, the mean values ​​can be generated by averaging the pixel values ​​of the target pixels in a longitudinal or vertical direction, and the bitstream can be generated based on the equalization information to compensate for any difference between the mean of the mean values ​​and the pixel value. The bitstream generated by the BMC equalization mode compressor can be output as the second encoding data EDT2. In this case, the BMC smoothing mode compressor can determine whether to calculate the average of the pixel values ​​of the target pixels that are continuously arranged above and below, or the average of the pixel values ​​of the target pixels that are continuously arranged to the left and right – that is, the direction in which the averaging calculation should be performed. The BMC smoothing mode compressor can determine the direction in which the averaging calculation should be performed based on the reference values ​​of the reference map. Fig. 3A shows the compression circuit 122 to include the equalization mode compressor BMC and the normal mode compressor NMC, but embodiments are not limited thereto, and the compression circuit 122 may further include a compressor which encodes the target pixel group using an encoding method which differs from those of the equalization mode compressor BMC and / or the normal mode compressor NMC. The mode selector 123 can select compressed data obtained from the compression circuit 122, for example one of the first encoding data EDT1 and one of the second encoding data EDT2, and can output the selected encoding data as the compressed data CDT. The mode selector 123 can decode the first encoding data EDT1 and the second encoding data EDT2 in a decoding procedure according to a method in which each of them is decoded, and can select one of the first encoding data EDT1 and the second encoding data EDT2 based on an error rate according to the decoding. The error rate can specify a difference between the decoded data, that is, the decoded pixel values ​​and the pixel values ​​before decoding, and if the difference is small, the error rate can be lower. If the error rate is lower, the decompressed data DDT, which is produced by the image processing device 200, that is, the image degradation of the recovered image data, can be lower.Therefore, the mode selector can choose 123 encoding data, which has a lower error rate, from among the first encoding data EDT1 and the second encoding data EDT2 as the compressed data CDT, and can output the compressed data CDT. In one embodiment, the normal-mode compressor (NMC) or another separate compressor can generate coded data by encoding the target pixel group, for example, the first coded data EDT1. If the error rate of the first coded data EDT1 exceeds a reference error rate, the equalization-mode compressor (BMC) can act. The equalization-mode compressor (BMC) can generate the second coded data EDT2 by encoding the target pixel group. If the error rate of the first coded data EDT1 is equal to or less than the reference error rate, the mode selector (123) can output the first coded data EDT1 as the compressed data CDT. If the error rate of the first coded data EDT1 exceeds the reference error rate, the mode selector (123) can output the second coded data EDT2, which is received from the equalization-mode compressor (BMC) as the compressed data CDT. The Recovery Image Generator 124 can generate recovered images by decoding the compressed CDT data. The Recovery Image Generator 124 can recover the pixel values ​​of the target pixel group by decoding them using a method that corresponds to the encoding method of any of the majority of the bitstreams contained in the compressed CDT data. The pixels corresponding to the recovered pixel values ​​can then be used as the reference pixels for the other target pixel group on which compression is to be performed. The reference buffer 125 can store the recovered image data and provide the reference value of the reference pixels, which are used to compress the target pixel group, to the reference pixel detector 121. In one embodiment, the reference buffer 125 can comprise a row or column memory and store the reference pixels around the target pixels of the target pixel group. In one embodiment, the reference buffer 125 can be implemented as volatile memory, such as DRAM and SRAM. However, embodiments are not limited to this, and the reference buffer 125 can also be implemented as non-volatile memory, such as ReRAM and PRAM. Referring to Fig. 3B, an encoder 120a can comprise the reference pixel detector 121, a pre-detector 126, the compression circuit 122, the mode selector 123, the recovery image generator 124, and the reference buffer 125. Compared to the encoder 120 of Fig. 3A, the encoder 120a can further comprise the pre-detector 126. The operating modes and operations of the reference pixel detector 121, the compression circuit 122, the mode selector 123, the recovery image generator 124, and the reference buffer 125 have been described with reference to Fig. 3A, and duplicate descriptions have been omitted. The pre-detector 126 can activate or deactivate the balance-mode compressor (BMC). In one embodiment, the pre-detector 126 can activate or deactivate the balance-mode compressor (BMC) based on the reference value of the reference pixels. For example, if a difference between the reference values ​​and the pixel value of the target pixel is equal to or greater than a limit value or threshold, or a specific code value, the balance-mode compressor (BMC) can be activated, and if it is less than the limit value, the balance-mode compressor (BMC) can be deactivated. In another embodiment, the pre-detector 126 can include a register and can activate or deactivate the balance-mode compressor (BMC) based on a control signal stored in the register. For example, the control signal can be received from the image processing device 200. If the balancing mode compressor BMC is deactivated, another compressor set up in compression circuit 122, for example the normal mode compressor NMC, can encode the target pixel group and the encoded data, for example the first encoded data EDT1, can be output as the compressed data CDT. When the balancing mode compressor BMC is activated, at least some of the compressors and the balancing mode compressor BMC, which is set up in the compression circuit 122, can each encode the target pixel group, and the mode selector 123 can output the encoded data which has the lowest error rate of the encoded data as the compressed data CDT. In one embodiment, even though the balancing mode compressor BMC is activated, its priority over the compressors configured in the compression circuit 122 may be low. For example, the normal mode compressor NMC may first encode the target pixel group to generate the first encoded data EDT1. If the error rate of the first encoded data EDT1 exceeds the reference error rate, the balancing mode compressor BMC may then operate. The balancing mode compressor BMC may generate the second encoded data EDT2 by encoding the target pixel group. If the error rate of the first encoded data EDT1 is equal to or less than the reference error rate, the mode selector 123 may output the first encoded data EDT1 as the compressed data CDT.If the error rate of the first encoded data EDT1 exceeds the reference error rate, the mode selector 123 can output the second encoded data EDT2, which was received from the compensating mode compressor BMC, as the compressed data CDT. In one embodiment, when the balancing-mode compressor BMC is activated, another compressor configured in the compression circuit 122, for example the normal-mode compressor NMC, can be deactivated, and the second encoded data EDT2, generated by the balancing-mode compressor BMC, can be output as the compressed data CDT. Accordingly, the power consumption of the encoder 120a can be reduced. Fig. 4 shows a reference map according to one embodiment. In Fig. 4, the reference symbols for pixels are alphanumeric and begin with a letter. In this embodiment, the three-digit number appended to a pixel indicates a value for that pixel; in other words, the pixel value or the reference value. For example, the pixel designated T0 has a value of 283. Referring to Fig. 4, the image data IDT can comprise the majority of pixel groups PG and can be sequentially compressed in a direction in which the majority of pixel groups PG are arranged. In one embodiment, the image data IDT can be sequentially compressed in a left-to-right and a top-to-bottom direction, in units of pixel groups PG. However, embodiments are not limited to this, and the image data IDT can be compressed in a right-to-left or a bottom-to-top direction. Compression can be performed on a target pixel group TG, or on target pixels T0, T1, T2, and T3 of the target pixel group TG. The target pixel group TG can be compressed based on pixels in pixel groups PG that correspond to the same color in neighboring pixel groups PG that have already undergone compression. A neighboring pixel used to compress the target pixel group TG can be called the reference pixel. The reference values ​​of the reference pixels adjacent to the target pixel group TG of the recovered image data RIDT from the reference buffer 125 can be generated as a reference map RM. In this case, the reference map can specify a value that is generated after the pixel value is compressed and decompressed. For example, the reference map RM can include the reference values ​​of the reference pixels (e.g., R11, R12, R13, R14, R21, R22, R23, R24, R31, R32, R33, and R34). The target pixel group TG can be compressed based on the reference map RM. For example, the target pixel group TG, or the target pixel T0 of the target pixel group TG, can be encoded based on the reference value that exhibits the highest relative correlation of the reference values ​​of the neighboring reference pixels R13, R14, R23, R24, R32, and R34, or a reference value of the neighboring reference pixel in a given direction. Differences between the pixel values ​​of target pixels T0, T1, T2, and T3 of target pixel group TG can be large. For example, if the pixel value of target pixel T0 is 283, the respective reference values ​​of the neighboring reference pixels R14, R23, and R32 are 137, 148, and 127, respectively, and the threshold is set to 125, the difference between the pixel value and the reference values ​​can be equal to or greater than 125. In this case, if target pixel group TG corresponds to the isolated area, it can be compressed using the HV equalization coding method. For example, the equalization mode encoder BMC in Fig. 3 can compress the target pixel group TG in the HV equalization coding method, and in this case the equalization mode compressor BMC can use neighboring pixels of the target pixel group TG. Fig. 5 represents a compression method according to one embodiment, and Fig. 6A, Fig. 6B, Fig. 6C, and Fig. 6D represent operating modes or operations of the compression method of Fig. 5. The compression method of Figs. 5 and 6A to 6D can be carried out using the balancing mode compressor BMC in Figs. 3A and 3B. The pixel values ​​of the target pixels T0, T1, T2, and T3 can be similar to each other. The BMC equalization mode compressor can compress the target pixels T0, T1, T2, and T3 according to the HV equalization mode encoding method using the similarity of the pixel values ​​of the target pixels T0, T1, T2, and T3, and in this case, at least one pixel group of the pixel groups contained in the reference map (e.g., RM in Fig. 4) can be used. Assuming that the balancing mode compressor BMC compresses the target pixel group TG using the reference pixels R31, R32, R33, and R34 of the pixel group that is closest to the left side of the target pixel group TG of the pixel groups of the reference card RM, the compression method according to one embodiment is described. Embodiments are not limited thereto. Referring to Fig. 5, the equalization mode compressor BMC can receive the pixel values ​​of the target pixel group and the reference pixel values ​​of the reference pixels (S110). In other words, the equalization mode compressor BMC can receive the image data IDT, including the target pixel group TG, and the reference map RM, including the reference pixel values. The target pixel group TG, as the pixel group on which compression is performed, can comprise target pixels T0, T1, T2, and T3, and can receive the pixel value of each of the target pixels T0, T1, T2, and T3. The reference pixels can comprise neighboring pixels of the target pixels that are or were used to compress the target pixel group. The pixel values ​​of the neighboring pixels can be compressed and then restored and generated as the reference values. The BMC equalization mode compressor can determine the direction in which the averaging calculation according to the HV equalization mode coding procedure (hereinafter referred to as an averaging direction) is to be performed (S120). Referring to Fig. 6A, the BMC equalization mode compressor can determine whether the averaging calculation is to be performed in a horizontal direction HD or in a vertical direction VD. In one embodiment, the balancing mode compressor BMC can determine the averaging direction based on the reference pixels R31, R32, R33, and R34. For example, if a difference value RDh of the reference pixels in the horizontal direction HD (for example, a difference value between the reference values ​​of reference pixels R31 and R32) is equal to or less than a difference value RDv of the reference pixels in the vertical direction VD (for example, a difference value between the reference values ​​of reference pixels R33 and R34), the balancing mode compressor BMC can determine the horizontal direction HD as the averaging direction. Conversely, if the difference value RDh in the horizontal direction HD is greater than the difference value RDv in the vertical direction VD, the balancing mode compressor BMC can determine the vertical direction VD as the averaging direction.As another example, if a difference value between the difference value RDh of the reference pixels in the horizontal direction HD and a difference value TDh of the target pixels in the horizontal direction HD (for example, a difference value between the pixel values ​​of target pixels T0 and T1), for example, an absolute value of (RDh-TDh), is equal to or less than a difference value between the difference value RDv of the reference pixels in the vertical direction HV and a difference value TDv of the target pixels in the vertical direction HV (for example, a difference value between the pixel values ​​of target pixels T0 and T3), for example, an absolute value of (RDv-TDv), the balancing mode compressor BMC can determine the horizontal direction HD as the averaging direction, and conversely, determine the vertical direction VD as the averaging direction.However, embodiments are not limited to this, and the BMC equalization mode compressor can determine the averaging direction using various methods. In one embodiment, the BMC equalization mode compressor can determine an existing direction as the averaging direction. Referring again to Fig. 5, the balancing mode compressor BMC can form an average of the pixel value of the target pixels according to the specified averaging direction (S130). As shown in Fig. 6B, if the horizontal direction HD is defined as the averaging direction, the BMC smoothing mode compressor can calculate an average of the pixel values ​​of target pixels T0 and T1, and the pixel values ​​of target pixels T2 and T3. Accordingly, an average AVGh0 of target pixels T0 and T1, which is 287 (=(283+291) / 2), and an average AVGh1 of target pixels T2 and T3, which is 300 (≅ (298+301) / 2), can be calculated. As shown in Fig. 6C, if the vertical direction VD is defined as the averaging direction, the smoothing mode compressor BMC can calculate the mean of the pixel values ​​of target pixels T0 and T2, and the mean of the pixel values ​​of target pixels T1 and T3. Accordingly, a mean AVGv0 of target pixels T0 and T2, which is 291 (≅(283+298) / 2), and a mean AVGv1 of target pixels T1 and T3, which is 296 (=(291+301) / 2), can be calculated. The BMC balancing mode compressor can generate the balancing information based on the reference pixels (S140). A difference may exist between the mean and the pixel value. The BMC smoothing mode compressor can generate smoothing information to compensate for this difference. This smoothing information can include a selection value indicating whether pixel values ​​should be restored by applying a difference value between the reference values ​​of neighboring pixels to the mean (that is, an absolute value of the difference value) during encoding, and a slope value indicating whether a difference value (or an existing preset or default value) should be added to or subtracted from the mean for a given pixel. Referring to Fig. 6D, if the averaging direction is determined to be the horizontal direction HD, the compensation mode compressor BMC can calculate a difference value Rd0 of the reference pixels R31 and R32 and a difference value Td0 of the target pixels, for example T0 and T1, and can determine a first selection value which indicates whether the difference value should be applied as the compensation value when the target pixels T0 and T1 are decoded by comparing the difference value Rd0 with the difference value Td0. For example, if the difference value Rd0 of the reference pixels is not '0' and is equal to or less than the difference value Td0 of the target pixels, the compensation mode compressor BMC can determine the first selection value which indicates that the difference value Rd0 of the reference pixels is applied as the compensation value, for example a code value '1'. If the difference value Rd0 of the reference pixels is equal to or greater than the difference value Td0 of the target pixels and is '0', the BMC compensation mode compressor can determine the first selection value, which indicates that the difference value Rd0 of the reference pixels is not applied as the compensation value, for example, a code value of '0'. In this case, an existing default value can be applied as the compensation value. Depending on the extent or degree of mean loss, the optimal compensation value can be set as the default value. For example, if four bits of the mean are lost in the bitstream, the default value can be set to 4. If the difference value Rd0 of the reference pixels, which is greater than the difference value Td0 of the target pixels, is applied as the compensation value during decoding, the difference between the recovered pixel values ​​of the target pixels (i.e., decoded pixel values) and the original pixel values ​​(i.e., pixel values ​​before encoding) may be larger than the difference between the mean and the original pixel values. Furthermore, if the difference value Rd0 of the reference pixels is '0', and this difference value is applied as the compensation value, the difference between the mean and the original pixel values ​​may not be compensated.Accordingly, if the difference value Rd0 of the reference pixels is greater than the difference value Td0 of the target pixels, or is '0', the compensation mode compressor BMC can determine the first selection value as the code value '0', and can apply the default value instead of the difference value Rd0 of the reference pixels as the compensation value according to the code value '0' of the first selection value during encoding. The BMC equalization mode compressor can determine a first slope value, which indicates which pixel has a larger value among the target pixels T0 and T1. In other words, the first slope value indicates whether a difference value should be added to or subtracted from the mean value for a given pixel among the target pixels T0 and T1. For example, if the first slope value is code '0', the pixel value of target pixel T0 can be greater than the pixel value of target pixel T1, and if the first slope value is code '1', the pixel value of target pixel T1 can be greater than the pixel value of target pixel T0. Accordingly, if the first slope value is '0', at the time of decoding a value can be added to the mean, where the compensation value (the difference value Rd0 or the standard value) is added (e.g., AVGh0 in Fig.6B) , as the pixel value of the target pixel T0 can be restored, and a value where the compensation value is subtracted from the mean AVGH0 can be restored as the pixel value of the target pixel T1. Similar to the above, the BMC equalization mode compressor can calculate a difference value Rd1 of the reference pixels R33 and R34 and a difference value Td1 of the target pixels T2 and T3. It can also determine a second selection value that specifies whether the difference value Rd1 should be applied when decoding the target pixels T2 and T3 by comparing the difference value Rd1 with the difference value Td1. Furthermore, the BMC equalization mode compressor can determine a second slope value that specifies the slopes of the target pixels T2 and T3. If the averaging direction is determined to be the vertical direction VD, the balancing mode compressor BMC can generate the balancing information in a similar procedure to those described above. Referring again to Fig. 5, the balancing mode compressor BMC can generate a bitstream containing the mean, the balancing information, and the compression information (S150). On the other hand, as described above with reference to Fig. 3A, a compression method can further include, after the bitstream is generated, generating the recovered pixel values ​​by decompressing the bitstream, and generating recovered image data including the reference pixels to be used for compressing a next target pixel group, on which post-target pixel compression is to be performed based on the recovered pixel values. Fig. 7A and Fig. 7B represent bitstreams according to the embodiments. It can be assumed that the pixel value of the target pixel before compression (for example, T0, T1, T2, or T3 in Fig. 4) is represented by data containing 10 bits, and since the target pixel group TG is compressed at a compression rate of approximately 50%, the bitstreams BSa and BSb each comprise data containing 20 bits. Referring to Figures 7A and 7B, the bitstreams BSa and BSb can comprise a header HD and a data block DB. The header HD can contain mode information, including an encoding method used for compression (for example, the DPCM method, the HV balancing mode encoding method, or similar), the compression ratio, data loss, or similar information. The data block DB can comprise information according to the pixel values ​​of the target pixels T0, T1, T2, and T3, for example, the plurality of mean values, and the balancing information relating to the mean values. When a bitstream BSa or BSb is transmitted to the image processing device (e.g., 200 in Fig. 1) as the compressed data CDT, the decoder (e.g., 230 in Fig. 1) can determine the compression method (e.g., the encoding method) based on the mode information contained in the header HD, and can decompress the compressed data CDT by decoding the bitstreams BSa and Bsb based on information contained in a decompression method corresponding to the compression method (e.g., the decoding method) and the data block DB. The HD header can be allocated or distributed across the seventeenth to twentieth bits B16 to B19. Since four bits are allocated to the HD header, it can contain one of the 4x4 (=16) parts of the mode information. The data block DB is allocated to the first through sixteenth bits B0 through B15, and the data block DB can include first and second averaging areas AVE0 and AVE1, and a balancing information area BIF. Each of the first and second averaging areas AVE0 and AVE1 can be allocated six bits; the first averaging area AVE0 can be allocated to the eleventh through sixteenth bits B10 through B15, and the second averaging area AVE1 can be allocated to the fifth through tenth bits B4 through B9. The first averaging area AVE0 and the second averaging area AVE1 can include the averages of the target pixels AVGh0 and AVGh1 (or AVGv0 and AVGv1). The balancing information area BIF can be allocated four bits, that is, the first to fourth bits B0 to B3. Referring to Fig. 7A, the adjustment information area BIF can include a first slope value S0, a second slope value S1, a first selection value b0, and a second selection value b1. In this case, the information about the averaging direction can be contained in the header HD as the mode information. Referring to Fig. 7B, the adjustment information area (BIF) can include information such as the averaging direction. The adjustment information area (BIF) can include information D about the averaging direction, a slope value S, the first selection value b0, and the second selection value b1. The same slope value S can be applied to target pixels T0 and T1 (or T0 and T2) and target pixels T2 and T3 (or T1 and T3). For example, if during encoding the slope value S is the code value '1', the compensation value (for example, the difference value Rd0 in Fig. 6D or the default value) can be added to the mean (for example, AVGh0) for target pixel T1 of target pixels T0 and T1, and the compensation value can be subtracted from the mean for target pixel T0. Furthermore, for the target pixel T3, the target pixel T2 and T3 can be the compensation value (for example, the difference value Rd1 in Fig.6D or the standard value) can be added to the mean (for example, AVGh1), ​​and for the target pixel T2, the compensation value can be subtracted from the mean. Fig. 8 shows a compression method embodiment according to a comparative example of the compression method, from which essentially redundant descriptions can be omitted. By comparison, although Figs. 6A to 6D and 7A to 7B show a compression method according to the HV method, the embodiments are not limited thereto. For example, Fig. 8 shows a compression method according to the DPCM method using the RM reference card, and for example, the compression method can be carried out using a normal-mode compressor (e.g., NMC in Figs. 3A and 3B). Referring to Fig. 8, the normal-mode compressor NMC can compress the target pixels T0, T1, T2, and T3 based on the reference value of at least one reference pixel contained in the reference card RM. For example, a reference pixel R32 of the reference card RM can be used to compress the target pixel group TG. The normal-mode compressor NMC can calculate a difference value d0 between the reference value of reference pixel R32 and the pixel value of target pixel T0. For example, the reference value 127 can be subtracted from the pixel value 283, resulting in a difference value d0 of 156. In this case, if the pixel value is smaller than a compensation reference value, the difference value d0 can be negative. Alternatively, the difference value d0 can be generated by subtracting the pixel value from the compensation reference value. The normal-mode compressor NMC can calculate difference values ​​d1, d2, and d3 among the target pixels T0, T1, T2, and T3. The difference values ​​d1, d2, and d3 can be 78 (=361-283), -41 (=320-361), and 82 (=402-320), respectively. The balancing mode compressor BMC can generate a bitstream BS' for the target pixel group TG based on the difference value d0 between the reference value of the reference pixels R32 and the pixel value of the target pixel T0, and the difference values ​​d1, d2, and d3 between the target pixels T0, T1, T2, and T3. The bitstream BS' can include the header HD and the data block DB, and the data block DB can include a plurality of the remaining areas, for example, the first through fourth remaining areas RD0, RD1, RD2, and RD3. For example, the first through fourth remaining areas RD0, RD1, RD2, and RD3 can include the difference values ​​d0, d1, d2, and d3, calculated with reference to Fig. 8. As a non-restrictive example, values ​​contained in the bitstream BS' can be represented as negative and positive values ​​using a most-significant bit representation method. Each of the first through fourth remaining areas RD0, RD1, RD2, and RD3 can be allocated the same number of bits. For example, the fourth remaining area RD3 can be allocated to the first through fourth bits B0 through B3, the third remaining area RD2 can be allocated to the fifth through eighth bits B4 through B7, the second remaining area RD1 can be allocated to the ninth through twelfth bits B8 through B11, and the first remaining area RD0 can be allocated to the thirteenth through sixteenth bits B12 through B15. On the other hand, the difference value d0 can be 156, and the difference values ​​d1, d2, and d3 can be 78, -41, and 82, respectively. The difference values ​​d1, d2, and d3 can be represented by similar or identical numbers of bits (for example, eight bits including seven bits representing an absolute value and one bit representing a character). However, the difference value d0 can differ significantly from the difference values ​​d1, d2, and d3, and eight bits may be required to represent the absolute value of the difference value d0. Since the first through fourth remaining areas RD0, RD1, RD2, and RD3 are allocated the same number of bits, a large amount of data loss can occur if the normal-mode compressor (NMC) performs compression on the pixel group PG of the isolated area based on the compression method described in the present comparison example. Accordingly, according to one embodiment, if the target pixel group TG corresponds to the isolated area, the image sensor module (e.g., 100 in Fig. 1) can perform compression at the target pixel group TG using the HV compensation coding method, reducing compression loss and improving compression efficiency. Fig. 9 shows image data and a reference map according to one embodiment. In Fig. 9, the image data IDTa can comprise a Bayer pattern. In one embodiment, the pixel group PG can be configured using four continuously arranged pixel units. In another embodiment, the pixel group PG can comprise two red pixels and two green pixels, or two blue pixels and two green pixels. Compression can be performed in units of pixel groups PG, and the reference values ​​of the reference pixels (for example, R11, R12, R13, R14, R21, R22, R23, R24, R31, R32, R33, and R34) of the pixel group PG, which corresponds to the same color as the pixel groups PG that are or were compressed before the target pixel group TG, and is adjacent to the target pixel group TG, can be generated as a reference map RM, which is to be used for the compression of the target pixel group TG. There can be a significant difference (e.g., 125 or more without limitation) between the pixel values ​​of the target pixel group TG and the reference pixels R11, R12, R13, R14, R21, R22, R23, R24, R31, R32, R33, and R34, and the target pixel group TG can be determined to correspond to the isolated area. Accordingly, the target pixel group TG can be compressed based on the HV equalization coding method. Fig. 10 illustrates a compression method according to one embodiment. The compression method of Fig. 10 can be performed on the image data IDTa in Fig. 9 using the reference card RM. Referring to Fig. 10, the equalization mode compressor (e.g., BMC in Fig. 3A) can compress the target pixels T0, T1, T2, and T3 based on the reference values ​​of at least one pixel group contained in the reference card RM. For example, reference pixels R31, R32, R33, and R34 can be used to compress the target pixel group TG. During compression, a reference pixel with the same color as the target pixel can be used. The pixel group PG comprises four pixels arranged continuously in the horizontal direction HD, and the smoothing mode compressor BMC can determine the horizontal direction HD as the averaging direction. The smoothing mode compressor BMC can calculate a first mean AVGh0 by averaging the pixel values ​​of the target pixels T0 and T2, which correspond to the same color, and calculates a second mean AVGh1 by averaging the pixel values ​​of the target pixels T1 and T3, which correspond to the same color. The BMC balancing mode compressor can generate balancing information for target pixels T0 and T2, for example, the first selection value and the first slope value, which is based on the difference value Rd0 of the reference values ​​of reference pixels R31 and R33 and the difference value Td0 of the pixel values ​​of target pixels T0 and T2. The BMC balancing mode compressor can also generate balancing information for target pixels T1 and T3, for example, the second selection value and the second slope value, based on the difference value Rd1 of the reference values ​​of reference pixels R32 and R34 and the difference value Td1 of the pixel values ​​of target pixels T1 and T3. The BMC equalization mode compressor can calculate a difference value d0 between the compensation reference value of reference pixel R33 and the pixel value of target pixel T0, and also calculates the difference value d1 between the pixel values ​​of target pixels T0 and T2. Furthermore, the BMC equalization mode compressor can calculate a difference value d2 between the compensation reference value of reference pixel R34 and the pixel value of target pixel T1, and can calculate the difference value d3 between the pixel values ​​of target pixels T1 and T3. The BMC equalization mode compressor can generate a bitstream BS (see, for example, BSa of Fig. 7A, BSb of Fig. 7B, and / or BS' of Fig. 8, without limitation) based on the difference values ​​d0, d1, d2, and d3. The difference values ​​d0, d1, d2, and d3 can be contained in the data block DB of the bitstream BS. The balancing mode compressor BMC can generate the bitstream BS (for example, BSa in Fig. 7A or BSb in Fig. 7B) based on the first and second means AVGh0 and AVGh1 and the balancing information. Fig. 11A and Fig. 11B represent image sensor modules according to embodiments. Referring to Fig. 11A, an image sensor module 100' can comprise the image sensor 110, the encoder 120, and the I / F 130, essentially as in the image sensor 100 of Fig. 1, as well as a processing logic 150. Duplicate descriptions can be omitted. The image sensor 110 can comprise the pixel array PXA and a drive and readout circuit DRC. As described above, the pixel array PXA can comprise the plurality of pixels PX, which are arranged in rows and columns. The drive and readout circuit DRC can control the pixel array PXA and convert the pixel signals received by the pixel array PXA into pixel values. The drive and readout circuit DRC can generate original image data RDT, including the pixel values ​​that correspond to the received pixel signals. The processing logic 150 can perform preprocessing on the original RDT image data. For example, preprocessing can include image processing such as correcting bad pixels, crosstalk compensation, noise reduction, classification or binning, resizing, and color space conversion. The encoder 120 can generate the compressed data CDT by compressing the image data IDT (or the original image data RDT) received by the processing logic 150. The encoder 120 can compress the image data IDT into units of pixel groups and can compress the target pixel group on which the compression is to be performed using the adjacent pixel group on which the compression has already been performed. As described above, if the target pixel group corresponds to an isolated area, the encoder 120 can compress the target pixel group using the HV equalization coding method. The compressed data CDT can be provided to the I / F 130, and the I / F 130 can transmit the compressed data CDT to the image processing device (e.g., 200 in Fig. 1). Referring to Fig. 11B, an image sensor module 100a can further comprise a memory 160. The memory 160 can be volatile memory, such as DRAM and SRAM, or non-volatile memory, such as PRAM, ReRAM, MRAM, and flash memory. The compressed data CDT generated by the encoder 120 can be stored in the memory 160. The compressed data CDT can be read from the memory 160 and output via the I / F 130. Fig. 12 shows a decoder 220 according to one embodiment. The decoder 220 can generate the decompressed data DDT, for example the recovered image data by decompressing the compressed data CDT, by performing a series of operating modes or operations which were performed by the encoder to encode the image data IDT, in reverse order (e.g., 120 in Fig. 1 ). Decoder 220 can decompress the compressed CDT data using a decoding method equivalent to the encoding method used by encoder 120. Decoder 220 can decode the compressed CDT data into units of bitstreams. The decoder 220 can include a reference pixel detector 221, a mode decoder 222, a decompressor 223, and a reference buffer memory 224. The reference pixel detector 221 can receive the compressed data CDT and can receive the reference card RM, which is used to decompress a target bitstream to be decompressed. This reference card RM contains the bitstreams contained in the compressed data CDT from the reference buffer 224. The reference card RM can include the reference values ​​of the neighboring pixels of the pixel group belonging to the bitstream to be referenced; that is, the reference values ​​of the reference pixels. The reference pixel detector 221 can detect the reference value of the reference pixels adjacent to the target pixel group in the recovered image data stored in the reference buffer memory, i.e., it can detect the recovered pixel values ​​of the reference pixels in the surrounding area, and can receive the reference values ​​from the reference buffer memory 224 as the reference card RM. The reference pixel detector 221 can provide the target bitstream of the compressed data CDT and the reference card RM to the mode decoder 222 or the decompressor 223. The mode decoder 222 can decode the HD header of the bitstream and determine the mode information, compression ratio, information loss, or similar parameters using the result of the decoding. According to one embodiment, the mode decoder 222 can verify that compression has been performed using the HV equalization coding method or another coding method (for example, the DPCM method) using the result of the HD header decoding. The decompressor 223 can restore the target pixels of the bitstream based on the specified compression mode, compression ratio, loss information, or similar parameters. According to one embodiment, if it is determined that the bitstream was generated using the HV equalization coding method based on the result of decoding the HD header, the decompressor 223 can verify the mean values ​​and equalization information of data blocks in the bitstream and restore the pixel values ​​of the compressed pixels by applying the compensation value to the mean values ​​based on the equalization information. The pixel groups generated by decoding the bitstream can be output as decompressed data (DDT). The reference buffer 224 can store the decompressed data DDT, that is, the recovered image data. In one embodiment, the reference buffer 224 can store pixel groups corresponding to the bitstream that is to be decompressed next from the recovered image data. In another embodiment, a memory or buffer (for example, memory 220) provided in the image processing device (e.g., 200 in Fig. 1) can be used as the reference buffer 224. Fig. 13 shows an image processing system 10b according to one embodiment. The image processing system 10b is a modifiable embodiment of the image processing system 10 of Fig. 1. Referring to Fig. 13, the image processing system 10b can comprise an image sensor module 100b and an image processing device 200b. The image sensor module 100b can comprise the image sensor 110 and the I / F 130. The image sensor module 100b can further comprise a memory. The image processing device 200b can comprise the I / F 210, an encoder 250, the decoder 230, an image signal processor 240, and the memory 220. The encoder 250 in Fig. 13 can correspond to the encoder 120 in Fig. 1. In comparison to the image processing system 10b of Fig. 13, the image processing device 200b, which differs from the image sensor module 100b, can include the encoder 250, and the image processing device 200b can compress the image data IDT. Other components can be essentially the same. Duplicate descriptions of the components of the image processing system 10b, which are essentially similar to the components of the image processing system 10 of Fig. 1, can be omitted. Referring to Fig. 13, the image sensor module 100b can generate the image data IDT (the original image data or pre-processed image data). The image data IDT can be transmitted to the image processing device 200b via the I / F 130. The image processing device 200b can receive the image data IDT from the image sensor module 100b, encode the image data IDT to form the compressed data CDT, and store the compressed data CDT in memory 220. Subsequently, the decoder 230 can read the compressed data CDT stored in memory 220 and decompress the compressed data CDT. The decoder 230 can then provide the compressed data CDT, for example, the recovered image data, to the image signal processor 240. As described above, compression and decompression can be performed in units of pixel groups, where a pixel group corresponds to an isolated area of ​​the compressed data CDT and can be compressed or decompressed based on the HV equalization coding method. Fig. 14 presents compression information according to one embodiment. Fig. 14 represents an example of a compression mode (or compression method) according to a standard proposed by the Mobile Industry Processor Interface Alliance (MIPI). Referring to Fig. 14, the image data (e.g., IDT in Fig. 2) of the Tetra pattern can be compressed according to various compression methods. However, embodiments are not limited to this, and image data in which a red pixel group, a blue pixel group, a first green pixel group, and a second green pixel group, including pixels arranged alternately in an n × n matrix, can be compressed according to various compression methods. The compression modes that can be used include an average-based directional differential (AD), an extended multi-pixel-based differential (eMPD), an extended horizontal or vertical direction-based differential (eHVD), an extended horizontal or vertical average-based differential (eHVA), an oblique direction-based differential (OD), an extended outlier compensation (eOUT), an outlier compensation (OUT), and a fixed quantization and no-reference (FNR) mode.However, the names of the compression modes described above are only examples, and embodiments are not limited to them. In AD mode, encoding at the target pixel group can be performed using the DPCM method. For example, the bitstream (e.g., BSa in Fig. 7A) can be generated based on a difference value between the mean of the pixel values ​​of a target pixel group and a difference value between each pixel value and the mean. The AD mode can be divided into MODUS0, MODUS1, MODUS2, and MODUS3 according to a detailed implementation algorithm. Since four bits can be allocated to the HD header, which represents a compression method, sixteen compression modes can represent header information using different bits. For example, MODUS0 can be represented by bits 0000, MODUS1 by bits 0001, MODUS2 by bits 0010, and MODUS3 by bits 0011. In OD mode, image data of a diagonal structure can be compressed. OD mode can be divided into MODUS4 (e.g., 100 bits) and MODUS5 (e.g., 101 bits) according to a detailed implementation algorithm. Similarly, eMPD mode can include MODUS8 (e.g., 1000 bits), MODUS9 (e.g., 1001 bits), MODUS10 (e.g., 1010 bits), and MODUS11 (e.g., 1011 bits), and eHVD mode can include MODUS12 (e.g., 1100 bits) and MODUS13 (e.g., 1101 bits). The eHVA mode can include MODUS14 (e.g., bits 1110). The HV balancing mode according to one embodiment can correspond to the eHVA mode, and the balancing mode compressor (e.g., BMC in Fig. 3A) can generate the bitstream including a header HD specifying the eHVA mode. The eOUT mode can include MODUS15 (e.g., bits 1111), and the OUT mode can include MODUS7 (e.g., bits 0111). The FNR mode can include MODUS6 (e.g., bits 0110). In one embodiment, MODUS7 (e.g., 0111) can be included in the eOUT mode, according to a value stored in a register. In one embodiment, the mode selector (e.g., 123 in Fig. 3A and Fig. 3B) can sequentially evaluate the AD mode, the eMPD mode, the eHVD mode, the eHVA mode, the OD mode, the eOUT mode, the OUT mode, and the FNR mode, and can select an optimal mode according to a compression evaluation index, such as the compression ratio and loss information. However, the present invention is not limited to the described mode evaluation sequence or order. Fig. 15A represents an electronic device 1000 comprising a multi-camera module with several camera modules, and Fig. 15B represents a camera module in Fig. 15A. Referring to Fig. 15A, the electronic device 1000 can comprise a multi-camera module 1100, an application processor 1200, a PMIC 1300, and an external memory 1400. The multi-camera module 1100 can comprise a plurality of camera modules 1100a, 1100b, and 1100c. Although the drawing depicts an embodiment in which three camera modules 1100a, 1100b, and 1100c are arranged, embodiments are not limited thereto. In one embodiment, the multi-camera module 1100 can comprise only two camera modules, or it can be modified and implemented to comprise k (where k is a natural number equal to or greater than 4) camera modules. Detailed configurations of the camera module 1100b are described below with reference to Fig. 15B, but the descriptions below can be applied identically to other camera modules 1100a and 1100c according to the embodiments. Referring to Fig. 15B, the camera module 1100b can comprise a prism 1105, a beam path folding element (hereinafter referred to as OPFE) 1110, a trigger 1130, an image acquisition device 1140, and a memory 1150. The prism 1105 can modify a light path L incident from the outside, including a mirror plane 1107 of a light-reflecting material. In several embodiments, the prism 1105 can change the path of light L incident in a first direction X to a second direction Y, perpendicular to the first direction X. Furthermore, the prism 1105 can rotate the mirror plane 1107 of the light-reflecting material in a direction A with a central axis 1106 as its center, or change the path of light L incident in the first direction X to the second direction Y by rotating the central axis 1106 in a direction B. In this case, the OPFE 1110 can be moved in a third direction Z, perpendicular to the first direction X and the second direction Y. In several embodiments, as shown, the maximum rotation angle in direction A of the prism 1105 can be equal to or less than approximately 15 degrees in a positive (+) direction A, and greater than approximately 15 degrees in a negative (-) direction A, but the embodiments are not limited thereto. In several embodiments, the prism 1105 can be moved approximately 20 degrees, or between approximately 10 degrees and approximately 20 degrees, or between approximately 15 degrees and 20 degrees in the positive (+) or negative (-) directions B, and in this case the degrees of movement can be the same degrees in the positive (+) or negative (-) directions B, or almost similar degrees thereto within a range of approximately 1 degree. In several embodiments, the prism 1105 can move the mirror plane 1107 in a third direction (for example, Z-direction) parallel to the extension direction of the central axis 1106. In several embodiments, the camera module 1100b can comprise two or more prisms, and the path of the light L, which enters in the first direction X through these prisms, can be changed in various ways, such as to the second direction Y, perpendicular to the first direction X, back to the first direction X or to the third direction Z, and back to the second direction Y. The OPFE 1110 can, for example, comprise an optical lens including m (where m is a natural number) groups. The m lenses can move in the second direction Y and can change the optical zoom ratio of the camera module 1100b. For example, if a base optical zoom ratio of the camera module 1100b is Z, and m optical lenses contained in the OPFE 1110 are moved, the optical zoom ratio of the camera module 1100b can be changed to an optical zoom ratio of 3Z or 5Z or more. An actuator 1130 can move the OPFE 1110 or the optical lenses (hereinafter referred to as an optical lens) to a specific position. For example, the actuator 1130 can adjust the position of the optical lens such that the image sensor 1142 is positioned at a focal length of the optical lens for accurate detection. The image acquisition device 1140 can comprise an image sensor 1142, a control logic 1144, and a memory 1146. The image sensor module 100 in Fig. 1 or the image sensor module 100b in Fig. 13 can be used as the image acquisition device 1140. The image sensor 1142 can capture an image of a target by using the light L provided by the optical lens. The control logic 1144 can control all operations of the camera module 1100b and process the captured image. For example, the control logic 1144 can control an operation of the camera module 1100b according to a control signal provided via a control signal line CSLb, and can perform image processing such as extracting image data corresponding to a specific part of the captured image (for example, a face, an arm, a leg, or similar part of a person in the image), and noise reduction. In one embodiment, the control logic 1144 can include the encoder (e.g., 120 in Fig. 1) and compress (or encode) the captured image or image-processed image. As described above, the encoder 120 can compress the images into units of pixel groups and can compress the pixel groups of an isolated area according to the HV equalization encoding method. Memory 1146 can store information required for operations of camera module 1100b, such as calibration data 1147. The calibration data 1147 can be information required to generate image data using light L supplied from outside camera module 1100b and can include, for example, information about a degree of rotation, focal length, optical axis, or similar information. If camera module 1100b is implemented in a multi-state camera form where the focal length varies according to the positions of the optical lens, the calibration data 1147 can include the focal length value for each position (or state) of the optical lens and information about autofocus. In several embodiments, the compressed data can be stored in memory 1146. Furthermore, memory 1146 can be used as the reference buffer memory 125 of the encoder 120. Memory 1150 can store the image data acquired by the image sensor 1142. Memory 1150 can be located outside the image acquisition device 1140 and can be implemented as a sensor chip that forms the image acquisition device 1140, in a stacked configuration. In several embodiments, the image sensor 1142 can comprise a first chip, the control logic 1144 can comprise the memory 1150, and memory 1146 can comprise a second chip; accordingly, all of these can be implemented in a two-chip stacked configuration. In several embodiments, the memory 1150 can be implemented as an electrically erasable programmable read-only memory (EEPROM), but the embodiments are not limited to this. In several embodiments, the image sensor 1142 can comprise a pixel array, and the control logic 1144 can comprise an analog-to-digital converter and an image signal processor for processing a captured image. Referring to Fig. 15A and Fig. 15B together, in several embodiments each of the plurality of camera modules 1100a, 1100b, and 1100c can control the actuator or the Trigger 1130. Accordingly, each of the majority of the camera modules 1100a, 1100b, and 1100c can include identical or different calibration data 1147 to or from each other according to an operation or mode of operation of the actuator or trigger 1130 contained therein. In several embodiments, one camera module (for example, 1100b) of the plurality of camera modules 1100a, 1100b, and 1100c can comprise a camera module of the folded lens type which includes the prism 1105 and OPFE 1110 described above, and the other camera modules (for example, 1100a and 1100c) can comprise a camera module of a vertical type which does not include the prism 1105 and the OPFE 1110, but the embodiments are not limited thereto. In several embodiments, a camera module (for example, 1100c) of the majority of camera modules 1100a, 1100b, and 1100c can include a vertical-type depth camera which extracts depth information using, for example, infrared (IR) radiation. In this case, the application processor 1200 can generate a three-dimensional (3D) depth image by mixing or merging image data provided by the vertical depth camera with image data provided by other camera modules (for example, 1100a or 1100b). In several embodiments, at least two camera modules (for example, 1100a and 1100b) of the plurality of camera modules 1100a, 1100b, and 1100c can have different fields of view. In this case, for example, the optical lenses of at least two camera modules (for example, 1100a and 1100b) of the plurality of camera modules 1100a, 1100b, and 1100c can differ from each other, but embodiments are not limited to this. Furthermore, in several embodiments, the field of view of each of the plurality of camera modules 1100a, 1100b, and 1100c can differ from one another. For example, camera module 1100a can comprise an ultra-wide-angle camera, camera module 1100b can comprise a wide-angle camera, and camera module 1100c can comprise a telephoto camera, but embodiments are not limited to these. In this case, the optical lenses contained in each of the plurality of camera modules 1100a, 1100b, and 1100c can also differ from one another, but embodiments are not limited to these. In several embodiments, each of the plurality of camera modules 1100a, 1100b, and 1100c can be physically separate from one another. In other words, a detection area of ​​an image sensor 1142 cannot be shared and used by the plurality of camera modules 1100a, 1100b, and 1100c, but the independent image sensor 1142 can be arranged inside each of the plurality of camera modules 1100a, 1100b, and 1100c. Referring again to Fig. 15A, the application processor 1200 can comprise an image processing device 1210, a storage control unit 1220, and an internal memory 1230. The application processor 1200 and the majority of the camera modules 1100a, 1100b, and 1100c can be implemented separately, for example, as separate semiconductor chips. The image processing device 1210 can comprise a plurality of sub-image processors 1212a, 1212b, and 1212c, an image generator 1214, and a camera module control unit 1216. The image processing device 1210 can comprise the plurality of sub-image processors 1212a, 1212b, and 1212c, which correspond to the plurality of camera modules 1100a, 1100b, and 1100c. Image data generated by camera module 1100a can be provided to sub-image processor 1212a via an image signal line ISLa, image data generated by camera module 1100b can be provided to sub-image processor 1212b via an image signal line ISLb, and image data generated by camera module 1100c can be provided to sub-image processor 1212c via an image signal line ISLc. The transmission of the image data can be carried out using, for example, a CSI based on the MIPI, but embodiments are not limited to this. In one embodiment, at least one of the plurality of sub-image processors 1212a, 1212b, and 1212c can include the decoder (e.g., 230 in Fig. 1). If the corresponding camera modules 1100a, 1100b, and 1100c include the encoder (e.g., 120 in Fig. 1), the plurality of sub-image processors 1212a, 1212b, and 1212c can include the decoder 230 for decompressing the compressed image data. In several embodiments, the image processing device 200b in Fig. 13 can be implemented as at least one of the plurality of sub-image processors 1212a, 1212b, and 1212c, and at least one sub-image processor of the plurality of sub-image processors 1212a, 1212b, and 1212c can comprise the encoder (e.g., 250 in Fig. 13) and the decoder (e.g., 230 in Fig. 13). On the other hand, in several embodiments, a sub-image processor can be arranged to correspond to a plurality of camera modules. For example, sub-image processors 1212a and 1212c cannot be implemented separately as shown, but can be integrated into a single sub-image processor. The image data provided by camera module 1100a and camera module 1100c can then be provided to the integrated sub-image processor after being selected by a selection element (for example, a multiplexer). In this case, sub-image processor 1212b need not be integrated, and the image data must be received from camera module 1100b. Furthermore, in several embodiments, the image data generated by the camera module 1100a can be provided to the sub-image processor 1212a via the image signal line ISLa, the image data generated by the camera module 1100b can be provided to the sub-image processor 1212b via the image signal line ISLb, and the image data generated by the camera module 1100c can be provided to the sub-image processor 1212c via the image signal line ISLc. Additionally, the image data processed by the sub-image processor 1212b can be provided directly to the image generator 1214, but the image data processed by the sub-image processors 1212a and 1212c can be provided to the image generator 1214 after one is selected by a selection element (for example, a multiplexer). Each of the sub-image processors 1212a, 1212b, and 1212c can perform image processing on the image data provided by the majority of the camera modules 1100a, 1100b, and 1100c, such as bad pixel correction, autofocus correction, automatic white balance, automatic exposure correction (3A adjustment or setting), noise reduction, sharpening, gamma control, and pattern recovery or re-mosaic. In several embodiments, the re-mosaic signal processing can be provided to the sub-image processors 1212a, 1212b, and 1212c after being performed by each of the camera modules 1100a, 1100b, and 1100c. The image data processed by each of the sub-image processors 1212a, 1212b, and 1212c can be provided to the image generator 1214. The image generator 1214 can generate an output image using the image data provided by each of the sub-image processors 1212a, 1212b, and 1212c, according to the image generation information or a mode signal. The image generator 1214 can generate the output image by mixing at least one portion of the image data generated by the image processors 1212a, 1212b, and 1212c according to the image generation information or the mode signal. Furthermore, the image generator 1214 can generate the output image by selecting one of the image data generated by the image processors 1212a, 1212b, and 1212c according to the image generation information or the mode signal. In several embodiments, the image generation information can include a zoom signal or a zoom factor. Furthermore, in several embodiments, the mode signal can, for example, include a signal based on a mode selected by a user. If the image generation information includes the zoom signal (zoom factor), and the camera modules 1100a, 1100b, and 1100c have different fields of view, the image generator 1214 can perform different operating modes depending on the type of zoom signal. For example, if the zoom signal includes a first signal, the output image can be generated using the image data output from sub-image processor 1212a, the image data output from sub-image processor 1212c, and the image data output from sub-image processor 1212b.If the zoom signal includes a second signal that differs from the first signal, the output image can be generated using the image data output from sub-image processor 1212c, the image data output from sub-image processor 1212a, the image data output from sub-image processor 1212c, and the image data output from sub-image processor 1212b. If the zoom signal includes a third signal that differs from the first and second signals, the image generator 1214 cannot perform such image data mixing and can generate the output image by selecting one of the image data outputs from each of the sub-image processors 1212a, 1212b, and 1212c. However, embodiments are not limited thereto, and a method for processing the image data can be modified and implemented if necessary. In several embodiments, the image processing device 1210 can further comprise a selector which selects the output of the sub-image processors 1212a, 1212b, and 1212c and transmits it to the image generator 1214. In this case, the selector can perform different operating modes depending on the zoom signal or the zoom factor. For example, if the zoom signal includes a fourth signal (for example, the zoom ratio includes a first ratio), the selector can choose one of the outputs from the sub-image processors 1212a, 1212b, and 1212c and transmit it to the image generator 1214. Furthermore, if the zoom signal includes a fifth signal that differs from the fourth signal (for example, the zoom ratio includes a second ratio), the selector can sequentially transmit the output from sub-image processors 1212a, 1212b, and 1212c to image generator 1214 p (where p is a natural number equal to or greater than 2). For example, the selector can sequentially transmit the output from sub-image processor 1212b and the output from sub-image processor 1212c to image generator 1214. The image generator 1214 can then generate an output image by blending the sequentially provided output p. In this case, image processing, such as re-mosaicing, video / preview resolution reduction, gamma control, and high dynamic range (HDR) processing, can be performed beforehand by the image subprocessors 1212a, 1212b, and 1212c, and the processed image data can then be transmitted to the image generator 1214. Therefore, even if the processed image data is provided to the image generator 1214 as a signal line via the selector, the image mixing operation of the image generator 1214 can be performed at high speed. In several embodiments, the image generator 1214 can receive a plurality of image data, which have different exposure or recording durations, from at least one of the sub-image processors 1212a, 1212b, and 1212c, and perform the HDR processing on the plurality of image data, and can then generate the mixed image data with the increased contrast range. The camera module control unit 1216 can provide a control signal to each of the camera modules 1100a, 1100b, and 1100c. The control signal generated by the camera module control unit 1216 can be provided to the corresponding camera modules 1100a, 1100b, and 1100c via control signal lines CSLa, CSLb, and CSLc, which are separate from each other. Each of the majority of camera modules 1100a, 1100b, and 1100c can be designated as a master camera (for example, 1100b) according to the image generation information, including the zoom signal or the mode signal, and the other camera modules (for example, 1100a and 1100c) can be designated as subordinate cameras. This part of the information can be included in the control signal and can be provided to the respective camera modules 1100a, 1100b, and 1100c via the separate control signal lines CSL1, CSLb, and CSLc. Depending on the zoom factor or operating mode signal, the camera modules operating as the master camera and the subordinate cameras can be changed. For example, if the field of view of camera module 1100a is wider than that of camera module 1100b, and the zoom factor specifies a lower zoom ratio, camera module 1100a can operate as the master camera, and camera module 1100b can operate as the subordinate camera. Conversely, if the zoom factor specifies a high zoom ratio, camera module 1100b can act as the master camera, and camera module 1100a can operate as the subordinate camera. In several embodiments, the control signal provided by the camera module control unit 1216 to each of the camera modules 1100a, 1100b, and 1100c can include a sync activation signal. For example, if camera module 1100b is the master camera, and camera modules 1100a and 1100c are subordinate cameras, the camera module control unit 1216 can transmit the sync activation signal to camera module 1100b. Camera module 1100b, having received the sync activation signal, can generate a sync signal based on the provided sync activation signal and can provide the generated sync signal to camera modules 1100a and 1100c via a sync activation signal line (SSL). The camera module 1100b and the camera modules 1100a and 1100c can be adapted or synchronized to the sync signal and transmit the image data to the application processor 1200. In several embodiments, the control signal provided by the camera module control unit 1216 to the majority of the camera modules 1100a, 1100b, and 1100c can include the mode information according to the mode signal. Based on the mode information, the majority of the camera modules 1100a, 1100b, and 1100c can operate in a first operating mode and a second operating mode with respect to the acquisition speed. The majority of camera modules 1100a, 1100b, and 1100c can generate the image signal at a first speed (for example, generate the image signal at a first frame rate or frame frequency), encode the generated image signal at a second speed that is higher than the first speed (for example, encode the image signal at a second frame frequency that is higher than the first frame frequency), and transmit the encoded image signal to the application processor 1200. In this case, the second speed can be equal to or less than 30 times the first speed. The application processor 1200 can store the received image signal, i.e., the encoded image signal, in its internal memory 1230 or in external memory 1400 located outside the application processor 1200. It can then read and decode the encoded signal from the internal memory 1230 or external memory 1400 and display the image data generated based on the decoded image signal. For example, a corresponding sub-processor, which corresponds to most of the sub-processors 1212a, 1212b, and 1212c of the image processing device 1210, can perform decoding and image processing on the decoded image signal. Most of the camera modules 1100a, 1100b, and 1100c can, in the second operating mode, generate the image signal at a third speed lower than the first (for example, generate an image signal at a third frame rate lower than the first) and transmit the image signal to the application processor 1200. The image signal provided to the application processor 1200 can be an unencoded signal. The application processor 1200 can perform image processing on the received image signal or store the image signal in the internal memory 1230 or the external memory 1400. The PMIC 1300 can supply power, for example mains voltage, to most of the camera modules 1100a, 1100b, and 1100c. For example, the PMIC 1300 can supply a first power to camera module 1100a via the power signal line PSLa under the control of the application processor 1200, a second power to camera module 1100b via the power signal line PSLb, and a third power to camera module 1100c via the power signal line PSLc. The PMIC 1300 can generate current for each of the majority of camera modules 1100a, 1100b, and 1100c in response to a current control signal PCON from the application processor 1200, and can also set a current level. The current control signal PCON can include a current setting signal for each operating mode of the majority of camera modules 1100a, 1100b, and 1100c. For example, the operating mode can include a low-current mode, and in this case, the current control signal PCON can include information about a camera module operating in a low-current mode and a set current level. The current level supplied to each of the majority of camera modules 1100a, 1100b, and 1100c can be identical or different. Furthermore, the current level can be dynamically changed. Fig. 16 shows an electronic device 2000 according to one embodiment. The electronic device 2000 of Fig. 16 can include a mobile terminal. Referring to Fig. 16, the electronic device 2000 can comprise an application processor 2100, a camera module 2200, a working memory 2300, a memory 2400, a display device 2600, a user interface 2700, and a wireless transceiver 2500. The application processor 2100 can control the operating modes of the electronic device 2000 and can be implemented as a system-on-a-chip (SoC) that controls application programs, operating systems, or similar. The application processor 2100 can provide the image data supplied by the camera module 2200 to the display device 2600 or store it in memory 2400. The image sensor modules 100 and 100a described above with reference to Figures 1 to 11B can be applied to the camera module 2200. The camera module 2200 can include an encoder 2210, and the encoder 2210 can generate compressed data by compressing the image data and can transmit the compressed data to the application processor 2100. As described above, if at least some of the image data, for example, if at least one pixel group corresponds to an isolated area, the encoder 2210 can compress the pixel group using the HV equalization coding method. The application processor 2100 can include a decoder 2110, which decompresses the compressed data using a decoding method that corresponds to the compression method of the encoder 2210, for example, the encoding method. The decoder 2110 can decompress the compressed data received from the camera module 2200 and generate the recovered image data, and the application processor 2100 can perform image processing on the recovered image data. The application processor 2100 can display the recovered image data or the image-processed image data on the display device 2600 or store it in memory 2400. The 2300's main memory can be implemented as volatile memory, such as DRAM and SRAM, or as non-volatile memory, such as FeRAM, RRAM, and PRAM. The 2300's main memory can store programs and / or data that the 2100 application processor executes or processes. The Memory 2400 can be implemented as non-volatile memory, such as NAND flash memory or resistive memory, and can be provided, for example, as memory card(s), such as a multimedia card (MMC), embedded MMC (eMMC), secure card (SD), or microSD. The Memory 2400 can store image data received from the Camera Module 2200 or data processed or generated by the Application Processor 2100. The 2700 user interface can be implemented as various devices capable of receiving user input, such as a keyboard, a curtain keypad, an interactive control panel, a fingerprint sensor, and a microphone. The 2700 user interface can receive the user input and provide a signal corresponding to the received user input to the 2100 application processor. The wireless transceiver 2500 can include a transceiver 2510, a modem 2520, and an antenna 2530.

Claims

Image compression method, comprising: Receiving (S110) pixel values ​​from target pixels (T0-T3) of a target pixel group (TG) of image data (IDT) on which compression is to be performed, and reference values ​​from reference pixels (R11-R34) to be used in the compression of the target pixel group (TG); Determining (S120) an averaging direction (HD; VD) in which an averaging calculation is to be performed on the pixel values ​​of the target pixels (T0-T3); Generating averages (AVGh0, AVGh1; AVGv0, AVGv1) by averaging (S130) the pixel values ​​of the target pixels (T0-T3) in the averaging direction (HD; VD); Generating (S140) balancing information (BIF) based on the reference pixels (R11-R34), wherein the balancing information (BIF) contains compensation values ​​to be applied to the means (AVGh0, AVGh1; AVGv0, AVGv1); and generating (S150) a bitstream (BSa; BSb) based on the means (AVGh0, AVGh1;AVGv0, AVGv1), the balancing information (BIF), and a mode information, wherein the averaging (S130) includes calculating a first mean (AVGh0; AVGv0) and a second mean (AVGh1; AVGv1) for two pairs of target pixels in the averaging direction (HD; VD) among the target pixels (T0-T3), and wherein the bitstream (BSa; BSb) includes the first mean (AVGh0; AVGv0), the second mean (AVGh1; AVGv1), the balancing information (BIF), and the mode information.; Image compression method according to claim 1, wherein: the image data (IDT) are generated by an image sensor (110), the reference values ​​correspond to recovered pixel values ​​of the reference pixels (R11-R34) which were compressed before the target pixel group (TG), and a difference between at least one pixel value of the pixel values ​​and the reference values ​​is equal to or greater than a limit value. Image compression method according to claim 1, wherein generating (S140) the compensation information (BIF) comprises generating compensation information (BIF) for a first pair of target pixels (T0, T1; T0, T2) based on a difference value (Td0) for the first pair of target pixels (T0, T1; T0, T2) among the two pairs of target pixels (T0-T3) and a difference value (Rd0) for a first pair of reference pixels (R31, R32; R31, R33) among the reference pixels (R11-R34). Image compression method according to claim 3, wherein the compensation information (BIF) comprises a first selection value (b0) and a first slope value (S0) for the first pair of target pixels (T0, T1; T0, T2), wherein the first selection value (b0) indicates whether a difference value (Rd0) for the first pair of reference pixels (R31, R32; R31, R33) is to be applied to the first mean value (AVGh0, AVGv0), and the first slope value (S0) indicates a target pixel which has a larger pixel value below the first pair of target pixels (T0, T1; T0, T2). Image compression method according to claim 4, wherein, if the first selection value (b0) indicates that the difference value (Rd0) for the first pair of reference pixels (R31, R32; R31, R33) is not applied to the first mean value (AVGh0, AVGv0) for the first pair of target pixels (T0, T1; T0, T2), a preset default value is set which is to be applied to the first mean value (AVGh0, AVGv0). Image compression method according to claim 3, wherein the compensation information (BIF) comprises a selection value (b0; b1) and a slope value (S0, S1) for each of the two pairs of target pixels (T0-T3). Image compression method according to claim 3, wherein the compensation information (BIF) comprises a selection value (b0; b1) for each of the two pairs of target pixels (T0-T3) and a slope value (S) which is to be applied jointly to the two pairs of target pixels (T0-T3). Image compression method according to claim 1, wherein the bitstream (BSa; BSb) comprises a header and a data block (DB), and wherein information (D) about the averaging direction (HD; VD) is contained in the header or the data block (DB). Image sensor module (100, 100', 100a), comprising: an image sensor (110) configured to generate image data (IDT) containing a plurality of pixels (PX); an encoder (120) configured to generate compressed data (CDT) containing a plurality of bitstreams (BSa; BSb) by sequentially compressing the image data (IDT) generated by the image sensor (110) into units of pixel groups (PG), and to compress a target pixel group (TG) to be compressed according to at least one encoding method from a plurality of encoding methods; and an interface (130) which is configured to output the compressed data (CDT) to an external image processing device (200), wherein the encoder (120) is configured according to a first coding procedure from the majority of the coding procedures to perform the following: generating mean values ​​(AVGh0, AVGh1;AVGv0, AVGv1) based on pixel values ​​of target pixels (T0-T3), generating balancing information (BIF) which contains compensation values ​​to be applied to the means (AVGh0, AVGh1; AVGv0, AVGv1), and generating a bitstream (BSa; BSb) which contains the means (AVGh0, AVGh1; AVGv0, AVGv1), the balancing information (BIF), and mode information, wherein generating means (AVGh0, AVGh1; AVGv0, AVGv1) includes calculating a first means (AVGh0; AVGv0) and a second means (AVGh1; AVGv1) for two pairs of target pixels in an averaging direction (HD; VD) among the target pixels (T0-T3), and wherein the bitstream (BSa; BSb) includes the first mean (AVGh0; AVGv0), the second mean (AVGh1; AVGv1), the adjustment information (BIF), and the mode information.;

Citation Information

Patent Citations

  • Method, medium and apparatus effectively compressing and restoring edge position images

    US20080175498A1

  • Apparatus for encoding image, apparatus for decoding image and image sensor

    US20190373189A1