Re: Creating an XML file
Posted by
Wilson R S (AT) on
URL: http://imagej.273.s1.nabble.com/Creating-an-XML-file-tp3689647p3689652.html
I there, tanks for that.
Is there an easier way for example outputting as a text file and then
renaming and altering the file extension?
Rhod
-----Original Message-----
From: ImageJ Interest Group [mailto:
[hidden email]] On Behalf Of
Tomas Karlsson
Sent: 18 January 2010 15:45
To:
[hidden email]
Subject: Re: Creating an XML file
i dont think ImageJ includes own classes for reading and writing XML
files, instead you can use the java standard classes like:
javax.xml.stream.XMLStreamWriter; (thats at least how i do it in one off
my projects)
// Tomas
18 jan 2010 kl. 13.00 skrev Wilson R S (AT):
> I should have probably stated that its XML text not images.
> Script is below
>
>
> <?xml version="1.0" encoding="UTF-8"?>
> <ZereneStackerBatchScript>
> <WrittenBy value="Zerene Stacker 1.02 Build T200912272255" />
> <BatchQueue>
> <Batches length="1">
> <Batch>
> <Sources length="1">
> <Source value="C:\Documents and
> Settings\rswilson\Desktop\ImageJ\Fusion Testing\Method 2\Prcies
> 430.2\Sample 2\15 at 10\Registered" />
> </Sources>
> <ProjectDispositionCode value="101" />
> <Tasks length="2">
> <Task>
> <OutputImageDispositionCode value="4" />
> <OutputImagesDesignatedFolder value="C:\Documents and
> Settings\rswilson\Desktop\ImageJ\Fusion Testing\Method 2\Prcies
> 430.2\Sample 2\Output" />
> <Preferences>
> <AlignmentControl.AlignmentSettingsChanged value="false"
> />
> <AlignmentControl.AllowRotation value="true" />
> <AlignmentControl.AllowScale value="true" />
> <AlignmentControl.AllowShiftX value="true" />
> <AlignmentControl.AllowShiftY value="true" />
> <AlignmentControl.BrightnessSettingsChanged value="false"
> />
> <AlignmentControl.CorrectBrightness value="true" />
> <AlignmentControl.MaxRelDegRotation value="20.0" />
> <AlignmentControl.MaxRelPctScale value="20.0" />
> <AlignmentControl.MaxRelPctShiftX value="20.0" />
> <AlignmentControl.MaxRelPctShiftY value="20.0" />
> <AlignmentControl.Order.Automatic value="true" />
> <AlignmentControl.Order.NarrowFirst value="true" />
> <AllowReporting.UsageStatistics value="true" />
> <ColorManagement.InputOption
> value="Use_EXIF_and_DCF_rules" />
> <ColorManagement.InputOption.AssumedProfile value="sRGB
> IEC61966-2.1" />
> <ColorManagement.OutputOption value="CopyInput" />
> <DepthMapControl.ContrastThresholdLevel
> value="1.9073487E-7" />
> <DepthMapControl.ContrastThresholdPercentile value="0.0"
> />
> <DepthMapControl.EstimationRadius value="5" />
> <DepthMapControl.SmoothingRadius value="2" />
> <DepthMapControl.UseFixedContrastThresholdLevel
> value="false" />
> <DepthMapControl.UseFixedContrastThresholdPercentile
> value="true" />
> <FileIO.UseExternalTIFFReader value="false" />
> <OutputImageNaming.Template value="{datetime} ZS
{method}"
> />
> <Prerotation.Degrees value="0" />
> <Prerotation.Selected value="false" />
> <Presize.UserSetting.Scale value="1.0" />
> <Presize.UserSetting.Selected value="false" />
> <Presize.Working.Scale value="1.0" />
> <PyramidControl.GritSuppressionMethod value="1" />
> <PyramidControl.RetainUDRImage value="false" />
> <SaveImage.BitsPerColor value="16" />
> <SaveImage.CompressionQuality value="0.75" />
> <SaveImage.FileType value="tif" />
> <SaveImage.RescaleImageToAvoidOverflow value="false" />
> <SkewSequence.FirstImage.MaximumShiftXPct value="-3.0" />
> <SkewSequence.FirstImage.MaximumShiftYPct value="0.0" />
> <SkewSequence.LastImage.MaximumShiftXPct value="3.0" />
> <SkewSequence.LastImage.MaximumShiftYPct value="0.0" />
> <SkewSequence.NumberOfOutputImages value="3" />
> <SkewSequence.Selected value="false" />
> <StereoOrdering.LeftRightIndexSeparation value="1" />
> </Preferences>
> <TaskIndicatorCode value="1" />
> </Task>
> <Task>
> <OutputImageDispositionCode value="4" />
> <OutputImagesDesignatedFolder value="C:\Documents and
> Settings\rswilson\Desktop\ImageJ\Fusion Testing\Method 2\Prcies
> 430.2\Sample 2\Output" />
> <Preferences>
> <AlignmentControl.AlignmentSettingsChanged value="false"
> />
> <AlignmentControl.AllowRotation value="true" />
> <AlignmentControl.AllowScale value="true" />
> <AlignmentControl.AllowShiftX value="true" />
> <AlignmentControl.AllowShiftY value="true" />
> <AlignmentControl.BrightnessSettingsChanged value="false"
> />
> <AlignmentControl.CorrectBrightness value="true" />
> <AlignmentControl.MaxRelDegRotation value="20.0" />
> <AlignmentControl.MaxRelPctScale value="20.0" />
> <AlignmentControl.MaxRelPctShiftX value="20.0" />
> <AlignmentControl.MaxRelPctShiftY value="20.0" />
> <AlignmentControl.Order.Automatic value="true" />
> <AlignmentControl.Order.NarrowFirst value="true" />
> <AllowReporting.UsageStatistics value="true" />
> <ColorManagement.InputOption
> value="Use_EXIF_and_DCF_rules" />
> <ColorManagement.InputOption.AssumedProfile value="sRGB
> IEC61966-2.1" />
> <ColorManagement.OutputOption value="CopyInput" />
> <DepthMapControl.ContrastThresholdLevel
> value="1.9073487E-7" />
> <DepthMapControl.ContrastThresholdPercentile value="0.0"
> />
> <DepthMapControl.EstimationRadius value="5" />
> <DepthMapControl.SmoothingRadius value="2" />
> <DepthMapControl.UseFixedContrastThresholdLevel
> value="false" />
> <DepthMapControl.UseFixedContrastThresholdPercentile
> value="true" />
> <FileIO.UseExternalTIFFReader value="false" />
> <OutputImageNaming.Template value="{datetime} ZS
{method}"
> />
> <Prerotation.Degrees value="0" />
> <Prerotation.Selected value="false" />
> <Presize.UserSetting.Scale value="1.0" />
> <Presize.UserSetting.Selected value="false" />
> <Presize.Working.Scale value="1.0" />
> <PyramidControl.GritSuppressionMethod value="1" />
> <PyramidControl.RetainUDRImage value="false" />
> <SaveImage.BitsPerColor value="16" />
> <SaveImage.CompressionQuality value="0.75" />
> <SaveImage.FileType value="tif" />
> <SaveImage.RescaleImageToAvoidOverflow value="false" />
> <SkewSequence.FirstImage.MaximumShiftXPct value="-3.0" />
> <SkewSequence.FirstImage.MaximumShiftYPct value="0.0" />
> <SkewSequence.LastImage.MaximumShiftXPct value="3.0" />
> <SkewSequence.LastImage.MaximumShiftYPct value="0.0" />
> <SkewSequence.NumberOfOutputImages value="3" />
> <SkewSequence.Selected value="false" />
> <StereoOrdering.LeftRightIndexSeparation value="1" />
> </Preferences>
> <TaskIndicatorCode value="2" />
> </Task>
> </Tasks>
> </Batch>
> </Batches>
> </BatchQueue>
> </ZereneStackerBatchScript>