angelolab / Nimbus

Other
12 stars 1 forks source link

Added SimpleTFRecords class for handling MSK data #42

Closed JLrumberger closed 1 year ago

JLrumberger commented 1 year ago

What is the purpose of this PR?

This PR closes #41 by adding a subclass SimpleTFRecords that inherits from SegmentationTFRecords. Instead of requiring a conversion_matrix, it requires a cell_table that contains column $marker+self.gt_suffix that contains 0s/1s/2s labels for each cell segment.

How did you implement your changes

I subclasses SegmentationTFRecords, implemented new functions for __init__, get_image and get_inst_binary_masks. In SegmentationTFRecords.load_and_check_input everything that is specific to conversion_matrix-based GT-generation is moved to check_additional_inputs.

Remaining issues

None