<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<META content="MSHTML 6.00.2900.2912" name=GENERATOR>
<STYLE>
<!--
 /* Font Definitions */
 @font-face
        {font-family:ËÎÌå;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:Verdana;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:"\@ËÎÌå";
        panose-1:2 1 6 0 3 1 1 1 1 1;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        text-align:justify;
        text-justify:inter-ideograph;
        font-size:10.5pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:Verdana;
        color:windowtext;
        font-weight:normal;
        font-style:normal;
        text-decoration:none none;}
 /* Page Definitions */
 @page Section1
        {size:595.3pt 841.9pt;
        margin:72.0pt 90.0pt 72.0pt 90.0pt;
        layout-grid:15.6pt;}
div.Section1
        {page:Section1;}
-->
</STYLE>
</HEAD>
<BODY>
<DIV><FONT face=Verdana color=#000000 size=2>Hi Patrick,</FONT></DIV>
<DIV><FONT face=Verdana color=#000000 size=2></FONT> </DIV>
<DIV><FONT face=Verdana color=#000000 size=2>Thank you for your quickly 
reply!</FONT></DIV>
<DIV><FONT face=Verdana color=#000000 size=2></FONT> </DIV>
<DIV><FONT face=Verdana color=#000000 size=2>That do solve the problem. I have 
not tracked into Reslice function and get lost</FONT></DIV>
<DIV><FONT face=Verdana color=#000000 size=2>in the code.</FONT></DIV>
<DIV><FONT face=Verdana color=#000000 size=2></FONT> </DIV>
<DIV><FONT face=Verdana color=#000000 size=2>Thanks a lot!</FONT></DIV>
<DIV><FONT face=Verdana color=#000000 size=2></FONT> </DIV>
<DIV><FONT face=Verdana color=#000000 size=2>Fucang</FONT></DIV>
<DIV> <FONT face=Verdana size=2> </DIV>
<DIV>
<HR>
</DIV></FONT>
<DIV><FONT face=Verdana><FONT size=2>On 2006-06-19 09:56:28 Patrick 
Cheng</FONT></FONT></DIV>
<DIV><FONT face=Verdana><FONT size=2>Subject:    Re: 
[IGSTK-Users] Viewer Problem due to 
TransformPhysicalPointToIndex</FONT></FONT></DIV>
<DIV><FONT face=Verdana size=2></FONT> </DIV>
<DIV><FONT face=Verdana size=2>
<DIV>Hi  Fucang,</DIV>
<DIV> </DIV>
<DIV>I  just  looked  into  the  vtkImageActor 
 class  we  are  using  to  display 
 the</DIV>
<DIV>image.  The  RequestSetSliceNumber(ContinuousIndexType 
 index)  function</DIV>
<DIV>of  igstkImageRepresentation  class,  will  send 
 this  slice  parameters</DIV>
<DIV>down  to  the  vtkImageActor's  SetDisplayExtent(int 
 extent[6]),  so  there</DIV>
<DIV>is  an  actual  truncation  here.</DIV>
<DIV> </DIV>
<DIV>I  guess  the  vtkImageActor  is  not  doing 
 the  interpolation  here.  So  it</DIV>
<DIV>can  only  display  integer  slice  number. 
 The  jumping  is  caused  by  the</DIV>
<DIV>incorrect  truncation.  We  can  put  a  temp 
 fix  by  adding  the  following</DIV>
<DIV>lines  into  the  FourViewsTrackingWithCT.cxx  file 
 after  line  991(after</DIV>
<DIV>we  get  the  continuous  index),</DIV>
<DIV>           index[0]  =  int( 
 index[0]  +  0.5  );</DIV>
<DIV>           index[1]  =  int( 
 index[1]  +  0.5  );</DIV>
<DIV>           index[2]  =  int( 
 index[2]  +  0.5  );</DIV>
<DIV>This  should  fix  the  jumping  problem.</DIV>
<DIV> </DIV>
<DIV>Let  me  know  if  this  works  for 
 you,</DIV>
<DIV> </DIV>
<DIV>Thank  you,</DIV>
<DIV> </DIV>
<DIV>Patrick</DIV>
<DIV> </DIV>
<DIV>Fucang  Jia  wrote:</DIV>
<DIV>>  Hi  Patrick,</DIV>
<DIV>>    </DIV>
<DIV>>  I  synchronized  the  IGSTK  and 
 Sandbox  cvs  and  recompiled  it  from 
 scratch.</DIV>
<DIV>>  The  DrawPickedPoint  is  using  continuous 
 index  now.</DIV>
<DIV>>    </DIV>
<DIV>>  But  I  can  reproduce  the  problem 
 with  the  executable  you  sent  me.  I 
 just  </DIV>
<DIV>>  sent</DIV>
<DIV>>  you  an  animation    to  picture 
 this  problem.</DIV>
<DIV>>    </DIV>
<DIV>>  Thanks  a  lot!</DIV>
<DIV>>    </DIV>
<DIV>>  Fucang</DIV>
<DIV>>    </DIV>
<DIV>> 
 ------------------------------------------------------------------------</DIV>
<DIV>>  On  2006-06-19  02:50:55  Patrick 
 Cheng</DIV>
<DIV>>  Subject:        Re:  [IGSTK-Users] 
 Viewer  Problem  due  to  </DIV>
<DIV>>  TransformPhysicalPointToIndex</DIV>
<DIV>>    </DIV>
<DIV>>  Hi    Fucang,</DIV>
<DIV>>    </DIV>
<DIV>>  I    fixed    the    problem 
   in    the    IGSTK    main   
 repository,    by    adding</DIV>
<DIV>>  TransformPhysicalPointToContinuousIndex()    function, 
   into    the</DIV>
<DIV>>  igstkImageSpatialObject    class.</DIV>
<DIV>>    </DIV>
<DIV>>  But    the    example   
 application    you    are    running   
 is    in    the    Sandbox.</DIV>
<DIV>>    </DIV>
<DIV>>  You    might    need    to   
 check    on    two    things:</DIV>
<DIV>>    </DIV>
<DIV>>  First,    after    you    update 
   the    IGSTK    main    repository, 
   you    have    to  </DIV>
<DIV>>    CMake</DIV>
<DIV>>  the    Sandbox    again,    this 
   way,    the    Sandbox    will   
 get    the    latest  </DIV>
<DIV>>    source</DIV>
<DIV>>  from    main    repository,</DIV>
<DIV>>    </DIV>
<DIV>>  Second,    you    have    updated 
   the    FourViewsTrackingWithCT    application 
   in</DIV>
<DIV>>  the    Sandbox.    You    can 
   double    check    by    looking 
   into    the</DIV>
<DIV>>  DrawPickedPoint()    function    in   
 the    FourViewsTrackingWithCT    .cxx   
 file.</DIV>
<DIV>>  See    whether    it's    using 
   the    continuous    index.</DIV>
<DIV>>    </DIV>
<DIV>>  I    will    send    you   
 the    executables    in    another   
 separate    email,    because</DIV>
<DIV>>  this    email    goes    to   
 the    mailing    list.</DIV>
<DIV>>    </DIV>
<DIV>>  Patrick</DIV>
<DIV>>    </DIV>
<DIV>>    </DIV>
<DIV>>    </DIV>
<DIV>>  Fucang    Jia    wrote:</DIV>
<DIV>>     >    Hi    Patrick,</DIV>
<DIV>>     >        </DIV>
<DIV>>     >    Thank    you   
 very    much!</DIV>
<DIV>>     >        </DIV>
<DIV>>     >    But    I    am 
   not    keep    clicking    on   
 the    same    point.    Would   
 you  </DIV>
<DIV>>    like    to    share    me 
   </DIV>
<DIV>>     >    with</DIV>
<DIV>>     >    a    Win32   
 executable    FourViewsTrackingWithCT    app   
 for    me    to  </DIV>
<DIV>>    have    a    test?</DIV>
<DIV>>     >            </DIV>
<DIV>>     >    Thanks!</DIV>
<DIV>>     >        </DIV>
<DIV>>     >    Fucang</DIV>
<DIV>>     >        </DIV>
<DIV>>     >   
 ------------------------------------------------------------------------</DIV>
<DIV>>     >    On    2006-06-18   
 06:10:51    Patrick    Cheng</DIV>
<DIV>>     >    Subject:         
       Re:    [IGSTK-Users]    Viewer 
   Problem    due    to    </DIV>
<DIV>>     >    TransformPhysicalPointToIndex</DIV>
<DIV>>     >        </DIV>
<DIV>>     >    Hi       
 Fucang,</DIV>
<DIV>>     >        </DIV>
<DIV>>     >    I        guess 
       the        problem     
   is        you        keep 
       clicking        on  </DIV>
<DIV>>        the        same   
     point:    </DIV>
<DIV>>     >        The       
 first</DIV>
<DIV>>     >    time        you 
       click        on     
   a        point,       
 vtk's        z        buffer 
     </DIV>
<DIV>>    store        the       
 value,    </DIV>
<DIV>>     >        where     
   the</DIV>
<DIV>>     >    ray       
 intersects        with        the 
       image        plane.     
   but        NOTICE  </DIV>
<DIV>>        here,        we   
     put    </DIV>
<DIV>>     >        an       
 sphere</DIV>
<DIV>>     >    on        that 
       clicking        point,   
     if        you       
 do        not        moving 
 </DIV>
<DIV>>        the        mouse, 
       the    </DIV>
<DIV>>     >        second</DIV>
<DIV>>     >    time        you 
       click        again,     
   it        actually       
 will        return      </DIV>
<DIV>>    the        point       
 on    </DIV>
<DIV>>     >        the       
 sphere</DIV>
<DIV>>     >    you        have 
       clicked.        that's   
     why        the       
 slice        is      </DIV>
<DIV>>    still        jumping.     
   if    </DIV>
<DIV>>     >        you       
 move</DIV>
<DIV>>     >    you        mouse 
       a        little     
   bit,        and       
 click        on        the   
   </DIV>
<DIV>>    same        image     
   plane,        it</DIV>
<DIV>>     >    shouldn't       
 have        an        jumping, 
       i        have     
   tested        here      </DIV>
<DIV>>    without        any     
   problem.</DIV>
<DIV>>     >        </DIV>
<DIV>>     >    By        default, 
       all        the     
   spatial        object       
 in        the      </DIV>
<DIV>>    view        is       
 pickable        in    </DIV>
<DIV>>     >        IGSTK.</DIV>
<DIV>>     >        </DIV>
<DIV>>     >    Patrick</DIV>
<DIV>>     >        </DIV>
<DIV>>     >    Fucang        Jia 
       wrote:</DIV>
<DIV>>     >           >   
             </DIV>
<DIV>>     >           >   
     Hi        Patrick,</DIV>
<DIV>>     >           >   
             </DIV>
<DIV>>     >           >   
     I        found       
 that        another        vtk 
       dlls        exists     
   in  </DIV>
<DIV>>        the        default 
       path,    </DIV>
<DIV>>     >        which     
   </DIV>
<DIV>>     >           >   
     cause        the       
 fltk        app        can   
     not        execute,       
 when</DIV>
<DIV>>     >           >   
     I        copy       
 the        compiled        vtk 
       dlls        into     
   the      </DIV>
<DIV>>    path        of       
 fltk        app,    </DIV>
<DIV>>     >        which     
   works        well.</DIV>
<DIV>>     >           >   
             </DIV>
<DIV>>     >           >   
     But        on       
 the        slice        index 
       jumping        problem,   
   </DIV>
<DIV>>    it        seems       
 that        it    </DIV>
<DIV>>     >        exists.     
   If        you        </DIV>
<DIV>>     >           >   
     launch        the       
 app</DIV>
<DIV>>     >           >   
     FourViewTrackingWithCT        compiled 
       in        debug     
   mode(      </DIV>
<DIV>>    I        have       
 not    </DIV>
<DIV>>     >        tried     
   in        </DIV>
<DIV>>     >           >   
     release        mode),</DIV>
<DIV>>     >           >   
     and        load       
 dataset        IGSTK/Testing/Data/Input/E000192</DIV>
<DIV>>     >           >   
     then        let       
 left        mouse        click 
       on        the     
 </DIV>
<DIV>>    sagittal        view     
   plane,        you    </DIV>
<DIV>>     >        will     
   see        that.       
 </DIV>
<DIV>>     >           >   
     I        first       
 change        the       
 sagittal</DIV>
<DIV>>     >           >   
     index        to       
 511,        then        click 
       once,        the     
 </DIV>
<DIV>>    index        is       
 511,        then        I   
 </DIV>
<DIV>>     >        click     
   it        again,       
 </DIV>
<DIV>>     >           >   
     the        index       
 changes        to       
 510.</DIV>
<DIV>>     >           >   
     When        I       
 continue        click        left 
       mouse        on     
   it,  </DIV>
<DIV>>        it        will   
     change        to    </DIV>
<DIV>>     >        509,     
   508,        ...       
 </DIV>
<DIV>>     >           >   
     When        it       
 change        to        464, 
       it</DIV>
<DIV>>     >           >   
     will        never       
 change.        When        I 
       change        the     
 </DIV>
<DIV>>    sagittal        slice     
   to    </DIV>
<DIV>>     >        another     
   slice,        </DIV>
<DIV>>     >           >   
     then        click,       
 the        slice       
 changes</DIV>
<DIV>>     >           >   
     again.</DIV>
<DIV>>     >           >   
             </DIV>
<DIV>>     >           >   
     I        found       
 this        is        not   
     due        to      </DIV>
<DIV>>    TransformPhysicalPointToIndex    </DIV>
<DIV>>     >        function,     
   but        </DIV>
<DIV>>     >           >   
     in        igstkView.cxx</DIV>
<DIV>>     >           >   
                      
                      
                      
                      
           </DIV>
<DIV>>    m_PointPicker-       >GetPickPosition( 
       data        );</DIV>
<DIV>>     >           >   
     which        compute     
   z        buffer       
 depth        from      </DIV>
<DIV>>    vtkOpenGLRenderWindow.cxx</DIV>
<DIV>>     >           >   
     int       
 vtkOpenGLRenderWindow::GetZbufferData(        int 
       x1,  </DIV>
<DIV>>        int        y1,   
     int    </DIV>
<DIV>>     >        x2,       
 int        y2,</DIV>
<DIV>>     >           >   
                      
                      
                      
                      
                      
                 </DIV>
<DIV>>                     
                      
                      
                      
                      
                      
               </DIV>
<DIV>>            </DIV>
<DIV>>     >               
                      
                      
             float*       
 z_data        )</DIV>
<DIV>>     >           >   
             glReadPixels(     
   x_low,        y_low,</DIV>
<DIV>>     >           >   
                      
                      
                      
                      
                      
                 </DIV>
<DIV>>        width,       
 height,</DIV>
<DIV>>     >           >   
                      
                      
                      
                      
                      
                 </DIV>
<DIV>>        GL_DEPTH_COMPONENT,       
 GL_FLOAT,</DIV>
<DIV>>     >           >   
                      
                      
                      
                      
                      
                 </DIV>
<DIV>>        z_data        );</DIV>
<DIV>>     >           >   
             </DIV>
<DIV>>     >           >   
     I        add       
 a        line</DIV>
<DIV>>     >           >   
                    
 std::cout       <       <"z_data 
       is        "       
<       <*z_data      </DIV>
<DIV>>   <       <std::endl;</DIV>
<DIV>>     >           >   
             </DIV>
<DIV>>     >           >   
     when        I       
 click        the        mouse 
       at        one     
   position,  </DIV>
<DIV>>        the        z_data 
   </DIV>
<DIV>>     >        changes.     
   I        think        this 
       </DIV>
<DIV>>     >           >   
     may        be       
 the        cause.        But</DIV>
<DIV>>     >           >   
     I        can       
 not        figure        out 
       why        now.</DIV>
<DIV>>     >           >   
             </DIV>
<DIV>>     >           >   
     Thanks!</DIV>
<DIV>>     >           >   
             </DIV>
<DIV>>     >           >   
     Fucang</DIV>
<DIV>>     >           >   
             </DIV>
<DIV>>     >           >   
             </DIV>
<DIV>>     >           >   
   </DIV>
<DIV>>   
 ------------------------------------------------------------------------</DIV>
<DIV>>     >           >   
     On        2006-06-15     
   22:55:33        Patrick       
 Cheng</DIV>
<DIV>>     >           >   
     Subject:               
                 Re:     
   [IGSTK-Users]        Viewer     
 </DIV>
<DIV>>    Problem        due     
   to        </DIV>
<DIV>>     >           >   
     TransformPhysicalPointToIndex</DIV>
<DIV>>     >           >   
             </DIV>
<DIV>>     >           >   
     Hi               
 Fucang,</DIV>
<DIV>>     >           >   
             </DIV>
<DIV>>     >           >   
     1.               
 You                should   
             update       
         both             
 </DIV>
<DIV>>    IGSTK               
 and            </DIV>
<DIV>>     >        IGSTKSandbox   
             (bug         
       fix               
 is        </DIV>
<DIV>>     >           >   
             in         
       the</DIV>
<DIV>>     >           >   
     IGSTK,               
 I                have   
             also         
       changed             
 </DIV>
<DIV>>    the               
 example                app   
         </DIV>
<DIV>>     >        in       
         IGSTKSandbox         
       to        </DIV>
<DIV>>     >           >   
             use         
       the</DIV>
<DIV>>     >           >   
     ContinuousIndex)</DIV>
<DIV>>     >           >   
             </DIV>
<DIV>>     >           >   
     2.               
 You                might   
             need         
       to             
 </DIV>
<DIV>>    cmake               
 the                IGSTKSandbox 
           </DIV>
<DIV>>     >        again,     
           this           
     will        </DIV>
<DIV>>     >           >   
             take         
       the</DIV>
<DIV>>     >           >   
     latest               
 code                from   
             IGSTK       
         to             
 </DIV>
<DIV>>    IGSTKSandbox             
   build            </DIV>
<DIV>>     >        directory,     
           and        </DIV>
<DIV>>     >           >   
             then         
       compile</DIV>
<DIV>>     >           >   
     the               
 IGSTKSandbox.                (You 
               have       
         to      </DIV>
<DIV>>            run       
         the             
   cmake            </DIV>
<DIV>>     >        on       
         IGSTKSandbox        </DIV>
<DIV>>     >           >   
             again,</DIV>
<DIV>>     >           >   
     after               
 you                update   
             the         
       IGSTK)</DIV>
<DIV>>     >           >   
             </DIV>
<DIV>>     >           >   
     I               
 have                tested   
             this         
       on               
 the  </DIV>
<DIV>>                same   
             platform       
     </DIV>
<DIV>>     >        here,     
           it           
     works               
 out        </DIV>
<DIV>>     >           >   
             fine         
       here.             
   If</DIV>
<DIV>>     >           >   
     you               
 still                have   
             problem       
         with          </DIV>
<DIV>>        this.           
     Can               
 you                be   
 </DIV>
<DIV>>     >               
 more                specific 
               on       
 </DIV>
<DIV>>     >           >   
             the         
       error</DIV>
<DIV>>     >           >   
     and               
 difficulty                you 
               have       
         encountered?</DIV>
<DIV>>     >           >   
             </DIV>
<DIV>>     >           >   
     Patrick</DIV>
<DIV>>     >           >   
             </DIV>
<DIV>>     >           >   
     Fucang               
 Jia                wrote:</DIV>
<DIV>>     >           >   
                    > 
               Hi       
         Patrick,</DIV>
<DIV>>     >           >   
                    > 
                      
         </DIV>
<DIV>>     >           >   
                    > 
               Thank     
           you           
     for               
 your          </DIV>
<DIV>>        rapid           
     reply.</DIV>
<DIV>>     >           >   
                    > 
                      
         </DIV>
<DIV>>     >           >   
                    > 
               But       
         after           
     I              </DIV>
<DIV>>    synchronized             
   with                CVS 
               version,   
 </DIV>
<DIV>>     >               
 I                found   
             that       
 </DIV>
<DIV>>     >           >   
             all         
       fltk               
 app                can   
             </DIV>
<DIV>>     >           >   
                    > 
               not       
         run             
   (                this 
               app</DIV>
<DIV>>     >           >   
                    > 
               is       
         compiled           
     in               
 debug      </DIV>
<DIV>>            mode,       
         VC.Net2003           
 </DIV>
<DIV>>     >        fltk-1-1.7     
           or        </DIV>
<DIV>>     >           >   
             fltk-1.1.12-16-05).</DIV>
<DIV>>     >           >   
                    > 
                      
         </DIV>
<DIV>>     >           >   
                    > 
               Then       
         I             
   switched                to 
         </DIV>
<DIV>>        VC6           
     and               
 compiled                it.   
 </DIV>
<DIV>>     >               
 But                I     
           found         
       that        </DIV>
<DIV>>     >           >   
             jumping       
         problem           
     </DIV>
<DIV>>     >           >   
                    > 
               still     
           exists.</DIV>
<DIV>>     >           >   
                    > 
               and       
         m_CTImageObserver-         
     </DIV>
<DIV>>     >GetCTImage()-           
    >IsInside(               
 p    </DIV>
<DIV>>     >               
 )                will   
     </DIV>
<DIV>>     >           >   
             incorrectly       
         </DIV>
<DIV>>     >           >   
                    > 
               report     
           to           
     0               
 when</DIV>
<DIV>>     >           >   
                    > 
               sagittal     
           slice         
       is               
 0,      </DIV>
<DIV>>            so       
         it             
   will                report 
   </DIV>
<DIV>>     >               
 "Picked                point 
       </DIV>
<DIV>>     >           >   
             outside       
         image".</DIV>
<DIV>>     >           >   
                    > 
                      
         </DIV>
<DIV>>     >           >   
                    > 
               Thanks     
           !</DIV>
<DIV>>     >           >   
                    > 
                      
         </DIV>
<DIV>>     >           >   
                    > 
               Fucang</DIV>
<DIV>>     >           >   
                    > 
                      
         </DIV>
<DIV>>     >           >   
                    > 
                      
                      
   </DIV>
<DIV>>     >           >   
                    > 
           </DIV>
<DIV>>     >      </DIV>
<DIV>>   
 ------------------------------------------------------------------------</DIV>
<DIV>>     >           >   
                    > 
               On       
         2006-06-15           
     01:10:05             
 </DIV>
<DIV>>    Patrick               
 Cheng</DIV>
<DIV>>     >           >   
                    > 
               Subject:     
                      
                      
               Re:  </DIV>
<DIV>>                [IGSTK-Users] 
               Viewer     
       </DIV>
<DIV>>     >        Problem     
           due           
     to               
 </DIV>
<DIV>>     >           >   
                    > 
              
 TransformPhysicalPointToIndex</DIV>
<DIV>>     >           >   
                    > 
                      
         </DIV>
<DIV>>     >           >   
                    > 
               Hi       
                      
   Fucang,</DIV>
<DIV>>     >           >   
                    > 
                      
         </DIV>
<DIV>>     >           >   
                    > 
               A       
                      
   new                   
         </DIV>
<DIV>>     >       
 TransformPhysicalPointToContinuousIndex(p,index)       
                 </DIV>
<DIV>>     >           >   
             function       
                      
   and                   
             a</DIV>
<DIV>>     >           >   
                    > 
               ContinuousIndexType 
                      
         is             
 </DIV>
<DIV>>                   
 being                   
             added       
             </DIV>
<DIV>>     >               
 to                     
           the           
             </DIV>
<DIV>>     >           >   
             ImageSpatialObject's   
                      
       API.</DIV>
<DIV>>     >           >   
                    > 
                      
         </DIV>
<DIV>>     >           >   
                    > 
               Now       
                      
   if                   
             you         
 </DIV>
<DIV>>                     
   take                   
             the         
                      
 pick    </DIV>
<DIV>>     >               
                 position   
                      
       and               
                 use     
                   </DIV>
<DIV>>     >           >   
             the         
                      
 continuous                </DIV>
<DIV>>     >           >   
                    > 
                      
         index           
                    
 to</DIV>
<DIV>>     >           >   
                    > 
               reslice     
                      
     the                 
             </DIV>
<DIV>>    image,               
                 it     
                      
     will                 
           </DIV>
<DIV>>     >        be       
                      
   much                   
             smoother       
                 </DIV>
<DIV>>     >           >   
             and         
                      
 won't                   
             jump.</DIV>
<DIV>>     >           >   
                    > 
                      
         </DIV>
<DIV>>     >           >   
                    > 
               Please     
                      
     update               
               </DIV>
<DIV>>    your               
                 IGSTK   
                      
       main            </DIV>
<DIV>>     >               
         and             
                   Sandbox 
                      
 </DIV>
<DIV>>     >           >   
             repository       
                      
   code.</DIV>
<DIV>>     >           >   
                    > 
                      
         </DIV>
<DIV>>     >           >   
                    > 
               Thank     
                      
     you,</DIV>
<DIV>>     >           >   
                    > 
                      
         </DIV>
<DIV>>     >           >   
                    > 
               Patrick</DIV>
<DIV>>     >           >   
                    > 
                      
         </DIV>
<DIV>>     >           >   
                    > 
               Fucang     
                      
     Jia                 
               wrote:</DIV>
<DIV>>     >           >   
                    > 
                      
                      
  >                   
             Hi,         
         </DIV>
<DIV>>                Patrick,</DIV>
<DIV>>     >           >   
                    > 
                      
                      
  >                   
                      
                      
 </DIV>
<DIV>>     >           >   
                    > 
                      
                      
  >                   
             There       
       </DIV>
<DIV>>                   
 is                     
           a           
                    
 problem                   
 </DIV>
<DIV>>     >               
 due                     
           to           
             </DIV>
<DIV>>     >           >   
             TransformPhysicalPointToIndex 
               </DIV>
<DIV>>     >           >   
                    > 
                      
         function,           
                    
 which              </DIV>
<DIV>>                   
 </DIV>
<DIV>>     >           >   
                    > 
                      
                      
  >                   
             belongs       
   </DIV>
<DIV>>                     
   to                   
             Bug#         
                      
 738,</DIV>
<DIV>>     >           >   
                    > 
                      
                      
  >                   
             but         
         </DIV>
<DIV>>                it   
                      
       seems             
                   that   
                      
   </DIV>
<DIV>>     >        this     
                      
     critial               
                 bug     
                      
     has        </DIV>
<DIV>>     >           >   
                      
       not               
                 been     
                      
     fixed.</DIV>
<DIV>>     >           >   
                    > 
                      
                      
  >                   
                      
                      
 </DIV>
<DIV>>     >           >   
                    > 
                      
                      
  >                   
             When         
         </DIV>
<DIV>>                I     
                      
     load                 
       </DIV>
<DIV>>     >           >   
            
 IGSTK\Sandbox-Release-8\Testing\Data\E000192,</DIV>
<DIV>>     >           >   
                    > 
                      
                      
  >                   
             press       
       </DIV>
<DIV>>                   
 the                     
           left           
                    
 mouse            </DIV>
<DIV>>     >               
         button           
                     on 
                      
         the             
           </DIV>
<DIV>>     >           >   
             sagittal       
                      
   view                   
             in         
             </DIV>
<DIV>>            </DIV>
<DIV>>     >           >   
                    > 
                      
                      
  >                   
           </DIV>
<DIV>>    FourViewsTrackingWithCT         
                      
 app                     
       </DIV>
<DIV>>     >        continuously,</DIV>
<DIV>>     >           >   
                    > 
                      
                      
  >                   
             then         
         </DIV>
<DIV>>                the   
                      
       index             
                   changes 
   </DIV>
<DIV>>     >               
                 little   
                      
       bye               
                 one,     
                   </DIV>
<DIV>>     >           >   
             when         
                      
 the                     
           index         
                 </DIV>
<DIV>>        of           
     </DIV>
<DIV>>     >           >   
                    > 
                      
         sagittal           
                    
 viewer              </DIV>
<DIV>>                   
 </DIV>
<DIV>>     >           >   
                    > 
                      
                      
  >                   
             was         
         </DIV>
<DIV>>                changed   
                      
       to               
                 0,     
                      
 </DIV>
<DIV>>     >        I       
                      
   press                 
               the</DIV>
<DIV>>     >           >   
                    > 
                      
                      
  >                   
             mouse       
       </DIV>
<DIV>>                   
 button                   
             onto         
                      
 the            </DIV>
<DIV>>     >               
         sagittal           
                    
 image,                   
             it         
               </DIV>
<DIV>>     >           >   
             says         
                      
 "Picked                   
             point       
         </DIV>
<DIV>>     >           >   
                    > 
                      
         outside           
                    
 </DIV>
<DIV>>     >           >   
                    > 
                      
                      
  >                   
             image".       
   </DIV>
<DIV>>                     
   I                   
             tracked       
                      
   this    </DIV>
<DIV>>     >               
                 bug,</DIV>
<DIV>>     >           >   
                    > 
                      
                      
  >                   
             and         
         </DIV>
<DIV>>                found   
                      
       that               
                 it     
                      
 </DIV>
<DIV>>     >        is       
                      
   due                   
             to         
                      
 index              </DIV>
<DIV>>            </DIV>
<DIV>>     >           >   
             round       
                      
   up                   
             problem.</DIV>
<DIV>>     >           >   
                    > 
                      
                      
  >                   
                      
                      
 </DIV>
<DIV>>     >           >   
                    > 
                      
                      
  >                   
             For         
         </DIV>
<DIV>>                example,   
                      
       the               
                 origin   
 </DIV>
<DIV>>     >               
                 is     
                      
                      
               -153.6640625,</DIV>
<DIV>>     >           >   
                    > 
                      
                      
  >                   
             the         
         </DIV>
<DIV>>                spacing   
                      
       is               
                 0.671875</DIV>
<DIV>>     >           >   
                    > 
                      
                      
  >                   
             the         
         </DIV>
<DIV>>                physical   
                      
       coordinate             
               </DIV>
<DIV>>     >        is       
                      
   16.3203</DIV>
<DIV>>     >           >   
                    > 
                      
                      
  >                   
             so         
             </DIV>
<DIV>>            the       
                      
   according                 
               index    </DIV>
<DIV>>     >               
                 is</DIV>
<DIV>>     >           >   
                    > 
                      
                      
  >                   
           </DIV>
<DIV>>    (16.3203+153.6640625)/0.671875       
                      
   =                   
 </DIV>
<DIV>>     >               
 252.9999813953,</DIV>
<DIV>>     >           >   
                    > 
                      
                      
  >                   
             it         
             </DIV>
<DIV>>            was       
                      
   truncated                 
               to       
             </DIV>
<DIV>>     >               
 252.</DIV>
<DIV>>     >           >   
                    > 
                      
                      
  >                   
                      
                      
 </DIV>
<DIV>>     >           >   
                    > 
                      
                      
  >                   
             Then         
         </DIV>
<DIV>>                resliceImage 
                      
         function           
         </DIV>
<DIV>>     >               
 will                     
           change         
                      
 the                     
   </DIV>
<DIV>>     >           >   
             orthogonal       
                      
   image                </DIV>
<DIV>>     >           >   
                    > 
                      
         slice.</DIV>
<DIV>>     >           >   
                    > 
                      
                      
  >                   
                      
                      
 </DIV>
<DIV>>     >           >   
                    > 
                      
                      
  >                   
             I         
             </DIV>
<DIV>>            also       
                      
   found                 
               this       
                    
 </DIV>
<DIV>>     >        behaviour     
                      
     will                 
               occur     
                   </DIV>
<DIV>>     >           >   
             when         
                      
 certain                   
             DICOM       
         </DIV>
<DIV>>     >           >   
                    > 
                      
         dataset           
                     is 
                    
 </DIV>
<DIV>>            </DIV>
<DIV>>     >           >   
                    > 
                      
                      
  >                   
             loaded.       
   </DIV>
<DIV>>                     
   When                   
             I         
                      
 load                   
 </DIV>
<DIV>>     >               
 other                   
             DICOM       
                      
   dataset,</DIV>
<DIV>>     >           >   
                    > 
                      
                      
  >                   
             the         
         </DIV>
<DIV>>                axial   
                      
       and               
                 coronal   
         </DIV>
<DIV>>     >               
         slice           
                     will 
                      
         have             
           </DIV>
<DIV>>     >           >   
             problem,       
                      
   but                   
             sagittal       
         </DIV>
<DIV>>     >           >   
                    > 
                      
         view             
                   does   
                      
       </DIV>
<DIV>>     >           >   
                    > 
                      
                      
  >                   
             not         
         </DIV>
<DIV>>                change   
                      
       when               
                 mouse   
         </DIV>
<DIV>>     >               
         pressed.           
                     It 
                      
         is             
           </DIV>
<DIV>>     >           >   
             because</DIV>
<DIV>>     >           >   
                    > 
                      
                      
  >                   
             that         
         </DIV>
<DIV>>                certain   
                      
       origin             
                   and   
 </DIV>
<DIV>>     >               
                 spacing   
                      
       parameters             
           </DIV>
<DIV>>     >           >   
             trigger       
                      
   this                   
             problem.</DIV>
<DIV>>     >           >   
                    > 
                      
                      
  >                   
                      
                      
 </DIV>
<DIV>>     >           >   
                    > 
                      
                      
  >                   
             Thanks!</DIV>
<DIV>>     >           >   
                    > 
                      
                      
  >                   
                      
                      
 </DIV>
<DIV>>     >           >   
                    > 
                      
                      
  >                   
             Fucang</DIV>
<DIV>>     >           >   
                    > 
                      
                      
  >                   
             </DIV>
<DIV>>     >           >   
                    > 
                      
                      
  >                   
             </DIV>
<DIV>>     >           >   
                    > 
                      
                      
  >                   
     </DIV>
<DIV>>     >           >   
         </DIV>
<DIV>>     >      </DIV>
<DIV>>   
 ------------------------------------------------------------------------</DIV>
<DIV>>     >           >   
                    > 
                      
                      
  >                   
             </DIV>
<DIV>>     >           >   
                    > 
                      
                      
  >                   
           </DIV>
<DIV>>    _______________________________________________</DIV>
<DIV>>     >           >   
                    > 
                      
                      
  >                   
             IGSTK-Users  </DIV>
<DIV>>                     
           mailing         
                      
 list</DIV>
<DIV>>     >           >   
                    > 
                      
                      
  >                   
           </DIV>
<DIV>>    IGSTK-Users@public.kitware.com</DIV>
<DIV>>     >           >   
                    > 
                      
                      
  >                   
         </DIV>
<DIV>>     >        <A 
href="http://public.kitware.com/cgi-bin/mailman/listinfo/igstk-users">http://public.kitware.com/cgi-bin/mailman/listinfo/igstk-users</A></DIV>
<DIV>>     >           >   
                    > 
                      
         </DIV>
<DIV>>     >           >   
             </DIV>
<DIV>>     >        </DIV>
<DIV>>     >    --        </DIV>
<DIV>>     >    Patrick       
 Cheng                   
                      
                      
                      
                    
 </DIV>
<DIV>>                     
                      
                      
                      
                      
                      
 </DIV>
<DIV>>     >        Work     
   phone:        202-687-2902</DIV>
<DIV>>     >    Software       
 Engineer                   
                      
                      
                      
             </DIV>
<DIV>>                     
                      
                      
                      
                    
 </DIV>
<DIV>>     >        Work     
   fax:                   
     202-784-3479</DIV>
<DIV>>     >    Email:       
 cheng@isis.georgetown.edu</DIV>
<DIV>>     >        </DIV>
<DIV>>     >    Imaging       
 Science        and       
 Information        Systems       
 (ISIS)        Center</DIV>
<DIV>>     >    Department       
 of        Radiology,       
 Georgetown        University     
 </DIV>
<DIV>>    Medical        Center</DIV>
<DIV>>     >    2115       
 Wisconsin        Avenue,       
 Suite        603,       
 Washington,        DC,  </DIV>
<DIV>>        20007</DIV>
<DIV>>     >        </DIV>
<DIV>>    </DIV>
<DIV>>  --    </DIV>
<DIV>>  Patrick    Cheng           
                      
                      
                      
                      
                   </DIV>
<DIV>>    Work    phone:    202-687-2902</DIV>
<DIV>>  Software    Engineer         
                      
                      
                      
                      
     </DIV>
<DIV>>    Work    fax:           
 202-784-3479</DIV>
<DIV>>  Email:    cheng@isis.georgetown.edu</DIV>
<DIV>>    </DIV>
<DIV>>  Imaging    Science    and   
 Information    Systems    (ISIS)   
 Center</DIV>
<DIV>>  Department    of    Radiology,   
 Georgetown    University    Medical   
 Center</DIV>
<DIV>>  2115    Wisconsin    Avenue,   
 Suite    603,    Washington,    DC,   
 20007</DIV>
<DIV>>    </DIV>
<DIV> </DIV>
<DIV>--  </DIV>
<DIV>Patrick  Cheng                 
                      
                     Work 
 phone:  202-687-2902</DIV>
<DIV>Software  Engineer               
                      
               Work  fax:   
   202-784-3479</DIV>
<DIV>Email:  cheng@isis.georgetown.edu</DIV>
<DIV> </DIV>
<DIV>Imaging  Science  and  Information  Systems 
 (ISIS)  Center</DIV>
<DIV>Department  of  Radiology,  Georgetown  University 
 Medical  Center</DIV>
<DIV>2115  Wisconsin  Avenue,  Suite  603,  Washington, 
 DC,  20007</DIV>
<DIV> </DIV></FONT></DIV></BODY></HTML>