<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";
mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
{mso-style-priority:99;
mso-style-link:"Balloon Text Char";
margin:0in;
margin-bottom:.0001pt;
font-size:8.0pt;
font-family:"Tahoma","sans-serif";
mso-fareast-language:EN-US;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri","sans-serif";
color:windowtext;}
span.BalloonTextChar
{mso-style-name:"Balloon Text Char";
mso-style-priority:99;
mso-style-link:"Balloon Text";
font-family:"Tahoma","sans-serif";}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri","sans-serif";
mso-fareast-language:EN-US;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-GB" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-US">Hi all,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">I was wondering if anybody has ever seen this kind of error on conversion:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><a href="https://drive.google.com/file/d/0BzfJAGNfrgieUFlnbHdsWmkwdU0/view?usp=sharing">https://drive.google.com/file/d/0BzfJAGNfrgieUFlnbHdsWmkwdU0/view?usp=sharing</a><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">If you look at the second channel you see the image is offset by a small amount and there’s bad data at the top, and then on the third image more shift and more bad data. The raw vsi file I’m converting is here:
<a href="https://drive.google.com/file/d/0BzfJAGNfrgieSG9DZ08tRjFfOVU/view?usp=sharing">
https://drive.google.com/file/d/0BzfJAGNfrgieSG9DZ08tRjFfOVU/view?usp=sharing</a><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">I’m using the ImageConverter.java code but I’ve adapted it a little such that I can use it in a loop without it exiting. Available here:
<a href="https://drive.google.com/file/d/0BzfJAGNfrgieWTJyQ0FtdUpnZzQ/view?usp=sharing">
https://drive.google.com/file/d/0BzfJAGNfrgieWTJyQ0FtdUpnZzQ/view?usp=sharing</a><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Essentially all I’ve done is renamed the class and made it public such that I can use it from my code, and I’ve added a function to reset the fields once it’s finished such that it starts fresh without issue. I use this
code in a loop to convert a number of files and pass the args as follows:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> String[] args = new String[5];<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> args[0] = "-series";<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> args[1] = Integer.toString(series);<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> args[2] = "-overwrite";<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> args[3] = in_id;<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> args[4] = out_id;<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> imgCon.testConvert(writer, args);<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">where in and out id’s are the in and out paths, and the series variable is an int for the series I want to grab.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Any pointers would be much appreciated.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Thanks<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Neil<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
</div>
<br>
<hr>
<font face="Arial" color="Gray" size="1"><br>
This e-mail message (including any attachments) is for the sole use of<br>
the intended recipient(s) and may contain confidential and privileged<br>
information. If the reader of this message is not the intended<br>
recipient, you are hereby notified that any dissemination, distribution<br>
or copying of this message (including any attachments) is strictly<br>
prohibited.<br>
<br>
If you have received this message in error, please contact<br>
the sender by reply e-mail message and destroy all copies of the<br>
original message (including attachments).<br>
</font>
</body>
</html>