10-20-2016 09:03 AM
@zou wrote:Put the content of the subVI in your VI.
Try the modified VI.
Nice! I had to convert "Waveguide Coordinates" to I16 to properly draw those points
Morover, you have to assign a color only once, so this part may be moved outside the N Loop
Furthermore, you may use the Sub-Vi "Overlay-Images-1_MOD.vi" inline
and parallize the N Loop
10-21-2016 08:28 AM
thanks everybody for the input!
all your ideas work ... so far altenbach's solution is the fastest one.
i've tested it with a large pattern.
the solution by zou/alexderjuengere took ~1s.
the solution by altenbach took 90ms.
10-21-2016 10:22 AM
If you know that every picture has exactly one black pixel, maybe doing a comparison to black and then ORing the results might work.
Lynn
10-21-2016 12:01 PM
Just blindly writing a pixel is faster than ORing, because ORing requires reading the current value first.