I am trying to segment the lungs in a CT scan. My method uses a KMeans with 2 cluster centers and then threshold the image into a binary with the average of the two cluster cent