![]() ![]() The 12-bit data is packed: every 2 pixels occupy 3 bytes.įor example, if you have (2) 12-bit values and their hex values are 0xABC and 0xDEF, they will be stored in memory like this: 0xBC 0xFA 0xDE It is a MASK which can be used to detect whether a LUT is color, grayscale or unknown. This flag is set to avoid going through the LUT every time to detect whether the LUT contains only grayscale colors. LGRY_LUT_ISCOLOR If there is a LUT and this flag is set, then the LUT contains non-grayscale values. LGRY_LUT_ISGRAYSCALE If there is a LUT and this flag is set, then the LUT contains only grayscale values. In this case, the LUT needs to be saved in the file. If not set, the LUT cannot be regenerated from the other LGRY fields. LGRY_LUT_ISGENERATED If there is a LUT: If set, the LUT is generated from the valid LGRY-specific fields. LGRY_MINMAX_VALID if set, biMinVal and biMaxVal are valid LGRY_BITRANGE_VALID if set, biLowBit and biHighBit are valid LGRY_WINDOW_VALID if set, biWindowSize and biWindowCenter are valid LGRY_RESCALE_VALID if set, biRescaleIntercept and biRescaleSlope are valid This can be used to regenerate the LUT.ĭICOM rescale slope. This can be used to regenerate the LUT.ĭICOM rescale intercept. This can be used to regenerate the LUT.ĭICOM window center. Maximum value of the pixel data only (ignores the non-pixel bits).ĭICOM window width. Minimum value of the pixel data only (ignores the non-pixel bits). Low bit for the pixel data (0 <= biLowBit <= biHighBit <= biBitCount-1). biClrUsed should be equal to 1<<(biHighBit - biLowBit + 1) In this case, bmiColors contains the LUT. In this case, the bmiColors field is not used/needed. Specifies the vertical resolution, in pixels per meter.Ġ if the LUT is not present. Specifies the horizontal resolution, in pixels per meter. The formula for calculating this field properly is: biSizeImage = ((((biWidth * biBitCount) + 31) & ~31) / 8) * abs(biHeight) The size of each line needs to be a multiple of 4 bytes, so padding might be required. When using JPEG data, set the formattype to FORMAT_LGRYVideoInfo or ltmmFORMAT_LGRYVideoInfo. Should be mmioFOURCC('J','P','E','G') or mmioFOURCC('M','J','P','G') to indicate lossy JPEG data. Should be mmioFOURCC('L','j','p','g') to indicate lossless JPEG data. Should be mmioFOURCC('L','G','R','Y') to indicate uncompressed data. If 12, the data is in LEAD packing with 3 bytes for every 2 pixels. #16 bit image converter windows#This is the opposite of the Windows convention for uncompressed RGB images. Use positive value to specify a top-down image. Typedef struct tagLGRYINFOHEADER LGRYINFOHEADER, FAR*pLGRYINFOHEADER ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |