[Insight-users] Segmentation fault with 2.2G data but not with smaller subset

lynx.abraxas at freenet.de lynx.abraxas at freenet.de
Tue Aug 11 15:28:38 EDT 2009


On 10/08/09 22:02:40, Gaëtan Lehmann wrote:
>
> Le 10 août 09 à 17:19, lynx.abraxas at freenet.de a écrit :
>> waste for binary data).  The  problem  is  that  the  masking  filter  
>> is  not
>> accepting a mask of 8-bit and a file to mask of 16-bit.
>
> It is able to do that. You just have to provide your 8 bit image type as 
> second template parameter.

I exchanged 
mask->SetInput(0, ws->GetOutput()); ----> mask->SetInput1(ws->GetOutput());
and
mask->SetInput(1, reader->GetOutput()); ---->  mask->SetInput2(reader->GetOutput());

and now I get no complains any more. Was I using the mask->SetInput(int, IType) form in a wront way?

Regards,
Lynx


More information about the Insight-users mailing list