Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PNG / NPY IO #13

Closed
asmagen opened this issue Jun 2, 2020 · 3 comments
Closed

PNG / NPY IO #13

asmagen opened this issue Jun 2, 2020 · 3 comments
Assignees
Labels
question Further information is requested

Comments

@asmagen
Copy link

asmagen commented Jun 2, 2020

Hello @muellerdo,

How do I perform multi class semantic (instance) segmentation over my set of 2D PNG/TIF grayscale images and their corresponding masks file (NPY numpy array, TIF or any other) matrix representation with # channels corresponding to the classes?
Do I need to use NIFTI_interface? If so, how do I convert my PNG/TIF/NPY files to this format?

Thank you

@muellerdo
Copy link
Member

muellerdo commented Jun 3, 2020

Hey @asmagen,

thanks for your interest in MIScnn.

Yesterday, I implemented an image IO interface for more intuitive and easier integration of 2D image formats into MIScnn.

You have always the possibility to implement a custom data IO interface for your own file structure, but now you can also use the Image_interface class with a given fixed file structure.

I added an documented example of using the Image_interface on the ISBI cell tracking challenge 2015.
https://github.com/frankkramer-lab/MIScnn/blob/master/examples/CellTracking.ipynb

matrix representation with # channels corresponding to the classes

The number of channels is defined by your imaging data. Grayscale has 1 channel whereas RGB has 3 channels.

I hope that I was able to help you.
If you have further questions don't hesitate to ask.

Also I'm always interested in projects using MIScnn, so if you want to share your project/code as an usage example, you are more than welcome :)

Cheers,
Dominik

PS:
Copy & Paste? :P
black0017/MedicalZooPytorch#5
Project-MONAI/MONAI#471

@muellerdo muellerdo added the question Further information is requested label Jun 3, 2020
@muellerdo muellerdo self-assigned this Jun 3, 2020
@asmagen
Copy link
Author

asmagen commented Jun 9, 2020

Thank you. Regarding more project info and questions, I thought you might have an insight to suggest for my post here.

@muellerdo
Copy link
Member

I'm sorry to say that due to time limiting issues currently, I am unable to provide support for non-related MIScnn questions.

But segmentation_models is a remarkable and popular package, so I'm optimistic that you will find good support there! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants