hact-net icon indicating copy to clipboard operation
hact-net copied to clipboard

tissue detection

Open Rukhmini opened this issue 3 years ago • 2 comments
trafficstars

How to get the tissue detection visualization from SLIC algorithm like the tissue detection shown in the entity detection part?

Rukhmini avatar Apr 06 '22 00:04 Rukhmini

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))

afoncubierta avatar Apr 06 '22 07:04 afoncubierta

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)

Rukhmini avatar Apr 06 '22 16:04 Rukhmini