High contrast image

i’m running a python script to make 3d models of segmentation.
I have a series in which the images are very high contrast :

whenever i try to run my python script for this dicom series the process stuck or keep showing running in windows process.
is it due to the output size of 3D model ?