The method for calculating the cavity length from maximum standard deviation of the gray level is proposed. The relationship between the cavity length and the pressure ratio is discussed. The influence of cavitation structure change on the development tendency of cavity length is illustrated.