1. 09 Apr, 2012 4 commits
    • VTK Developers's avatar
      Include module-wide headers and export macros · 144f03ca
      VTK Developers authored
      Include the module-wide header from every header in each module.
      Reference the export/visibility macro for the module.
      
      Co-Author: Marcus D. Hanwell <marcus.hanwell@kitware.com>
      Co-Author: Chris Harris <chris.harris@kitware.com>
      144f03ca
    • VTK Developers's avatar
      Add modular VTK build system · 0c1471f1
      VTK Developers authored
      Add module.cmake, CMakeLists.txt, and other build system files.
      
      The modular VTK build system is not yet mature.  The monolithic build
      files had a lot of infrastructure.  The modular build files reproduce
      much of the functionality but some features will need to be restored
      later.  Document status and tasks in "TODO-Modularization.txt".
      
      Co-Author: Marcus D. Hanwell <marcus.hanwell@kitware.com>
      Co-Author: Chris Harris <chris.harris@kitware.com>
      Co-Author: Brad King <brad.king@kitware.com>
      Co-Author: Nikhil Shetty <nikhil.shetty@kitware.com>
      0c1471f1
    • VTK Developers's avatar
      Modularize VTK tree layout · cdd4d6fd
      VTK Developers authored
      Move source files from their former monolithic VTK location to their new
      location in modular VTK without modification.  This preserves enough
      information for "git blame -M" and "git log --follow" to connect
      modularized VTK files to their original location and history.
      
      Co-Author: Marcus D. Hanwell <marcus.hanwell@kitware.com>
      Co-Author: Chris Harris <chris.harris@kitware.com>
      Co-Author: Brad King <brad.king@kitware.com>
      Co-Author: Nikhil Shetty <nikhil.shetty@kitware.com>
      cdd4d6fd
    • VTK Developers's avatar
      Remove monolithic VTK files not used after modularization · c13ff7ba
      VTK Developers authored
      The modular VTK build system completely replaces the old monolithic
      CMake code.
      
      Co-Author: Marcus D. Hanwell <marcus.hanwell@kitware.com>
      Co-Author: Chris Harris <chris.harris@kitware.com>
      Co-Author: Brad King <brad.king@kitware.com>
      Co-Author: Nikhil Shetty <nikhil.shetty@kitware.com>
      c13ff7ba
  2. 30 Mar, 2012 1 commit
    • David Gobbi's avatar
      COMP: Fix unused local variable warnings about sddp. · 639e1358
      David Gobbi authored
      In several places, a pointer variable to the pipeline was declared,
      but only used to call static methods of the pipeline class.  Some
      compilers generated a warning about this.
      
      Change-Id: I07dffd44e8fa97aba2f32fb3a2cec5e8dc3b6af6
      639e1358
  3. 08 Mar, 2012 4 commits
  4. 07 Mar, 2012 1 commit
    • Kyle Lutz's avatar
      Fix misspellings in VTK/Imaging · 53d6d756
      Kyle Lutz authored
      This fixes a number of misspellings in the comments of
      the source files in VTK/Imaging. The misspellings were
      found using the codespell tool.
      
      Change-Id: If64252366795e7ab2990347bb29b2c0390b4c161
      53d6d756
  5. 01 Mar, 2012 2 commits
    • Berk Geveci's avatar
      Fixed bug where vtkImageReslice was not setting WHOLE_EXTENT properly. · 2b79442e
      Berk Geveci authored
      When GenerateStencilOutput is false, vtkImageReslice was not
      changing the WHOLE_EXTENT for the stencil output (output port 1).
      However, by default, the executive copies the input WHOLE_EXTENT
      to all output ports, which is wrong in this case. Added code
      that removes WHOLE_EXTENT, SPACING and ORIGIN from second output
      when GenerateStencilOutput is false.
      2b79442e
    • Berk Geveci's avatar
      Fixed bug where vtkImageBSplineCoefficients was allocating wrong. · dae3be92
      Berk Geveci authored
      vtkImageBSplineCoefficients was chaining to superclass'
      RequestData which allocated based on UPDATE_EXTENT. However,
      vtkImageBSplineCoefficients actually wants to allocate based
      on the WHOLE_EXTENT. Fixed.
      dae3be92
  6. 28 Feb, 2012 1 commit
  7. 25 Jan, 2012 1 commit
  8. 24 Jan, 2012 1 commit
  9. 23 Jan, 2012 1 commit
    • Bill Lorensen's avatar
      BUG: Spacing and Origin must be set by image source. · 3596a3ea
      Bill Lorensen authored
      Several image source's did not set the origin and spacing. Downstream
      filters failed in a variety of ways since the spacing and origin info
      did not exist.
      
      For example code like this:
      
      double *spacing = inInfo->Get(vtkDataObject::SPACING());
        returned a NULL pointer.
      
      and code like this:
      
        double origin[3];
        inInfo->Get(vtkDataObject::ORIGIN(), origin);
      left origin uninitialized
      
      Change-Id: Ic8eda387c0e322cdad3ada55fd24bcf6f538ae05
      3596a3ea
  10. 06 Jan, 2012 1 commit
  11. 31 Dec, 2011 1 commit
  12. 30 Dec, 2011 1 commit
  13. 29 Dec, 2011 2 commits
    • David Gobbi's avatar
      ENH: A b-spline image interpolator and a b-spline warp transform. · 4ee21897
      David Gobbi authored
      This commit contains code that originated in the VTK Journal:
      DG Gobbi and YP Starreveld
      "Uniform B-Splines for the VTK Imaging Pipeline"
      http://hdl.handle.net/10380/3252
      
      The vtkImageBSplineInterpolator is an image interpolator that uses
      uniform b-splines.  Prior to interpolation, images must be filtered
      with vtkImageBSplineCoefficients to compute the knot coefficients.
      The vtkBSplineTransform implements a cubic b-spline warp grid.
      
      Change-Id: Ib8c95cc736fc7db194cc1bcd21ef48c1e82e16a2
      4ee21897
    • David Gobbi's avatar
      ENH: Add vtkImageResize, a fast antialiased resizing filter. · 5ced2edd
      David Gobbi authored
      This filter uses a sliding buffer to store intermediate results
      while interpolating an image.  This allows the use of interpolation
      kernels of very large size N, because the time is O(N) instead of
      O(N^3) as required by vtkImageResample and vtkImageReslice.
      
      Unlike the more traditional three-pass approach of fast filtering,
      the sliding buffer approach has very small memory overhead.
      Three-pass filtering has a 200% memory overhead, while sliding
      buffer typically has an overhead of 10% or less.
      
      The default interpolation kernel is a 5-lobe windowed sinc (Lanczos).
      Image magnification uses a kernel size of 6, while image shrinking
      uses a larger kernel size to provide a brick-wall low-pass filter
      for antialiasing.
      
      Change-Id: I4b58952fdf167ffa545e87213e70fca0ed0c4bb1
      5ced2edd
  14. 17 Dec, 2011 2 commits
    • David Gobbi's avatar
      Revert "ENH: Add vtkImageResize, a fast antialiased resizing filter." · 5f13048f
      David Gobbi authored
      This reverts commit 0a2cbb14.
      5f13048f
    • David Gobbi's avatar
      ENH: Add vtkImageResize, a fast antialiased resizing filter. · 0a2cbb14
      David Gobbi authored
      This filter uses a sliding buffer to store intermediate results
      while interpolating an image.  This allows the use of interpolation
      kernels of very large size N, because the time is O(N) instead of
      O(N^3) as required by vtkImageResample and vtkImageReslice.
      
      Unlike the more traditional three-pass approach of fast filtering,
      the sliding buffer approach has very small memory overhead.
      Three-pass filtering has a 200% memory overhead, while sliding
      buffer typically has an overhead of 10% or less.
      
      The default interpolation kernel is a 5-lobe windowed sinc (Lanczos).
      Image magnification uses a kernel size of 6, while image shrinking
      uses a larger kernel size to provide a brick-wall low-pass filter
      for antialiasing.
      
      Change-Id: I9aba2ecaf8913ace2104b4a8853bb994471bcb3c
      0a2cbb14
  15. 13 Dec, 2011 1 commit
  16. 08 Dec, 2011 1 commit
  17. 07 Dec, 2011 1 commit
  18. 01 Dec, 2011 1 commit
  19. 30 Nov, 2011 2 commits
  20. 28 Nov, 2011 1 commit
    • David Gobbi's avatar
      ENH: Add a class for generating an image histogram. · a54e74f0
      David Gobbi authored
      The new vtkImageHistogram class is a multi-threaded filter for
      computing an image histogram that differs from vtkImageAccumulate
      in that the output image is a histogram plot that can be directly
      displayed to the user.  It is also possible to get the histogram
      as a vtkIdTypeArray via the GetHistogram() method.
      
      The subclass vtkImageHistogramStatistics computes image statistics
      from the generated histogram.  In addition to providing mean, median,
      and standard deviation, this class can be used to compute optimal
      window/level values for image viewing based on histogram percentiles.
      
      Patch Set 3: Add SetActiveComponent method.
      
      Change-Id: I31c12428b54471c1b6a6e874b219dfacb27282d0
      a54e74f0
  21. 25 Nov, 2011 1 commit
    • David Doria's avatar
      DOC: Correct from 4 dimensions to 3 dimensions. · 5ef5d1a6
      David Doria authored
      When the filter was added to VTK in 1997, image components
      (like red, green, blue) were treated as a fourth dimension:
      x,y,z,c.  When the imaging pipeline architecture was changed
      to x,y,z the documentation was not updated.
      
      Also fixed some small typos.
      
      Change-Id: I2ad19ddfd6e892aa0553a3e06e0e6532293faafe
      5ef5d1a6
  22. 15 Nov, 2011 1 commit
  23. 07 Nov, 2011 1 commit
  24. 03 Nov, 2011 1 commit
  25. 02 Nov, 2011 1 commit
  26. 01 Nov, 2011 1 commit
  27. 28 Oct, 2011 1 commit
  28. 27 Oct, 2011 1 commit
    • David Gobbi's avatar
      BUG 12679: Use WholeExtent, not Extent, for interpolator bounds. · acb5b09d
      David Gobbi authored
      The vtkImageClip filter outputs an image with a WholeExtent that is
      smaller than the Extent.  The interpolator (and vtkImageReslice)
      was considering values outside the WholeExtent to be "in bounds"
      because they were within the data's Extent.  The result was incorrect
      filtering/rendering when vtkImageReslice immediately followed
      vtkImageClip.  This patch fixes the issue.
      acb5b09d
  29. 26 Oct, 2011 1 commit
    • Sankhesh Jhaveri's avatar
      FIX:TestBlendStencil. ADD: SetStencilConnection · e1561e5a
      Sankhesh Jhaveri authored
      Added method SetStencilConnection to vtkImageBlend so that a pipeline connection can be created to provide the stencil data.
      BUG: SetUpdateExtent not accepting 7 arguments as it should in Tcl wrapped files
      e1561e5a
  30. 21 Oct, 2011 1 commit
    • Berk Geveci's avatar
      BUG: vtkImageIterateFilter was not copying meta-data. · 430ed4c6
      Berk Geveci authored
      After the VTK 4 compatibility removal changes, vtkImageIterateFilter
      was no longer copying meta-data from input to output (using passes)
      during RequestInformation. This is a temporary fix. I will refactor
      this later.
      430ed4c6