TissueMAPS / JtLibrary

Please use the https://github.com/TissueMAPS/TissueMAPS instead.
Apache License 2.0
0 stars 2 forks source link

Retrieval of saved objects #1

Closed hackermd closed 8 years ago

hackermd commented 8 years ago

The current approach for saving and retrieving objects is based on outline coordinates of objects.

  1. Outlines of objects in the labeled image are determined for each object: skimage.measure.find_contours()
  2. y, x coordinates are saved in the HDF5 file
  3. Coordinates are retrieved from the file
  4. The label image is reconstructed: cv2.fillPoly()

It needs to be tested whether this approach works reliably for different types of objects...

hackermd commented 8 years ago

The whole approach has changed in the meanwhile. Outlines are stored as polygons in the database and the label images are reconstructed from the polygon coordinates.