If your camera doesn't move much it might be possible to only calculate the mask once in a while since trees don't typically move much either. This could be done every 30 seconds or so and saved as a Marker which is used to mask the final image. That would save you a couple steps and increase the fps.
Also, check if you can't use a smaller image. Planes are quite big in the image so scaling the image by 2x would still work and be 4x quicker.
If you have any questions/issues about RoboRealm or image processing this is your chance to ask a question.
Your question and any responses will be posted to the forum section of the website for others to read and learn from.
Note that any submission will be considered property of RoboRealm. If you do not wish your images to be
displayed as part of the RoboRealm site please do not submit those images.
Any submission may be removed from the website at the discretion of RoboRealm personnel.