Giter Site home page Giter Site logo

vtkimagesmoothingbug's Introduction

vtkImageSmoothingBug

vtkImageSmoothingBug

When displaying images with sharp edges, a smoothing / anti-aliasing effect is seen. The same image, when viewed in ITK-SNAP, shows sharp edges.

See screenshots folder for screenshots for VTK and ITK-SNAP rendering.

This test program displays the DICOM image in "data" folder.

Toggle variable USE_VTKIMAGE_VIEWER to display data using either vtkImageViewer2 or vtkImageActor. The smoothing/anti-aliasing effect is visible in both cases.

Update : Based on discussion on vtk users list, I found that this is not a bug. However, if you want the data not to be interpolated, see below :

Reply From David Gobbi on [email protected]

It's definitely not a bug. Interpolation is turned on by default, in order to reduce a certain artifact known as "pixels" that can occur when displaying a uniformly sampled data set ;)

In VTK 5, use this method:

actor->InterpolateOff();

In VTK 6, you can have even more control via the Property and the Mapper for the image:

actor->GetProperty()->SetInterpolationTypeToNearest(); actor->GetMapper()->BorderOn();

vtkimagesmoothingbug's People

Contributors

someshsandbox avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.