Multiwavelength light transmission imaging provides a possibility for early detection of breast cancer. However, due to strong scattering during the transmission process of breast tissue analysis, the transmitted image signal is weak and the image is blurred and this makes heterogeneous edge detection difficult. This paper proposes a method based on the weighted constraint decision (WCD) method to eliminate the erosion and checkerboard effects in image histogram equalization (HE) enhancement and to improve the recognition of heterogeneous edge. Multiwavelength transmission images of phantom are acquired on the designed experimental system and the mask image with high signal-to-noise ratio (SNR) is obtained by frame accumulation and an Otsu thresholding model. Then, during image enhancement the image is divided into low-gray-level (LGL) and high-gray-level (HGL) regions according to the distribution of light intensity in image. And the probability density distribution of gray level in the LGL and HGL regions are redefined respectively according to the WCD method. Finally, the reconstructed image is obtained based on the modified HE. The experimental results show that compared with traditional image enhancement methods, the WCD method proposed in this paper can greatly improve the contrast between heterogeneous region and normal region. Moreover, the correlation between the original image data is maintained to the greatest extent, so that the edge of the heterogeneity can be detected more accurately. In conclusion, the WCD method not only accurately identifies the edge of heterogeneity in multiwavelength transmission images, but it also could improve the clinical application of multiwavelength transmission images in the early detection of breast cancer.