[prev in list] [next in list] [prev in thread] [next in thread] 

List:       insight-users
Subject:    [Insight-users] Fwd: [ITK Community] Problem with LandmarkWarping2.cxx in ITK-4.4.0?
From:       Seth Parker <csparker247 () gmail ! com>
Date:       2013-11-22 21:30:06
Message-ID: CAB9Z4jhPH8MgP-Az+deGsi71tBYUPt0NyO+3J1msj5O8k9fLKA () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Realized this got sent to insight-dev's which I'm not a part of, so it
bounced it back. Forwarding so that it's tracked in insight-users.

---------- Forwarded message ----------
From: Seth Parker <csparker247@gmail.com>
Date: Fri, Nov 22, 2013 at 3:49 PM
Subject: Re: [Insight-users] [ITK Community] Problem with
LandmarkWarping2.cxx in ITK-4.4.0?
To: "Johnson, Hans J" <hans-johnson@uiowa.edu>
Cc: Luis Ibanez <luis.ibanez@kitware.com>, ITK <insight-developers@itk.org>


You'll have to forgive me; I'm a video editor by trade and have been at a
steep learning curve to get this far into the troubleshooting. Let me make
sure I understand. Essentially, the disparate ppi's in my images are
causing my issue. If, just by example, all of my images were set to the
same ppi, things should work correctly. My use of JPEGs caused the
difference of outputs that I was interpreting as correct behavior.

Assuming this is the concept, I went back and ran a test from my original
TIF images (they're in the 100MB range so I wasn't using them before). I
changed everything to 72 ppi in Photoshop without resampling so that every
image had the same dimensions as before, then ran LandmarkWarping2 again.
This time, 4.3.2 and 4.4.0 did produce the same output, but it didn't
produce a correct output, at least not how I understand Landmark Warping
should work. This is what that output yielded:
https://dl.dropboxusercontent.com/u/13015285/Chad-4.4.0-005.jpg (Note: This
is a jpeg made from the output tif, just to cut down on filesize).

It seems as if the output is at the appropriate scale, but it obviously is
not in the expected spot. Am I just missing something in the concept of
landmark warping, did I not understand that voxel spacing concept, or is
there something else going on?

Thank you all so much for your help. I'm going to try the suggested
"SetOutputParameters" change, too, to see what happens.

*Seth Parker*
Video Editor | The University of Kentucky Vis Center
www.csethparker.com | www.vis.uky.edu


On Fri, Nov 22, 2013 at 2:10 PM, Johnson, Hans J <hans-johnson@uiowa.edu>wrote:

>  Luis:  THANK YOU FOR LOOKING INTO THIS!
> Seth:  I think you were depending on a "bug" in the JPEGIO code to get the
> desired behavior you wanted.
>  ===============
>
>  As an experiment, if you convert each of your images to tif format and
> run the 4.3.2 version of the code, you will have consistent results with
> both ITK4.3.2 and ITK4.4.0.
>
>  1-StaticImage.jpg*   <-- 5412 × 7216 pixels, 304.79 pixels/inch
> 2-MovingImage.jpg* <-- 4800 × 5434 pixels, 72 pixels/inch
> LandmarkWarped-ITK4.3.2.jpg <-- 5412 × 7216 pixels, 72 pixels/inch
> LandmarkWarped-ITK4.4.0.jpg  <-- 5412 × 7216 pixels, 72 pixels/inch
>
>  For the resampling stage of the output you are propagating the input
> image voxel counts, but not the input image voxel spacings.
>
>  My guess is that you want to use "SetOutputParametersFromImage(const
> ImageBaseType *image);" and pass the input image for your call to the
> "itk::ResampleImageFilter".
>
>  This will result in an output image with the same pixels/inch as your
> input image.
>
>  Hans
>
>
>   From: Luis Ibanez <luis.ibanez@kitware.com>
> Date: Friday, November 22, 2013 12:03 PM
> To: Hans Johnson <hans-johnson@uiowa.edu>
>
> Subject: Re: [Insight-users] [ITK Community] Problem with
> LandmarkWarping2.cxx in ITK-4.4.0?
>
>   Hans,
>
>  Here is what I found:
>
>  aleph $ git bisect bad
>
>  Bisecting: 0 revisions left to test after this (roughly 0 steps)
> [b7c71079a70b33a4018e132b31ee2fc0a36b8129] ENH: JPEG IO now writes and
> reads spacing, similar to the TIFF IO (ITK-3023)
> aleph $ git log --oneline -1
> b7c7107 ENH: JPEG IO now writes and reads spacing, similar to the TIFF IO
> (ITK-3023)
>
>
>  aleph $ git bisect bad
>
>
>  b7c71079a70b33a4018e132b31ee2fc0a36b8129 is the first bad commit
>
>
>  commit b7c71079a70b33a4018e132b31ee2fc0a36b8129
> Author: Marco Feuerstein <marco.feuerstein@gmail.com>
> Date:   Tue Apr 30 12:01:29 2013 +0200
>
>      ENH: JPEG IO now writes and reads spacing, similar to the TIFF IO
> (ITK-3023)
>
>     Change-Id: I5f40e226040233672eed3dcdec1a5b9007899574
>
>  :040000 040000 61ddc795f11d33660d4aba2c5d74059256b0ab6f
> c3402b325c2329b6ab88919270e0b98b70402c0d MModules
>
>
>
>  So, it seems that the problem is not with the Landmark Deformation
> itself,
> but
> with the fact that we now put spacing information in the resulting output
> jpg image.
>
>
> https://github.com/Kitware/ITK/commit/b7c71079a70b33a4018e132b31ee2fc0a36b8129
>
>
>     Luis
>
>
>
> On Fri, Nov 22, 2013 at 12:26 PM, Luis Ibanez <luis.ibanez@kitware.com>wrote:
>
>> Hans,
>>
>>  I'm playing with the git bisect, while I sit in long meetings...
>> I'm making progress (5 steps to go).
>>
>>  Will let you know how far I get.
>>
>>     Thanks
>>
>>        Luis
>>
>>
>> On Fri, Nov 22, 2013 at 11:11 AM, Johnson, Hans J <hans-johnson@uiowa.edu
>> > wrote:
>>
>>>  Seth,
>>>
>>>  We discussed this at our t-con this morning.  I'll try to look at it
>>> this weekend.
>>>
>>>  Hans
>>>
>>>
>>>   From: Seth Parker <csparker247@gmail.com>
>>> Date: Friday, November 22, 2013 10:09 AM
>>> To: Matt McCormick <matt.mccormick@kitware.com>
>>> Cc: "insight-users@itk.org" <insight-users@itk.org>
>>> Subject: Re: [Insight-users] [ITK Community] Problem with
>>> LandmarkWarping2.cxx in ITK-4.4.0?
>>>
>>>   I had to rebuild ITK as I don't think the tests were built unless I
>>> also included the cmake flag ITK_BUILD_ALL_MODULES. Maybe not. Anyway, I
>>> ran the LandmarkWarping test and it reported that it passed. I would be
>>> inclined to think that there was something just wrong with my landmarks
>>> file if it weren't for the fact that the exact same file produces expected
>>> results on an older version.
>>>
>>> *Seth Parker*
>>> Video Editor | The University of Kentucky Vis Center
>>> www.csethparker.com | www.vis.uky.edu
>>>
>>>
>>> On Thu, Nov 21, 2013 at 4:51 PM, Matt McCormick <
>>> matt.mccormick@kitware.com> wrote:
>>>
>>>> Hi Seth,
>>>>
>>>> To run the test associated with the examples, set
>>>>
>>>>   BUILD_EXAMPLES  ON
>>>>
>>>> in the ITK CMake configuration, build, and run
>>>>
>>>>   ctest -R LandmarkWarping
>>>>
>>>> on the command line in the ITK build directory.
>>>>
>>>> Thanks,
>>>> Matt
>>>>
>>>>
>>>>  On Thu, Nov 21, 2013 at 4:20 PM, Seth Parker <csparker247@gmail.com>wrote:
>>>>
>>>>>  Ok, so a couple of updates. First, I checked and I had tested on
>>>>> Ubuntu 13.04 (Raring Ringtail) and had compiled using GCC 4.7.3. ITK 4.4.0
>>>>> gave me the same issues with LandmarkWarping2 as on OSX.
>>>>>
>>>>> On OSX, I had never noticed that Xcode's gcc was using an llvm
>>>>> backend. Clang is supposedly the same way. Also, I've already update all of
>>>>> our computers to OSX 10.9 as we hardly ever do any ITK or development work,
>>>>> so going back to Mountain Lion isn't really an option. However, I did spend
>>>>> today compiling GNU GCC (4.8.2) on my machine and I recompiled ITK 4.4.0
>>>>> using it instead of Xcode's "GCC". After a successful build, it also
>>>>> exhibits the same issue with LandmarkWarping2. I'm not sure of other
>>>>> variables, but I think it's safe to assume this isn't a compiler issue.
>>>>>
>>>>> In terms of using the built-in tests, I can find one
>>>>> LandmarkWarping2Test.png under the testing data, but I'm unclear on which
>>>>> of the other images I should register it against (or against it).
>>>>>
>>>>> *Seth Parker*
>>>>> Video Editor | The University of Kentucky Vis Center
>>>>> www.csethparker.com | www.vis.uky.edu
>>>>>
>>>>>
>>>>>   On Wed, Nov 20, 2013 at 9:04 PM, Bradley Lowekamp <brad@lowekamp.net
>>>>> > wrote:
>>>>>
>>>>>> Hello,
>>>>>>
>>>>>>  I am just curious if it's a compiler issue or one with the code.
>>>>>>
>>>>>>  It's been a while since there has been a bonified version of GNU
>>>>>> GCC with Xcode. I am running OS 10.8.5, check this out:
>>>>>>
>>>>>>  $ /usr/bin/gcc -v
>>>>>> Using built-in specs.
>>>>>> Target: i686-apple-darwin11
>>>>>> Configured with:
>>>>>> /private/var/tmp/llvmgcc42/llvmgcc42-2336.11~182/src/configure
>>>>>> --disable-checking --enable-werror
>>>>>> --prefix=/Applications/Xcode.app/Contents/Developer/usr/llvm-gcc-4.2
>>>>>> --mandir=/share/man --enable-languages=c,objc,c++,obj-c++
>>>>>> --program-prefix=llvm- --program-transform-name=/^[cg][^.-]*$/s/$/-4.2/
>>>>>> --with-slibdir=/usr/lib --build=i686-apple-darwin11
>>>>>> --enable-llvm=/private/var/tmp/llvmgcc42/llvmgcc42-2336.11~182/dst-llvmCore/Developer/usr/local
>>>>>> --program-prefix=i686-apple-darwin11- --host=x86_64-apple-darwin11
>>>>>> --target=i686-apple-darwin11 --with-gxx-include-dir=/usr/include/c++/4.2.1
>>>>>> Thread model: posix
>>>>>> gcc version 4.2.1 (Based on Apple Inc. build 5658) (LLVM build
>>>>>> 2336.11.00)
>>>>>>
>>>>>>  That is llvm masquerading as gcc.
>>>>>>
>>>>>>  There is also clang as an option. I'd give that a try. Upgrading to
>>>>>> Macericks is going to another set of problems.
>>>>>>
>>>>>>  Check out the information here:
>>>>>>
>>>>>> http://public.kitware.com/pipermail/community/2013-November/000188.html
>>>>>>
>>>>>>  This may be a good opportunity to run git-bisect, if the issue can
>>>>>> be reproduced.
>>>>>>
>>>>>>  Brad
>>>>>>
>>>>>>  On Nov 20, 2013, at 8:57 PM, Seth Parker <csparker247@gmail.com>
>>>>>> wrote:
>>>>>>
>>>>>>  I did try on Ubuntu (Raring Ringtail). It's been a while for
>>>>>> Ubuntu, but I believe I used gcc for it. Definitely gcc on OSX. I haven't
>>>>>> tried recompiling since upgrading to Mavericks, but I was running Mountain
>>>>>> Lion before and Xcode 4.6.
>>>>>>
>>>>>> It hadn't occurred to me to check the built-in examples. I should be
>>>>>> able to test that tomorrow.
>>>>>>
>>>>>> Sent from my phone
>>>>>> On Nov 20, 2013 8:27 PM, "Bradley Lowekamp" <brad@lowekamp.net>
>>>>>> wrote:
>>>>>>
>>>>>>> Hello,
>>>>>>>
>>>>>>>  Have you tried other systems? Linux perhaps?
>>>>>>>
>>>>>>>  What compiler are you using? What OS? What XCode version?
>>>>>>>
>>>>>>>  Is this issue reproducible with a test or example already in ITK?
>>>>>>>
>>>>>>>  Thanks,
>>>>>>> Brad
>>>>>>>
>>>>>>>  On Nov 20, 2013, at 4:02 PM, Seth Parker <csparker247@gmail.com>
>>>>>>> wrote:
>>>>>>>
>>>>>>>  Was attempting to use ITK-4.4.0 LandmarkWarping2 on OSX and was
>>>>>>> getting completely incorrect results. The moving image was roughly in the
>>>>>>> correct spot of the first landmark, but was at a completely incorrect
>>>>>>> scale. I reverted to 4.3.2 and had no issues at all. I'm fine using 4.3.2,
>>>>>>> but thought I would mention it here in case anyone has a solution or
>>>>>>> pointer.
>>>>>>>
>>>>>>> You can download examples of the input and output files here:
>>>>>>> https://dl.dropboxusercontent.com/u/13015285/LandmarkWarping.zip
>>>>>>>
>>>>>>> *Seth Parker*
>>>>>>> Video Editor | The University of Kentucky Vis Center
>>>>>>> www.csethparker.com | www.vis.uky.edu
>>>>>>>  _____________________________________
>>>>>>> Powered by www.kitware.com
>>>>>>>
>>>>>>> Visit other Kitware open-source projects at
>>>>>>> http://www.kitware.com/opensource/opensource.html
>>>>>>>
>>>>>>> Kitware offers ITK Training Courses, for more information visit:
>>>>>>> http://www.kitware.com/products/protraining.php
>>>>>>>
>>>>>>> Please keep messages on-topic and check the ITK FAQ at:
>>>>>>> http://www.itk.org/Wiki/ITK_FAQ
>>>>>>>
>>>>>>> Follow this link to subscribe/unsubscribe:
>>>>>>> http://www.itk.org/mailman/listinfo/insight-users
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>
>>>>>
>>>>> _____________________________________
>>>>> Powered by www.kitware.com
>>>>>
>>>>> Visit other Kitware open-source projects at
>>>>> http://www.kitware.com/opensource/opensource.html
>>>>>
>>>>> Kitware offers ITK Training Courses, for more information visit:
>>>>> http://www.kitware.com/products/protraining.php
>>>>>
>>>>> Please keep messages on-topic and check the ITK FAQ at:
>>>>> http://www.itk.org/Wiki/ITK_FAQ
>>>>>
>>>>> Follow this link to subscribe/unsubscribe:
>>>>> http://www.itk.org/mailman/listinfo/insight-users
>>>>>
>>>>>  _______________________________________________
>>>>> Community mailing list
>>>>> Community@itk.org
>>>>> http://public.kitware.com/cgi-bin/mailman/listinfo/community
>>>>>
>>>>>
>>>>
>>>
>>>
>>> ------------------------------
>>> Notice: This UI Health Care e-mail (including attachments) is covered by
>>> the Electronic Communications Privacy Act, 18 U.S.C. 2510-2521, is
>>> confidential and may be legally privileged.  If you are not the intended
>>> recipient, you are hereby notified that any retention, dissemination,
>>> distribution, or copying of this communication is strictly prohibited.
>>> Please reply to the sender that you have received the message in error,
>>> then delete it.  Thank you.
>>> ------------------------------
>>>
>>> _____________________________________
>>> Powered by www.kitware.com
>>>
>>> Visit other Kitware open-source projects at
>>> http://www.kitware.com/opensource/opensource.html
>>>
>>> Kitware offers ITK Training Courses, for more information visit:
>>> http://www.kitware.com/products/protraining.php
>>>
>>> Please keep messages on-topic and check the ITK FAQ at:
>>> http://www.itk.org/Wiki/ITK_FAQ
>>>
>>> Follow this link to subscribe/unsubscribe:
>>> http://www.itk.org/mailman/listinfo/insight-users
>>>
>>>
>>
>
>
> ------------------------------
> Notice: This UI Health Care e-mail (including attachments) is covered by
> the Electronic Communications Privacy Act, 18 U.S.C. 2510-2521, is
> confidential and may be legally privileged.  If you are not the intended
> recipient, you are hereby notified that any retention, dissemination,
> distribution, or copying of this communication is strictly prohibited.
> Please reply to the sender that you have received the message in error,
> then delete it.  Thank you.
> ------------------------------
>

[Attachment #5 (text/html)]

<div dir="ltr">Realized this got sent to insight-dev&#39;s which I&#39;m not a part \
of, so it bounced it back. Forwarding so that it&#39;s tracked in \
insight-users.<div><div><br></div><div class="gmail_quote">---------- Forwarded \
                message ----------<br>
From: <b class="gmail_sendername">Seth Parker</b> <span dir="ltr">&lt;<a \
href="mailto:csparker247@gmail.com">csparker247@gmail.com</a>&gt;</span><br>Date: \
Fri, Nov 22, 2013 at 3:49 PM<br>Subject: Re: [Insight-users] [ITK Community] Problem \
                with LandmarkWarping2.cxx in ITK-4.4.0?<br>
To: &quot;Johnson, Hans J&quot; &lt;<a \
href="mailto:hans-johnson@uiowa.edu">hans-johnson@uiowa.edu</a>&gt;<br>Cc: Luis \
Ibanez &lt;<a href="mailto:luis.ibanez@kitware.com">luis.ibanez@kitware.com</a>&gt;, \
ITK &lt;<a href="mailto:insight-developers@itk.org">insight-developers@itk.org</a>&gt;<br>
 <br><br><div dir="ltr">You&#39;ll have to forgive me; I&#39;m a video editor by \
trade and have been at a steep learning curve to get this far into the \
troubleshooting. Let me make sure I understand. Essentially, the disparate ppi&#39;s \
in my images are causing my issue. If, just by example, all of my images were set to \
the same ppi, things should work correctly. My use of JPEGs caused the difference of \
outputs that I was interpreting as correct behavior.<br>

<br>Assuming this is the concept, I went back and ran a test from my original TIF \
images (they&#39;re in the 100MB range so I wasn&#39;t using them before). I changed \
everything to 72 ppi in Photoshop without resampling so that every image had the same \
dimensions as before, then ran LandmarkWarping2 again. This time, 4.3.2 and 4.4.0 did \
produce the same output, but it didn&#39;t produce a correct output, at least not how \
I understand Landmark Warping should work. This is what that output yielded: <a \
href="https://dl.dropboxusercontent.com/u/13015285/Chad-4.4.0-005.jpg" \
target="_blank">https://dl.dropboxusercontent.com/u/13015285/Chad-4.4.0-005.jpg</a> \
(Note: This is a jpeg made from the output tif, just to cut down on filesize).<br>

<br>It seems as if the output is at the appropriate scale, but it obviously is not in \
the expected spot. Am I just missing something in the concept of landmark warping, \
did I not understand that voxel spacing concept, or is there something else going \
on?<br>

<br>Thank you all so much for your help. I&#39;m going to try the suggested \
&quot;SetOutputParameters&quot; change, too, to see what happens.</div><div \
class="gmail_extra"><div class="im"><br clear="all"><div><b>Seth Parker</b><div> \
Video Editor | The University of Kentucky Vis Center<br> <a \
href="http://www.csethparker.com" target="_blank">www.csethparker.com</a> | <a \
href="http://www.vis.uky.edu" target="_blank">www.vis.uky.edu</a></div></div> \
<br><br></div><div><div class="h5"><div class="gmail_quote">On Fri, Nov 22, 2013 at \
2:10 PM, Johnson, Hans J <span dir="ltr">&lt;<a href="mailto:hans-johnson@uiowa.edu" \
target="_blank">hans-johnson@uiowa.edu</a>&gt;</span> wrote:<br> <blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex">




<div style="font-size:14px;font-family:Calibri,sans-serif;word-wrap:break-word">
<div>Luis:  THANK YOU FOR LOOKING INTO THIS!</div>
<div>Seth:  I think you were depending on a &quot;bug&quot; in the JPEGIO code to get \
the desired behavior you wanted.</div> <div>
<div>===============</div>
</div>
<div><br>
</div>
<div>As an experiment, if you convert each of your images to tif format and run the \
4.3.2 version of the code, you will have consistent results with both ITK4.3.2 and \
ITK4.4.0.</div> <div><br>
</div>
<div>
<div>1-StaticImage.jpg*   &lt;-- 5412 × 7216 pixels, 304.79 pixels/inch</div>
<div>2-MovingImage.jpg* &lt;-- 4800 × 5434 pixels, 72 pixels/inch</div>
<div>LandmarkWarped-ITK4.3.2.jpg &lt;-- 5412 × 7216 pixels, 72 pixels/inch</div>
<div>LandmarkWarped-ITK4.4.0.jpg  &lt;-- 5412 × 7216 pixels, 72 pixels/inch</div>
</div>
<div><br>
</div>
<div>For the resampling stage of the output you are propagating the input image voxel \
counts, but not the input image voxel spacings.</div> <div><br>
</div>
<div>My guess is that you want to use &quot;SetOutputParametersFromImage(const \
ImageBaseType *image);&quot; and pass the input image for your call to the \
&quot;itk::ResampleImageFilter&quot;.</div> <div><br>
</div>
<div>This will result in an output image with the same pixels/inch as your input \
image.</div> <div><br>
</div>
<div>Hans</div>
<div><br>
</div>
<div><br>
</div>
<span>
<div style="border-right:medium \
none;padding-right:0in;padding-left:0in;padding-top:3pt;text-align:left;font-size:11pt;border-bottom:medium \
none;font-family:Calibri;border-top:#b5c4df 1pt \
solid;padding-bottom:0in;border-left:medium none">


<span style="font-weight:bold">From: </span>Luis Ibanez &lt;<a \
href="mailto:luis.ibanez@kitware.com" \
target="_blank">luis.ibanez@kitware.com</a>&gt;<br> <span \
style="font-weight:bold">Date: </span>Friday, November 22, 2013 12:03 PM<br> <span \
style="font-weight:bold">To: </span>Hans Johnson &lt;<a \
href="mailto:hans-johnson@uiowa.edu" \
target="_blank">hans-johnson@uiowa.edu</a>&gt;<div><br> <span \
style="font-weight:bold">Subject: </span>Re: [Insight-users] [ITK Community] Problem \
with LandmarkWarping2.cxx in ITK-4.4.0?<br> </div></div>
<div><br>
</div>
<div>
<div>
<div dir="ltr">Hans,
<div><br>
</div>
<div>Here is what I found:</div>
<div><br>
</div>
<div>
<div>aleph $ git bisect bad</div>
<div><br>
</div>
<div>Bisecting: 0 revisions left to test after this (roughly 0 steps)</div>
<div>[b7c71079a70b33a4018e132b31ee2fc0a36b8129] ENH: JPEG IO now writes and reads \
spacing, similar to the TIFF IO (ITK-3023)</div> <div>aleph $ git log --oneline \
-1</div> <div>b7c7107 ENH: JPEG IO now writes and reads spacing, similar to the TIFF \
IO (ITK-3023)</div> <div><br>
</div>
<div><br>
</div>
<div>aleph $ git bisect bad</div>
<div><br>
</div>
<div><br>
</div>
<div>b7c71079a70b33a4018e132b31ee2fc0a36b8129 is the first bad commit</div>
<div><br>
</div>
<div><br>
</div>
<div>commit b7c71079a70b33a4018e132b31ee2fc0a36b8129</div>
<div>Author: Marco Feuerstein &lt;<a href="mailto:marco.feuerstein@gmail.com" \
target="_blank">marco.feuerstein@gmail.com</a>&gt;</div> <div>Date:   Tue Apr 30 \
12:01:29 2013 +0200</div> <div><br>
</div>
<div>    ENH: JPEG IO now writes and reads spacing, similar to the TIFF IO \
(ITK-3023)</div> <div>    </div>
<div>    Change-Id: I5f40e226040233672eed3dcdec1a5b9007899574</div>
<div><br>
</div>
<div>:040000 040000 61ddc795f11d33660d4aba2c5d74059256b0ab6f \
c3402b325c2329b6ab88919270e0b98b70402c0d M<span \
style="white-space:pre-wrap"></span>Modules</div> </div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div>So, it seems that the problem is not with the Landmark Deformation itself,</div>
<div>but </div>
<div>with the fact that we now put spacing information in the resulting output jpg \
image.</div> <div><br>
</div>
<div><a href="https://github.com/Kitware/ITK/commit/b7c71079a70b33a4018e132b31ee2fc0a36b8129" \
target="_blank">https://github.com/Kitware/ITK/commit/b7c71079a70b33a4018e132b31ee2fc0a36b8129</a><br>
 </div>
<div><br>
</div>
<div><br>
</div>
<div>   Luis</div>
<div><br>
</div>
</div>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">On Fri, Nov 22, 2013 at 12:26 PM, Luis Ibanez <span \
dir="ltr"> &lt;<a href="mailto:luis.ibanez@kitware.com" \
target="_blank">luis.ibanez@kitware.com</a>&gt;</span> wrote:<br> <blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"> <div dir="ltr">Hans,
<div><br>
</div>
<div>I&#39;m playing with the git bisect, while I sit in long meetings...</div>
<div>I&#39;m making progress (5 steps to go).</div>
<div><br>
</div>
<div>Will let you know how far I get.</div>
<div><br>
</div>
<div>   Thanks</div>
<span><font color="#888888">
<div><br>
</div>
<div>      Luis</div>
</font></span></div><div><div>
<div>
<div>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">On Fri, Nov 22, 2013 at 11:11 AM, Johnson, Hans J <span \
dir="ltr"> &lt;<a href="mailto:hans-johnson@uiowa.edu" \
target="_blank">hans-johnson@uiowa.edu</a>&gt;</span> wrote:<br> <blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"> <div \
style="font-size:14px;font-family:Calibri,sans-serif;word-wrap:break-word"> \
<div>Seth,</div> <div><br>
</div>
<div>We discussed this at our t-con this morning.  I&#39;ll try to look at it this \
weekend.</div> <div><br>
</div>
<div>Hans</div>
<div><br>
</div>
<div><br>
</div>
<span>
<div style="border-right:medium \
none;padding-right:0in;padding-left:0in;padding-top:3pt;text-align:left;font-size:11pt;border-bottom:medium \
none;font-family:Calibri;border-top:#b5c4df 1pt \
solid;padding-bottom:0in;border-left:medium none">


<span style="font-weight:bold">From: </span>Seth Parker &lt;<a \
href="mailto:csparker247@gmail.com" target="_blank">csparker247@gmail.com</a>&gt;<br> \
<span style="font-weight:bold">Date: </span>Friday, November 22, 2013 10:09 AM<br> \
<span style="font-weight:bold">To: </span>Matt McCormick &lt;<a \
href="mailto:matt.mccormick@kitware.com" \
target="_blank">matt.mccormick@kitware.com</a>&gt;<br> <span \
style="font-weight:bold">Cc: </span>&quot;<a href="mailto:insight-users@itk.org" \
target="_blank">insight-users@itk.org</a>&quot; &lt;<a \
href="mailto:insight-users@itk.org" target="_blank">insight-users@itk.org</a>&gt;<br>


<span style="font-weight:bold">Subject: </span>Re: [Insight-users] [ITK Community] \
Problem with LandmarkWarping2.cxx in ITK-4.4.0?<br> </div>
<div>
<div>
<div><br>
</div>
<div>
<div>
<div dir="ltr">I had to rebuild ITK as I don&#39;t think the tests were built unless \
I also included the cmake flag ITK_BUILD_ALL_MODULES. Maybe not. Anyway, I ran the \
LandmarkWarping test and it reported that it passed. I would be inclined to think \
that there  was something just wrong with my landmarks file if it weren&#39;t for the \
fact that the exact same file produces expected results on an older version.</div> \
<div class="gmail_extra"><br clear="all"> <div><b>Seth Parker</b>
<div>Video Editor | The University of Kentucky Vis Center<br>
<a href="http://www.csethparker.com" target="_blank">www.csethparker.com</a> | <a \
href="http://www.vis.uky.edu" target="_blank"> www.vis.uky.edu</a></div>
</div>
<br>
<br>
<div class="gmail_quote">On Thu, Nov 21, 2013 at 4:51 PM, Matt McCormick <span \
dir="ltr"> &lt;<a href="mailto:matt.mccormick@kitware.com" \
target="_blank">matt.mccormick@kitware.com</a>&gt;</span> wrote:<br> <blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"> <div dir="ltr">Hi Seth,<br>
<br>
To run the test associated with the examples, set <br>
<br>
  BUILD_EXAMPLES  ON<br>
<br>
in the ITK CMake configuration, build, and run<br>
<br>
  ctest -R LandmarkWarping<br>
<br>
on the command line in the ITK build directory.<br>
<br>
Thanks,<br>
Matt<br>
</div>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">
<div>
<div>On Thu, Nov 21, 2013 at 4:20 PM, Seth Parker <span dir="ltr">&lt;<a \
href="mailto:csparker247@gmail.com" \
target="_blank">csparker247@gmail.com</a>&gt;</span> wrote:<br> </div>
</div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"> <div>
<div>
<div dir="ltr">Ok, so a couple of updates. First, I checked and I had tested on \
Ubuntu 13.04 (Raring Ringtail) and had compiled using GCC 4.7.3. ITK 4.4.0 gave me \
the same issues with LandmarkWarping2 as on OSX. <div><br>
On OSX, I had never noticed that Xcode&#39;s gcc was using an llvm backend. Clang is \
supposedly the same way. Also, I&#39;ve already update all of our computers to OSX \
10.9 as we hardly ever do any ITK or development work, so going back to Mountain Lion \
isn&#39;t really  an option. However, I did spend today compiling GNU GCC (4.8.2) on \
my machine and I recompiled ITK 4.4.0 using it instead of Xcode&#39;s \
&quot;GCC&quot;. After a successful build, it also exhibits the same issue with \
LandmarkWarping2. I&#39;m not sure of other variables, but  I think it&#39;s safe to \
assume this isn&#39;t a compiler issue.<br> <br>
In terms of using the built-in tests, I can find one LandmarkWarping2Test.png under \
the testing data, but I&#39;m unclear on which of the other images I should register \
it against (or against it).</div> </div>
<div class="gmail_extra">
<div><br clear="all">
<div><b>Seth Parker</b>
<div>Video Editor | The University of Kentucky Vis Center<br>
<a href="http://www.csethparker.com" target="_blank">www.csethparker.com</a> | <a \
href="http://www.vis.uky.edu" target="_blank"> www.vis.uky.edu</a></div>
</div>
<br>
<br>
</div>
<div>
<div>
<div class="gmail_quote">On Wed, Nov 20, 2013 at 9:04 PM, Bradley Lowekamp <span \
dir="ltr"> &lt;<a href="mailto:brad@lowekamp.net" \
target="_blank">brad@lowekamp.net</a>&gt;</span> wrote:<br> <blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"> <div style="word-wrap:break-word">Hello,
<div><br>
</div>
<div>I am just curious if it&#39;s a compiler issue or one with the code.</div>
<div><br>
</div>
<div>It&#39;s been a while since there has been a bonified version of GNU GCC with \
Xcode. I am running OS 10.8.5, check this out:</div> <div><br>
</div>
<div>
<div>$ /usr/bin/gcc -v</div>
<div>Using built-in specs.</div>
<div>Target: i686-apple-darwin11</div>
<div>Configured with: /private/var/tmp/llvmgcc42/llvmgcc42-2336.11~182/src/configure \
--disable-checking --enable-werror \
--prefix=/Applications/Xcode.app/Contents/Developer/usr/llvm-gcc-4.2 \
                --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ \
                --program-prefix=llvm-
 --program-transform-name=/^[cg][^.-]*$/s/$/-4.2/ --with-slibdir=/usr/lib \
--build=i686-apple-darwin11 \
--enable-llvm=/private/var/tmp/llvmgcc42/llvmgcc42-2336.11~182/dst-llvmCore/Developer/usr/local \
                --program-prefix=i686-apple-darwin11- --host=x86_64-apple-darwin11
 --target=i686-apple-darwin11 --with-gxx-include-dir=/usr/include/c++/4.2.1</div>
<div>Thread model: posix</div>
<div>gcc version 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.11.00)</div>
</div>
<div><br>
</div>
<div>That is llvm masquerading as gcc.</div>
<div><br>
</div>
<div>There is also clang as an option. I&#39;d give that a try. Upgrading to \
Macericks is going to another set of problems. </div> <div><br>
</div>
<div>Check out the information here:</div>
<div><a href="http://public.kitware.com/pipermail/community/2013-November/000188.html" \
target="_blank">http://public.kitware.com/pipermail/community/2013-November/000188.html</a></div>
 <div><br>
</div>
<div>This may be a good opportunity to run git-bisect, if the issue can be \
reproduced.</div> <div><br>
</div>
<div>Brad</div>
<div>
<div>
<div><br>
<div>
<div>On Nov 20, 2013, at 8:57 PM, Seth Parker &lt;<a \
href="mailto:csparker247@gmail.com" target="_blank">csparker247@gmail.com</a>&gt; \
wrote:</div> <br>
<blockquote type="cite">
<p dir="ltr">I did try on Ubuntu (Raring Ringtail). It&#39;s been a while for Ubuntu, \
but I believe I used gcc for it. Definitely gcc on OSX. I haven&#39;t tried \
recompiling since upgrading to Mavericks, but I was running Mountain Lion before and \
Xcode 4.6.</p>


<p dir="ltr">It hadn&#39;t occurred to me to check the built-in examples. I should be \
able to test that tomorrow.</p> <p dir="ltr">Sent from my phone</p>
<div class="gmail_quote">On Nov 20, 2013 8:27 PM, &quot;Bradley Lowekamp&quot; &lt;<a \
href="mailto:brad@lowekamp.net" target="_blank">brad@lowekamp.net</a>&gt; wrote:<br \
type="attribution"> <blockquote class="gmail_quote" style="margin:0 0 0 \
.8ex;border-left:1px #ccc solid;padding-left:1ex"> <div \
style="word-wrap:break-word">Hello, <div><br>
</div>
<div>Have you tried other systems? Linux perhaps?</div>
<div><br>
</div>
<div>What compiler are you using? What OS? What XCode version?</div>
<div><br>
</div>
<div>Is this issue reproducible with a test or example already in ITK?</div>
<div><br>
</div>
<div>Thanks,</div>
<div>Brad</div>
<div><br>
<div>
<div>On Nov 20, 2013, at 4:02 PM, Seth Parker &lt;<a \
href="mailto:csparker247@gmail.com" target="_blank">csparker247@gmail.com</a>&gt; \
wrote:</div> <br>
<blockquote type="cite">
<div dir="ltr">Was attempting to use ITK-4.4.0 LandmarkWarping2 on OSX and was \
getting completely incorrect results. The moving image was roughly in the correct \
spot of the first landmark, but was at a completely incorrect scale. I reverted to \
4.3.2 and had  no issues at all. I&#39;m fine using 4.3.2, but thought I would \
mention it here in case anyone has a solution or pointer.<br> <br>
You can download examples of the input and output files here: <a \
href="https://dl.dropboxusercontent.com/u/13015285/LandmarkWarping.zip" \
target="_blank">https://dl.dropboxusercontent.com/u/13015285/LandmarkWarping.zip</a><br>



<br clear="all">
<div><b>Seth Parker</b>
<div>Video Editor | The University of Kentucky Vis Center<br>
<a href="http://www.csethparker.com/" target="_blank">www.csethparker.com</a> | <a \
href="http://www.vis.uky.edu/" target="_blank"> www.vis.uky.edu</a></div>
</div>
</div>
_____________________________________<br>
Powered by <a href="http://www.kitware.com/" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at<br>
<a href="http://www.kitware.com/opensource/opensource.html" \
target="_blank">http://www.kitware.com/opensource/opensource.html</a><br> <br>
Kitware offers ITK Training Courses, for more information visit:<br>
<a href="http://www.kitware.com/products/protraining.php" \
target="_blank">http://www.kitware.com/products/protraining.php</a><br> <br>
Please keep messages on-topic and check the ITK FAQ at:<br>
<a href="http://www.itk.org/Wiki/ITK_FAQ" \
target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br> <br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.itk.org/mailman/listinfo/insight-users" \
target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br> \
</blockquote> </div>
<br>
</div>
</div>
</blockquote>
</div>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</div>
</div>
<br>
_____________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at<br>
<a href="http://www.kitware.com/opensource/opensource.html" \
target="_blank">http://www.kitware.com/opensource/opensource.html</a><br> <br>
Kitware offers ITK Training Courses, for more information visit:<br>
<a href="http://www.kitware.com/products/protraining.php" \
target="_blank">http://www.kitware.com/products/protraining.php</a><br> <br>
Please keep messages on-topic and check the ITK FAQ at:<br>
<a href="http://www.itk.org/Wiki/ITK_FAQ" \
target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br> <br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.itk.org/mailman/listinfo/insight-users" \
target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br> <br>
</div>
</div>
_______________________________________________<br>
Community mailing list<br>
<a href="mailto:Community@itk.org" target="_blank">Community@itk.org</a><br>
<a href="http://public.kitware.com/cgi-bin/mailman/listinfo/community" \
target="_blank">http://public.kitware.com/cgi-bin/mailman/listinfo/community</a><br> \
<br> </blockquote>
</div>
<br>
</div>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</div>
</div>
</span><br>
<br>
<hr>
Notice: This UI Health Care e-mail (including attachments) is covered by the \
Electronic Communications Privacy Act, 18 U.S.C. 2510-2521, is confidential and may \
be legally privileged.  If you are not the intended recipient, you are hereby \
notified that any  retention, dissemination, distribution, or copying of this \
communication is strictly prohibited.  Please reply to the sender that you have \
received the message in error, then delete it.  Thank you. <hr>
</div>
<br>
_____________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at<br>
<a href="http://www.kitware.com/opensource/opensource.html" \
target="_blank">http://www.kitware.com/opensource/opensource.html</a><br> <br>
Kitware offers ITK Training Courses, for more information visit:<br>
<a href="http://www.kitware.com/products/protraining.php" \
target="_blank">http://www.kitware.com/products/protraining.php</a><br> <br>
Please keep messages on-topic and check the ITK FAQ at:<br>
<a href="http://www.itk.org/Wiki/ITK_FAQ" \
target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br> <br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.itk.org/mailman/listinfo/insight-users" \
target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br> <br>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</div></div></blockquote>
</div>
<br>
</div>
</div>
</div>
</span><div><div><br>
<br>
<hr>
Notice: This UI Health Care e-mail (including attachments) is covered by the \
Electronic Communications Privacy Act, 18 U.S.C. 2510-2521, is confidential and may \
be legally privileged.  If you are not the intended recipient, you are hereby \
notified that any  retention, dissemination, distribution, or copying of this \
communication is strictly prohibited.  Please reply to the sender that you have \
received the message in error, then delete it.  Thank you. <hr>
</div></div></div>

</blockquote></div><br></div></div></div>
</div><br></div></div>



_____________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html

Kitware offers ITK Training Courses, for more information visit:
http://www.kitware.com/products/protraining.php

Please keep messages on-topic and check the ITK FAQ at:
http://www.itk.org/Wiki/ITK_FAQ

Follow this link to subscribe/unsubscribe:
http://www.itk.org/mailman/listinfo/insight-users


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic