What algorithm ImageModeler software use?

I want to try to recreate it with rust, I need help.
Thank you.