[vtkusers] vtkImageMathematics (A NOT B type Operation)?

Mallikarjun K mallikarjun49 at gmail.com
Tue Aug 12 12:27:14 EDT 2014


Thanks Bill,

I haven't looked at vtkImageLogic. I will try this one.




On Tue, Aug 12, 2014 at 9:32 PM, Bill Lorensen <bill.lorensen at gmail.com>
wrote:

> Did you look at vtkImageLogic?
>
>
>
> On Tue, Aug 12, 2014 at 11:56 AM, Mallikarjun K <mallikarjun49 at gmail.com>
> wrote:
>
>> Hi ftouvet,
>> Thanks for the reply and suggestion.
>>
>> Sorry for the confusion..Let me illustrate the question like this...
>>
>>       vtkImageMathematics *maths = vtkImageMathematics::New();
>>         maths -> SetOperationToSubtract();
>>         maths -> SetInput1(ImageDataA);
>>         maths -> SetInput2(ImageDataB);
>>         maths -> Update();
>>
>> When I use this subtract method ,I am getting the Output like this as
>> shown in below fig(A XOR B).
>>                      [image: Inline image 1]
>> But the Output what I wanted is like this as shown in below fig(A NOT B).
>>                       [image: Inline image 2]
>>
>> Somehow I make use of existing methods from this filter and pulled the
>> output what I wanted.
>> I did like this...Inverted ImageDataB and multiplied with ImageDataA.
>>
>> Output=multiply(ImageDataA,Invert(ImageDataB)).
>>
>>
>> Thank you
>>
>>
>>
>>
>>
>>
>>
>>
>> On Mon, Aug 11, 2014 at 3:53 PM, ftouvet <francois.touvet at inria.fr>
>> wrote:
>>
>>> not sure of what you are talking about and if my answer will be
>>> relevant, but
>>> this kind of operation can be done on polydatas with
>>> vtkBooleanOperationPolyDataFilter
>>> <
>>> http://www.vtk.org/doc/nightly/html/classvtkBooleanOperationPolyDataFilter.html
>>> >
>>> .
>>>
>>>
>>>
>>> --
>>> View this message in context:
>>> http://vtk.1045678.n5.nabble.com/vtkImageMathematics-A-NOT-B-type-Operation-tp5728130p5728173.html
>>> Sent from the VTK - Users mailing list archive at Nabble.com.
>>> _______________________________________________
>>> Powered by www.kitware.com
>>>
>>> Visit other Kitware open-source projects at
>>> http://www.kitware.com/opensource/opensource.html
>>>
>>> Please keep messages on-topic and check the VTK FAQ at:
>>> http://www.vtk.org/Wiki/VTK_FAQ
>>>
>>> Follow this link to subscribe/unsubscribe:
>>> http://public.kitware.com/mailman/listinfo/vtkusers
>>>
>>
>>
>>
>> --
>> *Regards:*
>> Mallik
>>
>>
>> _______________________________________________
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at
>> http://www.kitware.com/opensource/opensource.html
>>
>> Please keep messages on-topic and check the VTK FAQ at:
>> http://www.vtk.org/Wiki/VTK_FAQ
>>
>> Follow this link to subscribe/unsubscribe:
>> http://public.kitware.com/mailman/listinfo/vtkusers
>>
>>
>
>
> --
> Unpaid intern in BillsBasement at noware dot com
>



-- 
*Regards:*
Mallik
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20140812/a144958e/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 19108 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20140812/a144958e/attachment-0002.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 21818 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20140812/a144958e/attachment-0003.png>


More information about the vtkusers mailing list