Fixed the issues with calculating the energy matrix that I encountered when switching the C++ code over to Java.  Next part of implementation will include finding the minimum path and carving the image.  With work of the GUI to edit the images coming after that.