starting over in attempt to make all matlab version with a gui, independent of imageJ