<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.7600.16700">
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT size=2 face=Arial>Hi David,</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>truly amazing! Very easy to scroll or oblique 
slice.  I couldnt see</FONT></DIV>
<DIV><FONT size=2 face=Arial>the colored background in the renderer: it 
seems like the new vtkImage/Mapper</FONT></DIV>
<DIV><FONT size=2 face=Arial>takes up the whole viewport?  It would be nice 
to have a reset in the interactor style</FONT></DIV>
<DIV><FONT size=2 face=Arial>to reposition the image slice along one of the 
orthogonal data axes of a 3D image,</FONT></DIV>
<DIV><FONT size=2 face=Arial>but this should be easy to do with a 
callback.</FONT></DIV>
<DIV><FONT size=2 face=Arial>Attached is the tcl </FONT><FONT size=2 
face=Arial>version for anyone who wants it.  </FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>Dean</FONT></DIV>
<BLOCKQUOTE 
style="BORDER-LEFT: #000000 2px solid; PADDING-LEFT: 5px; PADDING-RIGHT: 0px; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px">
  <DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
  <DIV 
  style="FONT: 10pt arial; BACKGROUND: #e4e4e4; font-color: black"><B>From:</B> 
  <A title=will.schroeder@kitware.com 
  href="mailto:will.schroeder@kitware.com">Will Schroeder</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>To:</B> <A title=david.gobbi@gmail.com 
  href="mailto:david.gobbi@gmail.com">David Gobbi</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>Cc:</B> <A title=vtk-developers@vtk.org 
  href="mailto:vtk-developers@vtk.org">VTK Developers</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>Sent:</B> Saturday, January 22, 2011 9:32 
  AM</DIV>
  <DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [vtk-developers] A new way 
  to look at images</DIV>
  <DIV><BR></DIV>David this is very clever and seems pretty intuitive to 
  use (I did not actually try it).
  <DIV><BR></DIV>
  <DIV>I think my initial (minor) concern is naming, while I think what you've 
  come up is pretty good I can see how a novice might get confused.  Did 
  you consider something like "ImageResliceActor", "ResliceActor" or simply 
  "Reslice"?</DIV>
  <DIV><BR></DIV>
  <DIV>
  <DIV>W</DIV>
  <DIV><BR></DIV>
  <DIV><BR></DIV>
  <DIV><BR>
  <DIV class=gmail_quote>On Fri, Jan 21, 2011 at 6:53 PM, David Gobbi <SPAN 
  dir=ltr><<A 
  href="mailto:david.gobbi@gmail.com">david.gobbi@gmail.com</A>></SPAN> 
  wrote:<BR>
  <BLOCKQUOTE 
  style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" 
  class=gmail_quote>Hi All,<BR><BR>I've been experimenting with a new way of 
    rendering 3D images in VTK.<BR>So far, it is working fairly well.  Here 
    is a rough description of the<BR>new VTK classes I've 
    written:<BR><BR>vtkImage - a new prop for image viewing, analogous to 
    vtkVolume and vtkActor<BR>vtkImageProperty - holds the lookup table, 
    window/level, etc.<BR>vtkImageMapper3D - a new mapper that does image 
    reslicing and texturing<BR><BR>Using these classes is very simple: just set 
    up the camera, and the<BR>vtkImage object will automatically display the 
    slice at the camera<BR>focal point.  To show a different slice, just 
    move the focal point so<BR>that it lies at a different position in the 3D 
    image.  To slice in a<BR>different orientation, rotate the camera 
    around the focal point.  In<BR>other words, the slicing is completely 
    controlled by the camera.  This<BR>makes everything work nicely with 
    the VTK interactors, and also<BR>simplifies the intermixing of images and 
    geometry.<BR><BR>My reason for making this class is that I've seen plenty of 
    users on<BR>the list who struggle with vtkImageReslice and with 
    vtkImageViewer.  I<BR>wanted to make it as easy to view an image in VTK 
    as it is to view an<BR>actor. I have the code on my github 
    account<BR>git://<A href="http://github.com/dgobbi/VTK.git" 
    target=_blank>github.com/dgobbi/VTK.git</A> in the branch "image-prop"<BR><A 
    href="http://github.com/dgobbi/VTK/tree/image-prop" 
    target=_blank>http://github.com/dgobbi/VTK/tree/image-prop</A><BR><BR>The 
    code includes a modified vtkInteractorStyleImage class that has<BR>new 
    interactions for rotating the camera with shift-leftbutton (for<BR>oblique 
    slicing) and for adjusting the focal point with<BR>shift-middlebutton (for 
    slicing through the image).  There is also a<BR>python example in 
    Examples/ImageProcessing/Python/ImageMapper3D.py.<BR>All of this is still 
    preliminary development, but so far I haven't<BR>encountered any 
    show-stopping bugs.<BR><BR>Please let me know what you think.  I'll try 
    to make a wiki page with<BR>more details next week.<BR><BR> - 
    David<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 <A 
    href="http://www.kitware.com/opensource/opensource.html" 
    target=_blank>http://www.kitware.com/opensource/opensource.html</A><BR><BR>Follow 
    this link to subscribe/unsubscribe:<BR><A 
    href="http://www.vtk.org/mailman/listinfo/vtk-developers" 
    target=_blank>http://www.vtk.org/mailman/listinfo/vtk-developers</A><BR><BR></BLOCKQUOTE></DIV><BR><BR 
  clear=all><BR>-- <BR>William J. Schroeder, PhD<BR>Kitware, Inc.<BR>28 
  Corporate Drive<BR>Clifton Park, NY 12065<BR><A 
  href="mailto:will.schroeder@kitware.com">will.schroeder@kitware.com</A><BR><A 
  href="http://www.kitware.com">http://www.kitware.com</A><BR>(518) 
  881-4902<BR></DIV></DIV>
  <P>
  <HR>

  <P></P>_______________________________________________<BR>Powered by 
  www.kitware.com<BR><BR>Visit other Kitware open-source projects at 
  http://www.kitware.com/opensource/opensource.html<BR><BR>Follow this link to 
  subscribe/unsubscribe:<BR>http://www.vtk.org/mailman/listinfo/vtk-developers<BR><BR></BLOCKQUOTE></BODY></HTML>