How to annotate X-Ray or CT images and exporting with that/these annotation information(s) ?

Hi everyone,

I’m completely new for the tool and I’d like to ask that is it possible to annotate medical images let’s say for a brain tumor and exporting that annotation information such as coordinates (Xmin Ymin Xmax Ymax) ?

If it is possible is there any documentation for this because I’ve not seen any about it.

The main question is that can I use 3D Slicer for annotation tool for making images ready to be trained in AI models?

Yes, it’s very common to annotate images in Slicer for AI. See MONAILabel for example. Also you can easily save annotations in various formats.


Hi,

I was using Nvidia Clara extension but couldn’t get the result the way I want. What I want is to annotate, let’s say brain tumor, and save the annotations of every slices in text format. As you know, Clara identifies tumor for every slices in ct images when you locate the tumor in only one slice, the rest is taken care.

This is the format I need:

Slice_name, xmin, ymin, xmax, ymax
Slice_001 0 130 512 429

the coordinates indicates the rectangle of annotation. I share two different slices of brain tumor case done by nvidia clara tool in 3D Slices preview version. How can I extract annotation information in the format I described? I mean, if Nvidia Clara identifies tumor in every slices, there must be coordinates of annotations for every slices, right?

Kind regards.

Such slice-by-slice bounding boxes are okay, but full segmentations are more meaningful and that’s why we mostly focus on them as in the MONAILabel code. You would probably be better to shift your work in that direction.

But if you need to know coordinates you can extract them by getting the mins and maxes from the list of coordinates returned by numpy.where as in this example.

https://slicer.readthedocs.io/en/latest/developer_guide/script_repository.html?highlight=numpy.where#get-the-values-of-all-voxels-for-a-label-value

2 Likes