我有一个名为 RVG 的模糊光栅图像文件格式。它是由柯达的 carestream 传感器创建的。我希望能够打开它以通过网络软件(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?我知道光栅图像基本上是一个带有颜色信息的网格。也许我可以逐行阅读并导出?