I've got an image and I want to obtain the centerlines of the image. (Input image) I could obtain the centerlines using the following commands
img = Input_image
gray = ImagePad[ImageCrop[ColorConvert[img, "Grayscale"], ImageDimensions[img] - 6],10]
bin = Binarize[gray, 0.07]
skeleton = Pruning[Pruning@Thinning[bin], 15]
Now, I would like to obtain the centerlines for a particular region of the original image ( the region below the white marking - image). Could someone suggest how this can be done?