Create simple jupyter notebook with widget for visualizing ROIs from the database. Meant to view and select based on size and shape, i.e. for good examples for training. The notebook has to be run somewhere with connection to the database to work.
Added methods to generate a "postage stamp" of the ROI. Can specify a canvas size. If it's larger than the ROI, will pad the canvas size with the ROI centered. Note that this is a "naive" center -- the center of the minimal rectangle that contains all the coordinates.
Create simple jupyter notebook with widget for visualizing ROIs from the database. Meant to view and select based on size and shape, i.e. for good examples for training. The notebook has to be run somewhere with connection to the database to work.
Added methods to generate a "postage stamp" of the ROI. Can specify a canvas size. If it's larger than the ROI, will pad the canvas size with the ROI centered. Note that this is a "naive" center -- the center of the minimal rectangle that contains all the coordinates.
Screenshot of the notebook: