- This topic has 4 replies, 2 voices, and was last updated 6 years ago by .
Viewing 5 posts - 1 through 5 (of 5 total)
Viewing 5 posts - 1 through 5 (of 5 total)
- You must be logged in to reply to this topic.
Home › Forum › SOFA › Using SOFA › [SOLVED] how to use node output as "param" for ImageFilter?
Tagged: 64_bits, Image, Linux_ubuntu, SOFA_1712
Hi,
I want to use the output field “position” of a mechanical object as the input field “param” in an ImageFilter node.
The problem is, only the x coordinates of “position” are passed as in [x,x,x… ]. I need [x,y,z x,y,z …]
What should I do?
<ImageContainer name="loader" filename="data/whitebeam.png" drawBB="false" />
<ImageFilter name="selectchannel" src="@loader" filter="21" param="0"/>
<ImageFilter name="extruder" inputImage="@selectchannel.outputImage" filter="20" param="@parent.position" inputTransform="-0.5000 -2.5000 0.0000 0.00 0.00 0.00 0.0100 0.0100 1.0000 0 1 0"/>
To anyone who has time to look at this, here is a link to the image in the code snippet: here is a 100×500 white beam png image
Cheers
Ignore this question. It makes no sense what I was trying to do.
Hi @mjbarrow
Data in SOFA can be connected if they have the same type.
If not, or if some processing is necessary, maybe consider going towards python no ?
Best
Hugo
Thanks for looking at this Hugo.
I had gotten confused about how the image filter works. I think this thread would be better of being deleted
WARNING
The forum has been moved to GitHub Discussions.
Old topics and replies are kept here as an archive.