K-Means Image Segmentation on Apache Spark
br.gsj.spark.kmeans.ImageSegmentation - Run the segmentation of an image. The image is loaded by the variable path and the result will be saved in the same folder with the addition of "_result" in the end.
br.gsj.spark.kmeans.ImageOptimalKComputation - Run the computation of the optimal K for an image. The image is loaded by the variable path. Check the variable writer, it will define where the graph will be stored.
src/main/resources - Some image to run as examples