[vtkusers] enhancing contrast of VTK image

Prathamesh Kulkarni prathameshmkulkarni at gmail.com
Wed Jul 20 11:47:42 EDT 2011


Thanks. I have applied a similar look up table but that does not provide me
with enough contrast. Any ideas for improvement?

- Prathamesh

On Wed, Jul 20, 2011 at 6:21 PM, mathilde.merle
<mathilde.merle at laposte.net>wrote:

>
>
>
>
>
> Hello,
>
> It could be this :
>
>  vtkSmartPointer<vtkLookupTable> table =
>  vtkSmartPointer<vtkLookupTable>::New();
>  table->SetRange(0, 255); // image intensity range
>  table->SetValueRange(0.0, 1.0); // from black to white
>  table->SetSaturationRange(0.0, 0.0);
>  table->SetRampToLinear();
>  table->Build();
>
>  // Map the image through the lookup table
>  vtkSmartPointer<vtkImageMapToColors> color =
>  vtkSmartPointer<vtkImageMapToColors>::New();
>  color->SetLookupTable(table);
>  color->SetInputConnection(reader->GetOutputPort());
>
>
> > Message du 20/07/11 14:35
> > De : "Prathamesh Kulkarni"
> > A : "VTK Mailing List"
> > Copie à :
> > Objet : [vtkusers] enhancing contrast of VTK image
>
> >
> >
>
>
> >
>
> Hello VTK users,
>
>
> >
>
> I wish to enhance the contrast and/or adjust the brightness of an image
> rendered using VTK. After looking at the previous posts, I could not find a
> class in VTK which can help with that.
>
>
> >
>
> Could someone please point me to the right direction?
>
>
> >
>
> Thanks,
>
> Prathamesh
>
> >
> > [ (pas de nom de fichier) (0.3 Ko) ]
>
>
>
> <https://compte.laposte.net/inscription/index.do?jeux=2011FOOTER_generique>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20110720/5536abf0/attachment.htm>


More information about the vtkusers mailing list