Image Processing and Lattice Determination for Three-Dimensional Nanocrystals