# Developer needed for automatic load images, export segmentations

**URL:** https://discourse.slicer.org/t/developer-needed-for-automatic-load-images-export-segmentations/13012
**Category:** Jobs
**Tags:** segmentation, extensions-manager, dicom, python
**Created:** [August 15, 2020, 1:41pm UTC](https://discourse.slicer.org/t/developer-needed-for-automatic-load-images-export-segmentations/13012 "2020-08-15T13:41:32Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![NoobForSlicer](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/noobforslicer/32/10900_2.png) [@NoobForSlicer](https://discourse.slicer.org/u/NoobForSlicer)
#### Post date: [August 15, 2020, 1:41pm UTC](https://discourse.slicer.org/t/developer-needed-for-automatic-load-images-export-segmentations/13012/1 "2020-08-15T13:41:32Z")

</div>

Hello, this is a thread for anyone who is interested to make some money and also develop a slicer script:

Here is the script description:

Script that goes through a $Mainfolder  
and opens every $Subfolder.

In each Subfolder there is a set of .PNG images to be loaded into a volume.

Based on the name of the first image (first image name is basically a int number separated from a string value by a comma, create transformation and apply it to the volume. the transformation should be made using the int number from the name of the image)

Create segmentation based on threshold parameters usind the threshold method.

Show 3D and smoothen by 0.3 instead of default 0.5

Export segmentation and rename the exported .obj file to hold ($stringvaluefromtheimage name, int value from the name of the first image, int value from the name of the last image)

How much would you require for such a script?  
Thank you all \<3

---

<div class="post-metadata">

### Author: ![Alex\_Vergara](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/alex_vergara/32/15205_2.png) [@Alex\_Vergara](https://discourse.slicer.org/u/Alex_Vergara)
#### Post date: [August 15, 2020, 3:15pm UTC](https://discourse.slicer.org/t/developer-needed-for-automatic-load-images-export-segmentations/13012/2 "2020-08-15T15:15:31Z")

</div>

Some sample images would be nice to evaluate the feasibility of the job. Regards

---

<div class="post-metadata">

### Author: ![NoobForSlicer](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/noobforslicer/32/10900_2.png) [@NoobForSlicer](https://discourse.slicer.org/u/NoobForSlicer)
#### Post date: [August 15, 2020, 8:36pm UTC](https://discourse.slicer.org/t/developer-needed-for-automatic-load-images-export-segmentations/13012/3 "2020-08-15T20:36:00Z")

</div>

images are around 4000x2000 png format.  
Usually in the sets are anywhere from 30-400 images  
each image is around 3-4 mb.

the images contain already segmented specimen so there is usually only 1 color and it should entirely be painted, evenything else is black. so same treshold settings can be used for entire set of images.

I could post a sample on monday because its weekend but i don’t know what we could learn new from it. I can answer all details and questions you’d need by monday already.

So please ask whatever questions you have, I think I am ready to answer

---

<div class="post-metadata">

### Author: ![Alex\_Vergara](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/alex_vergara/32/15205_2.png) [@Alex\_Vergara](https://discourse.slicer.org/u/Alex_Vergara)
#### Post date: [August 17, 2020, 8:34am UTC](https://discourse.slicer.org/t/developer-needed-for-automatic-load-images-export-segmentations/13012/4 "2020-08-17T08:34:46Z")

</div>

I would need a regular expression for the files inside folder, or an assertion that all files inside the folder shall be processed (no exceptions).

I need to know if all files in a folder are suppossed to be slices of a single 3d volume, in this case I will need the voxel size (width, height, depth) in mm.

How do I know the order of loading? The images are numbered, how?

Where do you want the output? (same folder, folder selection dialog)

---

<div class="post-metadata">

### Author: ![NoobForSlicer](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/noobforslicer/32/10900_2.png) [@NoobForSlicer](https://discourse.slicer.org/u/NoobForSlicer)
#### Post date: [August 17, 2020, 11:09am UTC](https://discourse.slicer.org/t/developer-needed-for-automatic-load-images-export-segmentations/13012/5 "2020-08-17T11:09:45Z")

</div>

Image file names look like this:  
“0001, tumor.png”  
“0002, tumor.png”  
All files in the folder shall be processed. If subfolders present in that same folder with that set of images, they hold info data and shall not be processed further.

Yes I can get the voxel size i wuold have to check.

Order of loading the images because of their names.  
“0001, tumor.png”  
“0002, tumor.png”  
“0003, tumor.png”  
“0004, tumor.png”

Output on the Desktop folder called “Output”  
In this case output file name should be “tumor” not the numbers of the each image.

---

<div class="post-metadata">

### Author: ![Alex\_Vergara](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/alex_vergara/32/15205_2.png) [@Alex\_Vergara](https://discourse.slicer.org/u/Alex_Vergara)
#### Post date: [August 17, 2020, 11:41am UTC](https://discourse.slicer.org/t/developer-needed-for-automatic-load-images-export-segmentations/13012/6 "2020-08-17T11:41:46Z")

</div>

Thanks, I will prepare a mockup and will let you know. it shall be ready today.

more details please write to me in pv

---

<div class="post-metadata">

### Author: ![Alex\_Vergara](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/alex_vergara/32/15205_2.png) [@Alex\_Vergara](https://discourse.slicer.org/u/Alex_Vergara)
#### Post date: [August 17, 2020, 1:31pm UTC](https://discourse.slicer.org/t/developer-needed-for-automatic-load-images-export-segmentations/13012/7 "2020-08-17T13:31:45Z")

</div>

I need a valid email from you to add you to the github project
