Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Automating image segmentations from multiple input and mask files

New Here ,
Oct 18, 2022 Oct 18, 2022

Hi all,

 

I am working on some image analyses for my research that are based on colors found in specific parts of flowers. I used the program Ilastik to create segmentations from a large training set of image. As far as I can tell, Ilastik can only output black and white images from the resulting segmentation training.

 

Our pipeline currently looks like this:

The original image Original Image (OG)expand image

the segmentation showing just the petalsSegmented to only include petals (S_p)expand image

the segmentation showing all the parts of the flower we wantSegmented to include all the parts we want (S_all)expand image

Ultimately we just want the petals in one image and the anthers in another preferably as jpgs or pngs (like shown below) but these were created manually using the load selection tool, deleting the selection then saving the file. I tried recording those actions but was unable to get it to automate the selection of the masking file.

104414921_anthers.pngexpand image104414921_petals.pngexpand image

The difficult part is automating this across nearly 500,000 images. We have a dedicated computer to do this on we just aren't sure how to automate this. I did come across this script, but have been unable to get it working. https://github.com/MarshySwamp/Combine-Image-Mask-Images-to-PSD 

 

Any help is appreciated.

TOPICS
Actions and scripting , Windows
224
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
no replies

Have something to add?

Join the conversation
Adobe