vtkImageMask

Adrian Anner a.anner at medres.ch
Mon Oct 11 05:55:41 EDT 1999


hello

I want to mask two BMP files, my code :

 // read the files
  vtkBMPReader *BMPReader1 = vtkBMPReader::New();
    BMPReader->SetFileName("maske.bmp");

  vtkBMPReader *BMPReader2 = vtkBMPReader::New();
    BMPReader2->SetFileName("file.bmp");

// mask the images
 vtkImageMask *mask = vtkImageMask::New();
    mask->SetMaskedOutputValue(0);
    mask->SetImageInput(BMPReader2->GetOutput());
    mask->SetMaskInput(BMPReader1->GetOutput());

I get the following error:

ERROR in c:\vtk2.3\imaging\vtkImageMask.cxx, line 214
vtkImageMask(0x00428830); Mask can have one Component.


regards,

Adrian




-----------------------------------------------------------------------------
This is the private VTK discussion list.  Please keep messages on-topic.
Check the FAQ at: <http://www.automatrix.com/cgi-bin/vtkfaq>
To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to
<majordomo at gsao.med.ge.com>.  For help, send message body containing
"info vtkusers" to the same address.     Live long and prosper.
-----------------------------------------------------------------------------




More information about the vtkusers mailing list