hact-net
hact-net copied to clipboard
tissue detection
How to get the tissue detection visualization from SLIC algorithm like the tissue detection shown in the entity detection part?
You can use the OverlayGraphVisualization as shown in the following example: https://github.com/histocartography/histocartography/blob/7246799c7e23d3970a212d531e1324c41db411e1/examples/tissue_graph_generation.py
Basically you need
# define a graph visualizer
visualizer = OverlayGraphVisualization()
# compute *superpixels*, and build *graph* on *image*
...
# visualize and save the graph
canvas = visualizer.process(image, graph, instance_map=superpixels)
canvas.save(os.path.join('output', 'tissue_graphs_viz', image_name))
Thank you for your reply. I have already done this and it works fine but I need the result from the SLIC algorithm for the tissue detection where the tissue segmentation is shown in multiple color regions without the graph overlay (the tissue detection result from the entity detection part of the block diagram)