The present technology relates to an image processing apparatus and method, more specifically, to an image processing apparatus and method by which increase in the load of encoding and decoding floating point-precision image data can be suppressed.
Conventionally, a large number of research findings on encoded representation of floating point-precision images have been reported so far (for example, refer to Non-patent Document 1 and Non-patent Document 2). For example, Patent Document 1 proposes a two-stage encoding method by which tone mapping is performed to create a low-bit depth image and a difference between the decoded image and the original image is encoded by another coder. In addition, Patent Document 2 discusses application of Lloyd-Max quantization instead of tone mapping to reduce the bit rate at the time of lossy compression.
However, according to these methods, the internal operational precision suffers in processes of encoding and decoding, which may lead to an overflow.
The present technology is proposed in light of such circumstances. An object of the present technology is to enable suppression of increase in the load of encoding and decoding floating point-precision image data.
One aspect of the present technology is an image processing apparatus including:
a data transform unit that transforms floating point-precision image data composed of a sign, an exponent, and a mantissa into integer-precision image data; and
an encoding unit that encodes the integer-precision image data obtained through transformation by the data transform unit.
The data transform unit may transform the image data into one integer-precision data in which data of the sign, data of the exponent, and data of the mantissa are arranged in this order from MSB to LSB for individual pixels.
The data transform unit may transform the image data into three integer-precision image data in which data of the sign, data of the exponent, and data of the mantissa are independent of one another for individual pixels.
The data transform unit may transform data of the sign, data of the exponent, and data of the mantissa into three independent integer-precision image data for leading pixels of pictures of the image data, and may transform data of the exponent and data of the mantissa into two independent integer-precision image data for the other pixels.
The data transform unit may further transform the integer-precision image data into differential data between components for individual pixels, and the encoding unit may encode the differential data obtained through transformation by the data transform unit.
When the encoding unit performs lossless encoding, the data transform unit may transform the floating point-precision image data into the integer-precision image data, when the encoding unit performs lossy encoding, the data transform unit may transform the floating point-precision image data into the value of floating point precision, when performing the lossless encoding, the encoding unit may encode the integer-precision image data obtained through transformation by the data transform unit, and when performing the lossy encoding, the encoding unit may encode the value of floating point precision obtained through transformation by the data transform unit.
The encoding unit may encode the image data by a JPEG2000 encoding method.
An addition unit that adds information on the data transformation by the data transform unit to the encoded data obtained through encoding by the encoding unit may be further included.
The encoding unit may encode the image data by a JPEG2000 encoding method, and the addition unit may add the information to a predetermined position in a JPX file format.
In addition, one aspect of the present technology is an image processing method including: transforming floating point-precision image data composed of a sign, an exponent, and a mantissa into integer-precision image data; and encoding the integer-precision image data obtained by transformation.
Another aspect of the present technology is an image processing apparatus including: a decoding unit that decodes encoded data of integer-precision image data obtained by transforming floating point-precision image data composed of a sign, an exponent, and a mantissa; and a data transform unit that transforms the integer-precision image data obtained through decoding by the decoding unit into the floating point-precision image data.
The data transform unit may divide the integer-precision image data into three data in accordance with bit numbers, and may set the same as data of the sign, data of the exponent, and data of the mantissa in order from MSB to LSB.
The data transform unit may set the integer-precision image data into any one of data of the sign, data of the exponent, and data of the mantissa.
The data transform unit may set the integer-precision image data as any one of data of the sign, data of the exponent, and data of the mantissa for leading pixels of pictures of the image data, and may set the integer-precision image data as any one of data of the exponent and data of the mantissa for the other pixels.
The decoding unit may decode encoded data of differential data between components of the integer-precision image data, and the data transform unit may transform the differential data obtained through decoding by the decoding unit into the integer-precision image data and further transforms the same into the floating point-precision image data.
When the encoded data is obtained by performing lossless encoding on integer-precision image data obtained by transforming floating point-precision image data composed of a sign, an exponent, and a mantissa, the decoding unit may perform lossless decoding on the encoded data, and the data transform unit may transform the integer-precision image data obtained through lossless decoding by the decoding unit into the floating point-precision image data, and when the encoded data is obtained by performing lossy encoding on the value of floating point precision obtained by transforming the floating point-precision image data composed of a sign, an exponent, and a mantissa, the decoding unit may perform lossy decoding on the encoded data, and the data transform unit may transform the value of floating point precision obtained through lossy decoding by the decoding unit into the floating point-precision image data.
The encoded data may be encoded by a JPEG2000 encoding method, and the decoding unit may decode the encoded data by a JPEG2000 decoding method.
An analysis unit that analyzes information on data transformation of image data added to the encoded data may be further included, and the data transform unit may transform the image data into the floating point-precision image data in accordance with the result of analysis by the analysis unit.
The encoded data may be encoded by the JPEG2000 encoding method, the analysis unit may analyze the information added to the encoded data in a predetermined position of a JPX file format, and the decoding unit may decode the encoded data by the JPEG2000 decoding method.
In addition, another aspect of the present technology is an image processing method including: decoding encoded data of integer-precision image data obtained by transforming floating point-precision image data composed of a sign, an exponent, and a mantissa; and transforming the integer-precision image data obtained by decoding into the floating point-precision image data.
In one aspect of the present technology, floating point-precision image data composed of a sign, an exponent, and a mantissa is transformed into integer-precision image data, and the integer-precision image data obtained by the transformation is encoded.
In another aspect of the present technology, integer-precision image data transformed from the floating point-precision image data composed of a code, an exponent, and a mantissa is decoded, and the integer-precision image data obtained by the decoding is transformed into floating point-precision image data.
According to the present technology, it is possible to process images. Also according to the present technology, it is possible to suppress increase in the load of encoding and decoding floating point-precision image data.
Modes for carrying out the present disclosure (hereinafter, called embodiments) will be explained below. Note that the explanations will be given in the following order:
1. First embodiment (image encoding apparatus)
2. Second embodiment (image decoding apparatus)
3. Third embodiment (image encoding apparatus)
4. Fourth embodiment (image decoding apparatus)
5. Fifth embodiment (image encoding apparatus)
6. Sixth embodiment (image decoding apparatus)
7. Seventh embodiment (computer)
Conventionally, when a subject image includes a bright part and a dark part, the bright part may have a phenomenon such as whiteout and the dark part may have a phenomenon such as black crushing. To prevent these phenomena, a plurality of multi-exposed images may be composited to create an image covering the bright part and the dark part. However, this method expands the dynamic range (high dynamic range). This requires a higher bit depth to represent the image, and the image data need to be changed from the conventional integer precision to the floating point precision.
For floating point-precision data representation, the IEEE 754-type floating point precision as an international standard is frequently used.
For example, the maximum absolute value of integer-precision representation of 32 bits (single precision) is 232. Meanwhile, the absolute value of floating point-precision representation is known to be extendable up to 2127 or the like. Therefore, the floating point-precision data can be represented in a very wide range and is suited to representation of high-dynamic range images. However, subjecting the data to image processing such as encoding may cause an overflow of operational precision due to its large data length.
For example, the actual floating point-precision data range is 2−24 to 2−14 in the case of denormalized representation with half-precision (16 bits), and 2−14 to 65.504 in the case of normalized representation with half-precision (16 bits). In addition, for example, the data range is ±2-149 to (1-2−23)×2-126 in the case of denormalized representation with single precision (32 bits), and ±2−126 to (2-2−23)×2127 in the case of normalized representation with single precision (32 bits). Further, for example, the data range is ±2−1074 to (1-2−52)×2−1022 in the case of denormalized representation with double precision (64 bits), and ±2−1022 to (2-2−52)×21023 in the case of normalized representation with double precision (64 bits). The normalized representation is used to handle general image data and the like, and the denormalized representation is used to represent extremely small values.
As described above, the floating point-precision data range is very wide, but when the floating point-precision data is subjected to lossless encoding, no data loss is permitted to ensure reversibility. This requires data length equal to or larger than the bit depth with absolute value of floating point precision. Therefore, the processing load of encoding and decoding increases to raise the possibility of an overflow. In other words, preventing such an overflow may result in extremely high hardware costs.
Accordingly, an image processing apparatus that encodes floating point-precision image data composed of a sign, an exponent, and a mantissa includes a data transform unit that transforms the floating point-precision image data into integer-precision image data and an encoding unit that encodes the integer-precision image data obtained through the conversion by the data transform unit. Specifically, to code the floating point-precision image data composed of a sign, an exponent, and a mantissa, the floating point-precision image data composed of a sign, an exponent, and a mantissa is transformed into the integer-precision image data, and the integer-precision image data obtained by the transformation is encoded.
This allows integer-precision encoding and suppresses the expansion of a data range. Accordingly, it is possible to suppress increase in the data length and the load of encoding the floating point-precision image data. Therefore, it is possible to suppress the occurrence of an overflow and suppress increase in hardware costs.
Incidentally, fixed point-precision image data can be processed in a manner similar to the integer-precision image data and descriptions thereof will be omitted. In the following description, only the integer-precision image data and the floating point-precision image data will be explained.
As illustrated in
The analysis unit 111 analyzes the input image data and determines whether the image data is of floating point precision. The analysis unit 111 controls the operations of the data transform unit 112 to the file format generation unit 117 on the basis of the determination result.
When the input image data is determined as being of floating point precision on the basis of the result of analysis by the analysis unit 111 (determination result), the data transform unit 112 transforms the floating point-precision image data into the integer-precision image data. The data transformation will be described later in detail. The data transform unit 112 supplies the integer-precision image data after the transformation to the wavelet transformation unit 113. Note that when the input image data is of integer precision, the data transform unit 112 omits data transformation and supplies the integer-precision image data as it is to the wavelet transformation unit 113.
The wavelet transformation unit 113 performs wavelet transformation on the supplied integer-precision image data. The wavelet transformation unit 113 performs a process of filtering the integer-precision image data with analysis filters to generate coefficient data of low-frequency components and high-frequency components, and repeats that process recursively on the generated coefficient data of low-frequency components. The wavelet transformation unit 113 has a horizontal analysis filter and a vertical analysis filter as the analysis filters, and performs the filtering process as described above both in the screen horizontal direction and the screen vertical direction. The wavelet transformation unit 113 repeats the filtering process a predetermined number of times. When the decomposition level reaches a predetermined level, the wavelet transformation unit 113 supplies the hierarchized coefficient data to the selection unit 114.
Note that the kind of the filters used by the wavelet transformation unit 113 can be arbitrarily set. For example, the wavelet transformation unit 113 may use 5/3 filters or 9/7 filters. In addition, the wavelet transformation unit 113 may use 5/3 filters for lossless encoding and may use 9/7 filters for lossy encoding, for example.
The selection unit 114 selects the supply destination of the coefficient data. In the case of performing lossy encoding, the selection unit 114 supplies the coefficient data to the quantization unit 115. In addition, in the case of performing lossless encoding, the selection unit 114 supplies the coefficient data to the EBCOT unit 116. That is, in this case, the quantization process is omitted.
Whether to perform lossless encoding or lossy encoding may be decided on the basis of arbitrary information. For example, whether to perform lossless encoding or lossy encoding may be preset by the user or the like or may be decided as appropriate depending on the image data, the processing load, or the like. Alternatively, the image encoding apparatus 100 may be capable of performing only either lossless encoding or lossy encoding. In that case, the selection unit 114 can be omitted (the quantization unit 115 can also be omitted in the case of lossless encoding).
The quantization unit 115 quantizes the coefficient data supplied by the selection unit 114 and supplies the same to the EBCOT unit 116.
The EBCOT unit 116 subjects the coefficient data supplied by the selection unit 114 or the quantization unit 115 to entropy encoding to generate encoded data. The EBCOT unit 116 supplies the generated encoded data to the file format generation unit 117.
The file format generation unit 117 uses the supplied encoded data to generate a file conforming to joint photographic experts group (JPEG) 2000 standards (JPEG2000 file) in accordance with the analysis result (determination result) of the analysis unit 111. For example, when the analysis unit 111 determines that the image data input into the image encoding apparatus 100 is of floating point precision, the file format generation unit 117 generates additional information indicative of that and adds the same to the JPEG2000 file including the encoded data supplied by the EBCOT unit 116. The JPEG2000 file and the additional information will be described later in detail.
The file format generation unit 117 outputs the generated file to the outside of the image encoding apparatus 100.
As illustrated in
However, the encoding method of the image encoding apparatus 100 can be arbitrarily set and is not limited to JPEG2000. That is, the internal configuration of the encoding unit 120 can be arbitrarily set and is not limited to the example of
The floating point-precision data value is represented by a sign (S), an exponent (E), and a mantissa (M) in an IEEE754 format. The 16-bit half-precision floating point is a format developed by Industrial Light & Magic, Ltd. and is characterized by supporting high dynamic ranges while requiring lower costs for hard discs and memories. The single-precision floating point format is used in several computer graphics environments such as OpenEXR, OpenGL, and D3DX, for example.
Among them, OpenEXR is frequently used as a de facto format for recent high-dynamic range images. As illustrated in
In the image encoding apparatus 100, the three data are handled as integer values. For example, the data transform unit 112 may transform the three data of sign (S), exponent (E), and mantissa (M) into integer-precision image data with the total of bit depths assigned thereto. That is, the data transform unit 112 may transform the floating point-precision image data composed of a sign, an exponent, and a mantissa into one integer-precision data in which sign data, exponent data, and mantissa data are aligned in this order from the MSB to the LSB for the individual pixels.
This case is equivalent to encoding integer data with a total 16-bit length per pixel. When the encoding unit 120 performs lossless compression, all the three values of sign (S), exponent (E), and mantissa (M) are guaranteed. That is, in this case, when the input image data with a horizontal H×vertical V resolution is composed of three components of RGB, the three components of the image data with a 16-bit depth (all the resolutions are horizontal H×vertical V=HV) are encoded as illustrated in
In addition, the data transform unit 112 may transform the three data of sign (S), exponent (E), mantissa (M) into respective integer-precision image data. Specifically, the data transform unit 112 may transform the floating point-precision image data composed of a sign, an exponent, and a mantissa into three integer-precision image data in which the sign data, the exponent data, and the mantissa data are independent from one another for the individual pixels.
In this case, as illustrated in
Incidentally, the sign (S) is highly correlative among the pixels. That is, the value of the sign (S) does not change among the pixel data in many cases. Accordingly, only the leading pixel (to be first processed) of a picture in the sign (S) may be encoded, and the encoding of the subsequent pixels in the sign (S) may be omitted. In that case, for decoding, the value of the sign (S) for the leading pixel of the picture can be applied to the values of the sign (S) for the other pixels of the picture.
Specifically, the data transform unit 112 may transform the sign data, the exponent data, and the mantissa data for the leading pixels of pictures of the image data into three independent integer-precision image data, and may transform the exponent data and the mantissa data for the other pixels to two independent integer-precision image data. Accordingly, it is possible to improve the encoding efficiency (suppress increase in the amount of encoding due to sign (S)).
In addition, in the foregoing description, the components of RGB are individually encoded. However, the encoding method is not limited to this but differential data between the components may be encoded, for example. Specifically, the data transform unit 112 may transform the floating point-precision image data into the integer-precision image data and further transform the same into the differential data between the components for the individual pixels. In that case, the encoding unit 120 encodes the differential data obtained through transformation by the data transform unit 112.
For example, X, Y, X′, and Y′ may be defined as in the following equations (1) to (4) and encoded:
X=(G−B)/2 (1)
Y=(G+B)/2 (2)
X′=(G−R)/2 (3)
Y′=(G+R)/2 (4)
In addition, for example, X and Y may be defined as in the foregoing equations (1) and (2), and X, Y and R may be encoded. That is, differential data may be generated from only some of the components. As a matter of course, the method of generating the differential data (the combination of components and the like) is not limited to the foregoing example but can be arbitrarily set. For instance, in the foregoing example, the differential data is determined with respect to G. Alternatively, the differential data may be determined with reference to B or R. In addition, for instance, the equations for determining the differential data may be different from the foregoing example. Further, the components may be different from RGB.
Next, the additional information will be explained. JPEG2000 is a compression codec technique but has many functions and allows the additional information to be filed together with the encoded result.
In JPEG2000 Part 1, the input image is basically set to be an integer-precision image. Accordingly, when a floating point-precision image is input, it is efficient to define the image in the JPX file format.
In Reader Requirements box (M.11.1) of
In addition, as an extended format, Pixel Format box (M11.7.8) may be defined as described in
As described above, the image encoding apparatus 100 transforms the floating point-precision image data into the integer-precision image data and encodes the same, thereby making it possible to suppress increase in the data length and load. In the case of lossless encoding in particular, it is possible to further suppress increase in the data length and load. In addition, in the case of lossy encoding, by suppressing the expansion of data length, it is possible to suppress reduction in the amount of information due to discarding, quantization, and the like and suppress reduction in image quality of the decoded image.
In addition, as described above, adding the information on the precision of the image data as additional information to the encoded data makes it easier to grasp the necessity of data transform at the time of decoding and the method thereof, and the like. That is, it is also possible to reduce the load of the decoding process.
Note that the method of adding the information on the precision of the image data can be arbitrarily set. For example, the additional information may be stored in any position of the file. In addition, the encoded data and the additional information may be individually filed and associated with each other. Further, the additional information may be stored in lower bits of the image data and then encoded.
With reference to the flowchart of
The analysis unit 111 analyzes the input image data at step S101, and determines whether the image data is of floating point precision at step S102. When it is determined that the floating point-precision image data is input, the process moves to step S103.
At step S103, the data transform unit 112 transforms the sign, the exponent, and the mantissa of the floating point-precision image data into integer-precision image data as described above. Upon completion of the transformation, the process moves to step S104. Meanwhile, when it is determined at step S102 that the input image is of integer precision, the process moves to step S104.
At step S104, the wavelet transformation unit 113 performs wavelet transformation on the image data.
At step S105, the selection unit 114 determines whether to encode the image data by the lossy method. When it is determined to perform lossy encoding, the process moves to step S106.
At step S106, the quantization unit 115 quantizes the coefficient data of the image data having been subjected to wavelet transformation. Upon completion of the quantization, the process moves to step S107. Meanwhile, when it is determined at step S105 to perform lossless encoding, the process moves to step S107.
At step S107, the EBCOT unit 116 subjects the coefficient data (or the quantized coefficient data) to entropy encoding.
At step S108, the file format generation unit 117 generates a file format including the information on the precision of the image data.
Upon completion of step S108, the image encoding process is terminated.
By performing the steps as described above, it is possible to suppress increase in the load of encoding and decoding the floating point-precision image data.
Next, decoding of the encoded data (code stream) generated by the image encoding apparatus 100 explained above in relation to the first embodiment will be explained.
If the floating point-precision image data is directly lossless-encoded, no data loss is permitted to guarantee reversibility. Therefore, the data length equal to or larger than the bit depth of absolute value of floating point precision is required. Accordingly, the load of the decoding process may increase to cause an overflow. In other words, this may lead to extremely high hardware costs to avoid the occurrence of an overflow.
Accordingly, the image processing apparatus includes a decoding unit that decodes the encoded data of the integer-precision image data obtained by transforming the floating point-precision image data composed of a sign, an exponent, and a mantissa, and a data transform unit that transforms the integer-precision image data obtained through decoding by the decoding unit into the floating point-precision image data. That is, the encoded data of the integer-precision image data obtained by transforming the floating point-precision image data composed of a sign, an exponent, and a mantissa is decoded, and the integer-precision image data obtained by decoding is transformed into the floating point-precision image data.
This allows integer-precision encoding and suppresses the extension of a data range. Accordingly, it is possible to suppress increase in the data length and the load of decoding process for obtaining the floating point-precision image data. Therefore, it is possible to suppress the occurrence of an overflow and increase in hardware costs.
Note that, in a manner similar to the first embodiment, the fixed point-precision image data can be processed in a manner similar to the integer-precision image data, and descriptions thereof will be omitted. In the following description, only the case where the image data is of integer precision and the case where the image data is of floating point precision will be explained.
The image decoding apparatus 200 subjects the integer-precision image data obtained by decoding to data transformation, and outputs the floating point-precision image data.
As illustrated in
The file format analysis unit 211 analyzes the file format of the input file (including the encoded data (code stream)), and determines from the additional information whether the image data before encoding was of floating point precision. The file format analysis unit 211 controls the operations of the data extraction unit 212 to the data transform unit 217 on the basis of the determination result.
For example, the input file is a JPEG2000 file, the image data is encoded by the JPEG2000 method, and the information on the precision of the image data is stored in the JPX file format as explained above with reference to
The data extraction unit 212 extracts the encoded data (code stream) from the input file on the basis of the result of analysis by the file format analysis unit 211 and the like, and supplies the same to the EBCOT unit 213.
The EBCOT unit 213 subjects the encoded data supplied by the data extraction unit 212 to entropy decoding by a method corresponding to the entropy encoding by the EBCOT unit 116, on the basis of the result of analysis by the file format analysis unit 211 and the like. The EBCOT unit 213 supplies coefficient data obtained by the entropy decoding to the selection unit 214.
The selection unit 214 selects the destination of supply of the coefficient data on the basis of the result of analysis by the file format analysis unit 211 and the like. When lossy encoding was performed by the image encoding apparatus 100, that is, when lossy decoding is to be performed, the selection unit 214 supplies the coefficient data to the inverse quantization unit 215. Meanwhile, when lossless encoding was performed by the image encoding apparatus 100, that is, when lossless decoding is to be performed, the selection unit 214 supplies the coefficient data to the wavelet inverse transform unit 216. That is, in this case, the inverse quantization process is omitted.
Alternatively, the image decoding apparatus 200 may be capable of performing only either lossless decoding or lossy decoding. In that case, the selection unit 214 can be omitted (the inverse quantization unit 215 can also be omitted in the case of lossless decoding).
The inverse quantization unit 215 subjects the quantized coefficient data supplied by the selection unit 214 to inverse quantization by a method corresponding to the quantization performed by the quantization unit 115, on the basis of the result of analysis by the file format analysis unit 211 and the like. The inverse quantization unit 215 supplies the inverse-quantized coefficient data to the wavelet inverse transform unit 216.
The wavelet inverse transform unit 216 subjects the coefficient data supplied by the selection unit 214 or the inverse quantization unit 215 to wavelet inverse transform by a method corresponding to the wavelet transformation performed by the wavelet transformation unit 113 on the basis of the result of analysis by the file format analysis unit 211 and the like. Accordingly, the integer-precision image data can be obtained.
When the image data before encoding is determined to be of floating point precision on the basis of the result of analysis by the file format analysis unit 211 and the like, the data transform unit 217 transforms the integer-precision image data into the floating point-precision image data. That is, the data transform unit 217 generates data of sign (S), data of exponent (E), and data of mantissa (M) from the integer-precision image data.
For example, when the integer-precision image data supplied by the wavelet inverse transform unit 216 is integer-precision image data with the total of bit depths assigned to the three data of sign (S), exponent (E), and mantissa (M) explained above with reference to
In this manner, the data transform unit 217 may separate the integer-precision image data into three data by the number of bits, and set the three data as the data of sign (S), the data of exponent (E), and the data of mantissa (M) from the MSB to the LSB.
In addition, when the integer-precision image data supplied by the wavelet inverse transform unit 216 is formed by transforming the three data of sign (S), exponent (E), and mantissa (M) into the three integer-precision image data as explained above with reference to
Criterion for determining to set the integer-precision image data as the data of sign, the data of exponent, or the data of mantissa can be set arbitrarily. For example, the determination may be made on the basis of the data length such that the data of sign (S) is set when the data length is 1 bit, the data of exponent (E) is set when the data length is 5 bits, and the data of mantissa (M) is set when the data length is 10 bits, or the like. Alternatively, for example, the determination may be made according to the data alignment (sequence) such that the initial image data is set as the data of sign (S), the next image data is set as the data of exponent (E), the still next image data is set as the data of mantissa (M), and the still next image data is set as the data of sign (S), or the like.
Further, for example, when the integer-precision image data supplied by the wavelet inverse transform unit 216 is formed by transforming the data of sign, the data of exponent, and the data of mantissa for the leading pixels of pictures of the image data into the three independent integer-precision image data and then transforming the data of exponent and the data of mantissa for the other pixels into the two independent integer-precision image data, the data transform unit 217 sets the three integer-precision image data as the data of sign (S), the data of exponent (E), and the data of mantissa (M) for the leading pixels of the pictures, and sets the two integer-precision image data for the other pixels as the data of exponent (E) and the data of mantissa (M).
Specifically, the data transform unit 217 may set the integer-precision image data as any one of the data of sign, the data of exponent, and the data of mantissa for the leading pixels of pictures of the image data according to the sequence, the data length, or the like, and may set the integer-precision image data as the data of exponent or the data of mantissa for the other pixels according to the sequence, the data length, or the like.
Also in this case, the criterion for determining whether to set the integer-precision image data as the data of sign, the data of exponent, or the data of mantissa can be set arbitrarily. For example, the determination may be made on the basis of the data length or the data alignment (sequence).
In addition, for example, when the integer-precision image data supplied by the wavelet inverse transform unit 216 is differential data between the components, the data transform unit 217 determines the individual component data from the differential data and transforms the individual component data into floating point precision.
For example, as explained above in relation to the first embodiment, when X, Y, X′, and Y′ for the image data of RGB components are defined as in the foregoing equations (1) to (4) and are encoded, the wavelet inverse transform unit 216 supplies X, Y, X′, and Y′. In this case, the data transform unit 217 determines R, G, and B by the following equations (5) to (7):
G=X+Y (5)
B=Y−X (6)
R=Y′−X′ (7)
Then, the data transform unit 217 transforms the respective integer-precision image data of components of R, G, and B into floating point precision.
In addition, for example, as explained above in relation to the first embodiment, when X and Y for the image data of RGB components are defined as in the foregoing equations (1) and (2) and X, Y, and R are encoded, the wavelet inverse transform unit 216 supplies X, Y, and R. In this case, the data transform unit 217 determines G and B by the foregoing equations (5) and (6) (R can be obtained without transformation).
Then, the data transform unit 217 transforms the respective integer-precision image data of components of R, G, and B into floating point precision.
That is, the data transform unit 217 may transform the differential data obtained by decoding into the integer-precision image data, and may further transform the same into the floating point-precision image data. As a matter of course, as explained above in relation to the first embodiment, the method of generating the differential data (the combination of components and the like) is not limited to the foregoing one but can be set arbitrarily. In any case, the data transform unit 217 transforms the data into floating point precision by a method corresponding to the transformation into integer precision by the data transform unit 112.
The data transform unit 217 outputs the floating point-precision image data after transformation to the outside of the image decoding apparatus 200. Note that when the image data before encoding was of integer precision, the data transform unit 217 omits data transformation, and outputs the supplied integer-precision image data as it is to the outside of the image decoding apparatus 200.
As illustrated in
As described above, the image decoding apparatus 200 decodes the encoded data obtained by transforming the floating point-precision image data into the integer-precision image data and encoding the same, and transforms the obtained integer-precision image data into floating point precision. This makes it possible to suppress increase in data length and load. In the case of lossless decoding in particular, it is possible to further suppress increase in data length and load. In addition, in the case of lossy decoding, suppressing increase in data length makes it possible to suppress reduction in the amount of information due to discarding, quantization, or the like and suppress reduction in image quality of the decoded image.
In addition, as described above, the information on the precision of the image data added to the encoded data is analyzed, which makes it easier to grasp the necessity of data transform at the time of decoding, the method thereof, and the like. That is, it is possible to reduce the load of decoding process.
Incidentally, the additional information analyzed by the file format analysis unit 211 (the information on the precision of the image data) may be stored in any position of the file. In addition, the additional information may be filed as a file different from the file of the encoded data. In that case, when the both files are associated with each other, the file format analysis unit 211 can obtain the additional information necessary for the file to be decoded in accordance with the association. Further, the additional information may be stored in the lower bits of the image data and encoded.
An example of flow of an image decoding process by the image decoding apparatus 200 illustrated in
At step S201, the file format analysis unit 211 analyzes the file format.
At step S202, the data extraction unit 212 extracts the encoded data of the image data from the input file on the basis of the analysis result at step S201.
At step S203, the EBCOT unit 213 subjects the extracted encoded data to entropy decoding on the basis of the analysis result at step S201.
At step S204, the selection unit 214 determines whether the encoded data decoded by the EBCOT unit 213 was encoded by the lossy method on the basis of the analysis result at step S201. When it is determined that the data was encoded by the lossy method, the process moves to step S205.
At step S205, the inverse quantization unit 215 subjects the coefficient data obtained by the entropy decoding to inverse quantization on the basis of the analysis result of step S201. Upon completion of the inverse quantization, the process moves to step S206. Meanwhile, it is determined at step S204 that the data was encoded by the lossless method, the process moves to step S206.
At step S206, the wavelet inverse transform unit 216 subjects the coefficient data to wavelet inverse transformation on the basis of the analysis result of step S201.
At step S207, the data transform unit 217 determines whether the image data before encoding is of floating point precision on the basis of the analysis result of step S201. When it is determined that the image data before encoding is of floating point precision, the process moves to step S208.
At step S208, the data transform unit 217 transforms the integer-precision image data into a sign (S), an exponent (E), and a mantissa (M) on the basis of the analysis result of step S201. Upon completion of the data transformation, the image decoding process is terminated. Meanwhile, it is determined at step S207 that the image data before encoding is of integer precision, the image decoding process is terminated.
By performing the steps as described above, it is possible to suppress increase in the load of decoding for obtaining the floating point-precision image data.
The transformation of the floating point-precision image data composed of a sign, an exponent, and a mantissa into integer precision has been explained so far. However, data transformation is not limited to this but the floating point-precision image data composed of a sign, an exponent, and a mantissa may be transformed into value h of floating point precision.
For instance, as in the example of
h=(−1)s×2(−14)×(M/210) (8)
In addition, when the exponent (E) does not take a value of zero, the floating point-precision image data can be transformed into the value h of floating point precision as described in the following equation (9):
h=(−1)s×2(E-15)×(1+)M/210) (9)
In this case, a configuration example of an image encoding apparatus is similar to that of the first embodiment. That is, the image encoding apparatus 100 illustrated in
In this case, however, the data transform unit 112 transforms the floating point-precision image data composed of a sign, an exponent, and a mantissa into the value h of floating point precision as in the foregoing equation (8) or (9). The wavelet transformation unit 113 to the file format generation unit 117 process the value h of floating point precision as image data. In addition, the file format generation unit 117 generates additional information and stores the same in the JPX file format, for example, in a manner similar to that of the first embodiment.
According to this, the image encoding apparatus 100 can encode the floating point-precision image data. In the case of lossy encoding in particular, even when the input data is of floating point precision, the effect of decreasing the bit depth due to discarding, rounding, or quantization is exerted on a predetermined bit precision and higher ones, thereby making it possible to suppress increase in the load of encoding process and avoid the occurrence of an overflow.
In addition, adding the information on the precision of the image data to the encoded data in a manner similar to the first embodiment makes it easier to grasp the necessity of data transform at the time of decoding, the method thereof, and the like. That is, it is possible to reduce the load of decoding process.
Incidentally, in a manner similar to the first embodiment, the fixed point-precision image data can be processed in a manner similar to the integer-precision image data, and descriptions thereof will be omitted. In the following description, only the case where the image data is of integer precision and the case where the image data is of floating point precision will be explained.
An example of flow of an image encoding process in this case will be explained with reference to the flowchart of
The analysis unit 111 analyzes the input image data at step S301, and determines whether the image data is of floating point precision at step S302. When it is determined that the floating point-precision image data is input, the process moves to step S303.
At step S303, the data transform unit 112 transforms the floating point-precision image data composed of a sign, an exponent, and a mantissa into the value h of floating point precision. Upon completion of the transformation, the process moves to step S304. Meanwhile, when it is determined at step S302 that the input image data is of integer precision, the process moves to step S304.
At step S304, the wavelet transformation unit 113 performs wavelet transformation on the image data.
At step S305, the selection unit 114 determines whether to encode the image data by the lossy method. When it is determined to perform lossy encoding, the process moves to step S306.
At step S306, the quantization unit 115 quantizes the coefficient data of the image data having been subjected to wavelet transformation. Upon completion of the quantization, the process moves to step S307. Meanwhile, when it is determined at step S305 to perform lossless encoding, the process moves to step S307.
At step S307, the EBCOT unit 116 subjects the coefficient data (or the quantized coefficient data) to entropy encoding.
At step S308, the file format generation unit 117 generates a file format including the information on the precision of the image data.
Upon completion of step S308, the image encoding process is terminated.
By performing the steps as described above, it is possible to suppress increase in the load of encoding and decoding the floating point-precision image data.
Next, decoding of the encoded data (code stream) generated by the image encoding apparatus 100 explained above in relation to the third embodiment will be explained.
In the foregoing example, as explained above in relation to the third embodiment, when the floating point-precision image data composed of a sign, an exponent, and a mantissa is transformed into the value h of floating point precision and encoded, the encoded data may be decoded and the obtained value h of floating point precision may be transformed into floating point-precision image data composed of a sign, an exponent, and a mantissa.
A configuration example of the image decoding apparatus in this case is similar to the case of the second embodiment. That is, the image decoding apparatus 200 illustrated in
In this case, however, the data transform unit 217 transforms the value h of floating point precision into the floating point-precision image data composed of a sign, an exponent, and a mantissa by using the foregoing equation (8) or (9). The file format analysis unit 211 to the wavelet inverse transform unit 216 perform the processes in a manner similar to the second embodiment.
As described above, the image decoding apparatus 200 decodes the encoded data obtained by transforming from the floating point-precision image data composed of a sign, an exponent, and a mantissa into the image data with the value h of floating point precision and encoding the same, and transforms the obtained value h of floating point precision into the sign, the exponent, and the mantissa. This makes it possible to suppress increase in data length and load. In the case of lossy decoding, the effect of decreasing the bit depth due to discarding, rounding, or quantization is exerted on a predetermined bit precision and higher ones, thereby making it possible to suppress increase in the load of encoding process and avoid the occurrence of an overflow.
In addition, as described above, the information on the precision of the image data added to the encoded data is analyzed, which makes it easier to grasp the necessity of data transform at the time of decoding, the method thereof, and the like. That is, it is possible to reduce the load of decoding process.
As explained above in relation to the first embodiment, in the case of lossless encoding, transforming the floating point-precision image data into the integer-precision image data and encoding the same makes it possible to further suppress increase in data length and load. In addition, as explained above in relation to the third embodiment, in the case of lossy encoding, even when the input image data is of floating point precision, the effect of decreasing the bit depth due to discarding, rounding, or quantization is exerted on a predetermined bit precision and higher ones, thereby making it possible to suppress increase in the load of encoding process and avoid the occurrence of an overflow.
Accordingly, in the case of lossless encoding, the image encoding apparatus may transform the floating point-precision image data into the integer-precision image data and encode the same, and in the case of lossy encoding, the image encoding apparatus may transform the floating point-precision image data into the value of floating point-precision and encode the same.
That is, when the encoding unit 120 performs lossless encoding, the data transform unit 112 transforms the floating point-precision image data into the integer-precision image data, and when the encoding unit 120 performs lossy encoding, the data transform unit 112 transforms the floating point-precision image data into the value of floating point-precision. In the case of performing lossless encoding, the encoding unit 120 may encode the integer-precision image data obtained through transformation by the data transform unit 112, and in the case of performing lossy encoding, the encoding unit 120 may encode the value of floating point-precision obtained through transformation by the data transform unit 112.
The selection unit 501 selects the supply destination of the input floating point-precision image data. For example, in the case of performing lossless encoding on the input floating point-precision image data, the selection unit 501 supplies the data to the lossless encoding unit 502, and in the case of performing lossy encoding on the data, the selection unit 501 supplies the data to the lossy encoding unit 503.
Whether to perform lossless encoding or lossy encoding may be decided on the basis of arbitrary information. For example, the decision may be made in advance by the user or the like or may be made as appropriate depending on the image data, the processing load, or the like.
The lossless encoding unit 502 performs lossless encoding on the image data supplied by the selection unit 501. At that time, the lossless encoding unit 502 transforms the floating point-precision image data composed of a sign, an exponent, and a mantissa into the integer-precision image data and encodes the same in a manner similar to the first embodiment. That is, the lossless encoding unit 502 is configured in a manner similar to the image encoding apparatus 100 illustrated in
The lossy encoding unit 503 performs lossy encoding on the image data supplied by the selection unit 501. At that time, the lossy encoding unit 503 transforms the floating point-precision image data composed of a sign, an exponent, and a mantissa into the image data with the value h of floating point precision and encodes the same in a manner similar to the third embodiment. That is, the lossy encoding unit 503 is configured in a manner similar to the image encoding apparatus 100 illustrated in
In such a manner as described above, the image encoding apparatus 500 can switch the method of data transformation and the encoding method between lossless encoding and lossy encoding. In either case, it is possible to suppress increase in the load of encoding process and avoid the occurrence of an overflow. In addition, the image encoding apparatus 500 adds the information on the precision of the image data as additional information to the encoded data. Accordingly, it is possible to grasp easily the necessity of data transform at the time of decoding and the method thereof, and the like, and reduce the load of decoding process.
An example of flow of an image encoding process in this case will be explained with reference to the flowchart of
At step S501, the selection unit 501 determines whether to encode the input image data by the lossless method. When it is determined to perform lossless encoding, the process moves to step S502.
At step S502, the lossless encoding unit 502 transforms the sign (S), the exponent (E), and the mantissa (M) of floating point precision of the input image data into the integer-precision image data and performs lossless encoding on the same. Step S502 is similar to that in the image encoding process explained above in relation to the flow chart of
Upon completion of step S502, the image encoding process is terminated.
Meanwhile, it is determined at step S501 to perform lossy encoding, the process moves to step S503.
At step S503, the lossy encoding unit 503 transforms the sign (S), the exponent (E), and the mantissa (M) of floating point precision of the input image data into the image data with the value h of floating point precision, and performs lossy encoding on the same. Step S503 is similar to that in the image encoding process explained above with reference to the flowchart of
Upon completion of step S503, the image encoding process is terminated.
By performing the steps as described above, it is possible to suppress increase in the load of encoding and decoding the floating point-precision image data.
Next, decoding of the encoded data (code stream) generated by the image encoding apparatus 500 explained above in relation to the fifth embodiment will be explained.
In correspondence with the image encoding apparatus 500, in the case of lossless decoding, the image decoding apparatus may decode the encoded data, transform the obtained integer-precision image data into the floating point-precision image data, and in the case of lossy decoding, the image decoding apparatus may decode the encoded data and transform the obtained image data with the value h of floating point precision into the floating point-precision image data composed of a sign, an exponent, and a mantissa.
That is, when the encoded data is obtained by performing lossless encoding on the integer-precision image data obtained by transforming the floating point-precision image data composed of a sign, an exponent, and a mantissa, the decoding unit 220 may perform lossless decoding on the encoded data, and the data transform unit 112 may transform the integer-precision image data obtained through lossless decoding by the decoding unit 220 into the floating point-precision image data. In addition, when the encoded data is obtained by performing lossy encoding on the value of floating point precision obtained by transforming the floating point-precision image data composed of a sign, an exponent, and a mantissa, the decoding unit 220 performs lossy decoding on the encoded data and the data trans form unit 217 may transform the value of floating point precision obtained through lossy decoding by the decoding unit 220 into the floating point-precision image data.
The selection unit 601 selects the supply destination of the file including the input encoded data. For example, in the case of performing lossless decoding on the encoded data, the selection unit 601 supplies the input file to the lossless decoding unit 602. In addition, in the case of performing lossy decoding on the encoded data, the selection unit 601 supplies the input file to the lossy decoding unit 603.
The lossless decoding unit 602 performs lossless decoding on the file supplied by the selection unit 601. At that time, in a manner similar to the second embodiment, the lossless decoding unit 602 extracts the encoded data from the file and performs lossless decoding on the same, and transforms the obtained integer-precision image data into the floating point-precision image data composed of a sign, an exponent, and a mantissa. That is, the lossless decoding unit 602 is configured in a manner similar to the image decoding apparatus 200 illustrated in
The lossy decoding unit 603 performs lossy decoding on the file supplied by the selection unit 601. At that time, in a manner similar to the fourth embodiment, the lossy decoding unit 603 extracts the encoded data from the file and performs lossy decoding on the same, and transforms the obtained image data with the value h of floating point precision into the floating point-precision image data composed of a sign, an exponent, and a mantissa. That is, the lossy decoding unit 603 is configured in a manner similar to the image decoding apparatus 200 illustrated
In such a manner as described above, the image decoding apparatus 600 can switch the method of data transformation between lossless decoding and lossy decoding. In either case, it is possible to suppress increase in the load of encoding process and avoid the occurrence of an overflow. In addition, the image decoding apparatus 600 refers to the information on the precision of the image data added as additional information to the encoded data to perform decoding on the basis of the information. Accordingly, it is possible to grasp easily the necessity of data transform at the time of decoding and the method thereof, and the like, and reduce the load of decoding process.
An example of flow of an image decoding process in this case will be explained with reference to the flowchart of
At step S601, the selection unit 601 determines whether the encoded data in the input file was encoded by the lossless method. When it is determined that the encoded data was lossless-encoded, the process moves to step S602.
At step S602, the lossless decoding unit 602 extracts the encoded data from the input file, performs lossless decoding on the encoded data, and transforms the obtained integer-precision image data into floating point-precision image data composed of a sign (S), an exponent (E), and a mantissa (M). Step S602 is similar to that in the image decoding process explained above with reference to the flowchart of
Upon completion of step S602, the image decoding process is terminated. Meanwhile, it is determined at step S601 that the data was lossy-encoded, the process moves to step S603.
At step S603, the lossy decoding unit 603 extracts the encoded data from the input file, performs lossy decoding on the encoded data, and transforms the obtained image data with the value h of floating point precision into the floating point-precision image data composed of a sign (S), an exponent (E), and a mantissa (M). However, lossy decoding is performed here and thus step S204 described in
Upon completion of step S603, the image decoding process is terminated.
By performing the steps as described above, it is possible to suppress increase in the load of decoding the floating point-precision image data.
The foregoing series of processes may be executed by hardware or software. To execute the series of processes by software, programs constituting the software are installed in a computer. The computer here may be a computer incorporated into dedicated hardware or a general-purpose personal computer that can execute various functions by installing various programs or the like, for example.
In a computer 700 illustrated in
An input/output interface 710 is also connected to the bus 704. An input unit 711, an output unit 712, a storage unit 713, a communication unit 714, and a drive 715 are connected to the input/output interface 710.
The input unit 711 is composed of a keyboard, a mouse, a microphone, a touch panel, an input terminal, and the like, for example. The output unit 712 is composed of a display, a speaker, an output terminal, and the like, for example. The storage unit 713 is composed of a hard disc, a RAM disc, a non-volatile memory, and the like, for example. The communication unit 714 is composed of a network interface, for example. The drive 715 drives a magnetic disc, an optical disc, a magneto-optical disc, or a removable medium 721 such as a semiconductor memory.
In the thus configured computer, the foregoing series of processes is carried out by the CPU 701 loading the programs stored in the storage unit 713 via the input/output interface 710 and the bus 704 into the RAM 703 and executing the same, for example. The RAM 703 stores as appropriate data necessary for the CPU 701 to execute various processes.
The programs executed by the computer (CPU 701) can be recorded in a removable medium 721 as a package medium or the like, for example. In that case, the program can be installed in the storage unit 713 via the input/output interface 710 by attaching the removable medium 721 to the drive 715.
In addition, the programs can also be provided via a wired or wireless transmission medium such as a local area network, the Internet, or digital satellite broadcasting. In that case, the programs can be received by the communication unit 714 and installed into the storage unit 713.
Besides, the programs can be installed in advance in the ROM 702 or the storage unit 713.
Note that the programs executed by the computer may be programs processed in time series in accordance with the sequence explained herein or may be programs processed in parallel or at necessary timing such as upon receipt of an invocation.
In addition, the steps describing the programs recorded in a recording medium explained herein include not only processes performed in time series in accordance with the described sequence but also processes that are not necessarily performed in time series but are executed in parallel or individually.
In addition, the foregoing steps can be performed in the apparatuses described above or any apparatus other than the apparatuses described above. In that case, the apparatuses to perform the steps have functions necessary for performing the steps (functional blocks or the like). In addition, the information necessary for performing the steps is transmitted as appropriate to the apparatuses.
In addition, the system explained herein refers to an assembly of constituent elements (apparatuses, modules (components), and the like). However, all of the constituent elements may not necessarily be in the same housing. Therefore, the system may be composed of a plurality of apparatuses stored in separate housings and connected via a network or one apparatus with a plurality of modules stored in one housing.
In addition, one apparatus (or one processing unit) explained above as may be divided into a plurality of apparatuses (or a plurality of processing units). Conversely, a plurality of apparatuses (or a plurality of processing units) explained above may be collectively configured as one apparatus (or one processing unit). In addition, as a matter of course, any component other than those described above may be added to the apparatuses (or the processing units). Further, some components of an apparatus (or a processing unit) may be included in another apparatus (or another processing unit) as far as the entire system is configured and operated in substantially the same manner.
Preferred embodiments of the present disclosure have been explained so far in detail with reference to the attached drawings. However, the technical scope of the present disclosure is not limited to the foregoing examples. Apparently, those with general knowledge in the technical field of the present disclosure could conceive various alternation examples or modification examples within the scope of the technical idea described in the claims, and these examples are naturally considered to fall within the technical scope of the present disclosure.
For example, the present technology can be configured as a cloud computing system in which one function is shared among a plurality of apparatuses via a network and is performed in coordination with one another.
In addition, the steps explained in the foregoing flowcharts may be executed by one apparatus or may be shared and executed by a plurality of apparatuses.
Further, when one step includes a plurality of processes, the plurality of processes included in the one step may be executed by one apparatus or may be shared and executed by a plurality of apparatuses.
In addition, the present technology is not limited to the foregoing one but may be implemented as any component mounted in such an apparatus or apparatuses constituting a system, for example, a processor as a system large scale integration (LSI), a module using a plurality of processors, a unit using a plurality of modules, a set with still other functions added to the unit (that is, some of components of the apparatus), or the like.
For example, the present technology is applicable to, for example, equipment and devices using images captured by imaging elements (for example, complementary metal oxide semiconductor (CMOS) image sensors, charge coupled device (CCD) image sensors, and others), compression circuits writing images from imaging elements into memories, digital still cameras, video camcorders, medical image cameras, medical endoscopes, monitoring cameras, digital cinema shooting cameras, binocular image cameras, multiocular image cameras, memory reduction circuits on LSI chips, authoring tools on personal computers or their software modules, and the like.
Incidentally, the present technology can also be configured as follows:
(1) An Image Processing Apparatus Including:
a data transform unit that transforms floating point-precision image data composed of a sign, an exponent, and a mantissa into integer-precision image data; and
an encoding unit that encodes the integer-precision image data obtained through transformation by the data transform unit.
(2) The image processing apparatus according to (1), wherein the data transform unit transforms the image data into one integer-precision data in which data of the sign, data of the exponent, and data of the mantissa are arranged in this order from MSB to LSB for individual pixels.
(3) The image processing apparatus according to (1) or (2), wherein the data transform unit transforms the image data into three integer-precision image data in which data of the sign, data of the exponent, and data of the mantissa are independent of one another for individual pixels.
(4) The image processing apparatus according to any one of (1) to (3), wherein the data transform unit transforms data of the sign, data of the exponent, and data of the mantissa into three independent integer-precision image data for leading pixels of pictures of the image data, and transforms data of the exponent and data of the mantissa into two independent integer-precision image data for the other pixels.
(5) The image processing apparatus according to any one of (1) to (4), wherein
the data transform unit further transforms the integer-precision image data into differential data between components for individual pixels, and
the encoding unit encodes the differential data obtained through transformation by the data transform unit.
(6) The image processing apparatus according to any one of (1) to (5), wherein
when the encoding unit performs lossless encoding, the data transform unit transforms the floating point-precision image data into the integer-precision image data,
when the encoding unit performs lossy encoding, the data transform unit transforms the floating point-precision image data into the value of floating point precision,
when performing the lossless encoding, the encoding unit encodes the integer-precision image data obtained through transformation by the data transform unit, and
when performing the lossy encoding, the encoding unit encodes the value of floating point precision obtained through transformation by the data transform unit.
(7) The image processing apparatus according to any one of (1) to (6), wherein the encoding unit encodes the image data by a JPEG2000 encoding method.
(8) The image processing apparatus according to any one of (1) to (7), further including an addition unit that adds information on the data transformation by the data transform unit to the encoded data obtained through encoding by the encoding unit.
(9) The image processing apparatus according to (8), wherein
the encoding unit encodes the image data by a JPEG2000 encoding method, and
the addition unit adds the information to a predetermined position in a JPX file format.
(10) An image processing method including:
transforming floating point-precision image data composed of a sign, an exponent, and a mantissa into integer-precision image data; and
encoding the integer-precision image data obtained by transformation.
(11) An image processing apparatus including:
a decoding unit that decodes encoded data of integer-precision image data obtained by transforming floating point-precision image data composed of a sign, an exponent, and a mantissa; and
a data transform unit that transforms the integer-precision image data obtained through decoding by the decoding unit into the floating point-precision image data.
(12) The image processing apparatus according to (11), wherein the data transform unit divides the integer-precision image data into three data in accordance with bit numbers, and sets the same as data of the sign, data of the exponent, and data of the mantissa in order from MSB to LSB.
(13) The image processing apparatus according to (11) or (12), wherein the data transform unit sets the integer-precision image data into any one of data of the sign, data of the exponent, and data of the mantissa.
(14) The image processing apparatus according to any one of (11) to (13), wherein the data transform unit sets the integer-precision image data as any one of data of the sign, data of the exponent, and data of the mantissa for leading pixels of pictures of the image data, and sets the integer-precision image data as any one of data of the exponent and data of the mantissa for the other pixels.
(15) The image processing apparatus according to any one of (11) to (14), wherein
the decoding unit decodes encoded data of differential data between components of the integer-precision image data, and
the data trans form unit transforms the differential data obtained through decoding by the decoding unit into the integer-precision image data and further transforms the same into the floating point-precision image data.
(16) The image processing apparatus according to any one of (11) to (15), wherein
when the encoded data is obtained by performing lossless encoding on integer-precision image data obtained by transforming floating point-precision image data composed of a sign, an exponent, and a mantissa, the decoding unit performs lossless decoding on the encoded data, and the data transform unit transforms the integer-precision image data obtained through lossless decoding by the decoding unit into the floating point-precision image data, and
when the encoded data is obtained by performing lossy encoding on the value of floating point precision obtained by transforming the floating point-precision image data composed of a sign, an exponent, and a mantissa, the decoding unit performs lossy decoding on the encoded data, and the data transform unit transforms the value of floating point precision obtained through lossy decoding by the decoding unit into the floating point-precision image data.
(17) The image processing apparatus according to any one of (11) to (16), wherein
the encoded data is encoded by a JPEG2000 encoding method, and
the decoding unit decodes the encoded data by a JPEG2000 decoding method.
(18) The image processing apparatus according to any one of (11) to (17), further including an analysis unit that analyzes information on data transformation of image data added to the encoded data, wherein
the data transform unit transforms the image data into the floating point-precision image data in accordance with the result of analysis by the analysis unit.
(19) The image processing apparatus according to (18), wherein
the encoded data is encoded by the JPEG2000 encoding method,
the analysis unit analyzes the information added to the encoded data in a predetermined position of a JPX file format, and
the decoding unit decodes the encoded data by the JPEG2000 decoding method.
(20) An image processing method including:
decoding encoded data of integer-precision image data obtained by transforming floating point-precision image data composed of a sign, an exponent, and a mantissa; and
transforming the integer-precision image data obtained by decoding into the floating point-precision image data.
Number | Date | Country | Kind |
---|---|---|---|
2014-137439 | Jul 2014 | JP | national |
This application is a U.S. National Phase of International Patent Application No. PCT/JP2015/067982 filed on Jun. 23, 2015, which claims priority benefit of Japanese Patent Application No. JP 2014-137439 filed in the Japan Patent Office on Jul. 3, 2014. Each of the above-referenced applications is hereby incorporated herein by reference in its entirety.
Filing Document | Filing Date | Country | Kind |
---|---|---|---|
PCT/JP2015/067982 | 6/23/2015 | WO | 00 |