我有一个名为RVG的模糊光栅图像文件格式。它由柯达的护理流传感器创建。我希望能够通过网络软件(ruby / rails)打开它。我们安装了RMagic并将其用于其他图像,但不支持此格式。这是示例图像的文件信息:
MediaStorage is 1.2.840.10008.5.1.4.1.1.1.3.1 [Digital Intra-oral X-Ray Image Storage - For Processing]
TransferSyntax is 1.2.840.10008.1.2.4.70 [JPEG Lossless, Non-Hierarchical, First-Order Prediction (Process 14 [Selection Value 1]): Default Transfer Syntax for Lossless JPEG Image Compression]
NumberOfDimensions: 2
Dimensions: (1200,1600,1)
SamplesPerPixel :1
BitsAllocated :16
BitsStored :12
HighBit :11
PixelRepresentation:0
ScalarType found :UINT16
PhotometricInterpretation: MONOCHROME2
PlanarConfiguration: 0
TransferSyntax: 1.2.840.10008.1.2.4.70
Origin: (0,0,0)
Spacing: (0.0185,0.0185,1)
DirectionCosines: (1,0,0,0,1,0)
Rescale Intercept/Slope: (0,1)
Orientation Label: AXIAL
有没有办法读取此图像并导出为jpg?我知道光栅图像基本上是一个带有颜色信息的网格。也许我可以逐行阅读并导出?