sialorama/Overlapped-chromosome-segmentation-and-separation — reverse-engineered prompt
Reverse engineered prompt
Build me a Python tool for segmenting overlapped and touching chromosomes from G Band metaphase images, so someone can load an image and get back the separated chromosome pieces for karyotyping work.
I want it to use the existing ideas in this repo, including finding concave contour points, making separation guesses, and using the region guided network code if it is usable. Please make it easy to run from the command line, with an input image folder and an output folder. Save clear results like the original image, the detected chromosome mask, the cut or separation lines, and each separated chromosome as its own image.
Use the sample figures in the repo as a basic demo if there is no dataset included. Add simple setup instructions, make sure requirements install cleanly, and include a small test or example command so I can tell it works. If anything is missing, make a reasonable placeholder and explain what real data or model weights are needed. Look up current docs online if you need to.
Want more depth? Deep Reverse