danforthcenter/plantcv-annotate

Napari: draw points as mask

Closed this issue · 0 comments

New Function: I looked into just exporting a napari layer to then create a mask from, but it looks like that 'image' is truncated to the largest x,y extent (e.g. the exported layer would not be the same size as the original image). Therefore I think it would be easier to just take the points and use cv2 to draw the points on .

What would this be used for? This would be incorporated into a pipeline for naive bayes for example to get the color values for each class. The next step would have to be something that formats color data into a format that would be accepted into naive bayes.