代码之家  ›  专栏  ›  技术社区  ›  Cate Daniel

图像文件为半xml?

  •  0
  • Cate Daniel  · 技术社区  · 5 年前

    所以我试图帮助某人从一个过时的兽医软件系统中导出数据。我们唯一没有找到一个干净的方法来做的就是扫描数据和图像。

    样本:

    --A little bit of binary data here--
    <ImageProcessData>
      <time>16.04.2020 17:02:43</time>
      <Resolution>
        <ImageResolutionData>
          <ResolutionData xResolution="0.127" yResolution="0.127">
            <DistanceUnit name="mm" maximumFractionUnits="1" conversionFactor="1.0" unitString="" />
          </ResolutionData>
        </ImageResolutionData>
      </Resolution>
      <Frame no="0">
        <ScaledOrientatedData>
          <Viewport originX="-1036.9510498046875" originY="0.0" width="3852.902099609375" height="2598.0" scale="0.39684373140335083" scaleType="adjust" imageWidth="1779" imageHeight="2598" />
          <Orientation rotate="0" flipHoriz="false" flipVert="false" />
        </ScaledOrientatedData>
        <AnnotationRoot class="de.or.dicom.viewer.annotations.drawings.AnnotationItemContainer">
          <SpecialItems>
            <AnnotationItem identifier="Anno-1587077201385-131166" class="de.or.dicom.viewer.annotations.drawings.ROI.ImageCutBorderItem" visible="false" rotatable="true" posX="0.0" posY="0.0" width="0.0" height="0.0" fixedSize="false" member="imageCutBorderItem">
              <AnnotationCS id="">
                <AnnotationInfo toolId="de.or.dicom.viewer.tools.annotation.InsertVhsAccordingToBuchanan" />
                <Color red="ff" green="cd" blue="64" alpha="ff" />
                <XorColor red="ff" green="0" blue="0" alpha="ff" use="false" />
              </AnnotationCS>
              <ReferencedItems />
            </AnnotationItem>
            <AnnotationItem identifier="Anno-1587077201385-131166" class="de.or.dicom.viewer.annotations.drawings.ROI.ImageCutBorderItem" visible="false" rotatable="true" posX="0.0" posY="0.0" width="0.0" height="0.0" fixedSize="false" member="imageCutBorderItem">
              <AnnotationCS id="">
                <AnnotationInfo toolId="de.or.dicom.viewer.tools.annotation.InsertVhsAccordingToBuchanan" />
                <Color red="ff" green="cd" blue="64" alpha="ff" />
                <XorColor red="ff" green="0" blue="0" alpha="ff" use="false" />
              </AnnotationCS>
              <ReferencedItems />
            </AnnotationItem>
          </SpecialItems>
          <svg xmlns="http://www.w3.org/2000/svg" fill-opacity="1" color-rendering="auto" color-interpolation="auto" text-rendering="auto" stroke="black" stroke-linecap="square" width="1779" stroke-miterlimit="10" shape-rendering="auto" stroke-opacity="1" fill="black" stroke-dasharray="none" font-weight="normal" stroke-width="1" height="2598" font-family="'Dialog'" font-style="normal" stroke-linejoin="miter" font-size="12px" stroke-dashoffset="0" image-rendering="auto">
            <!--Generated by the Batik Graphics2D SVG Generator-->
            <defs id="genericDefs" />
            <g />
          </svg>
        </AnnotationRoot>
        <ImageManip>
          <WindowLevelGamma AutoLevel="false" WindowWidth="3679" WindowCenter="1936" Gamma="1.0" Gamma2="1.0" />
        </ImageManip>
      </Frame>
    </ImageProcessData> 
    --More binary looking data that makes up the bulk of the file--
    

    有人见过这个吗?

    这有一半的可能是加密数据。这一切都应该是,但事实上,它并不都是,让我怀疑它不是。

    0 回复  |  直到 5 年前