The objective is to: *Reduce greatly the number of lines of code in the Java codes; *Make it easy for Java users to add a trackbar and show the results; *Get the code more similar between C++, Java and Python, making the tutorials more uniform.