source code from Dr.Hsu
fix compiler error
upgrade ImageJ library; invoke contrast enhancement through function call instead of menu operation