Hi!
I have a csv with bounding boxes that I want to import in to QuPath for multiple slides.
I know how to do this for one slide at the time:
imageData.getHierarchy().addPathObject(annotation, false)
imageData = getCurrentImageData()ode here...
However, when I try and loop over slides this does not work for me:
for (entry in project.getImageList()) {
def fileData = QuPathGUI.getImageDataFile(project, entry)//
def hierarchy = PathIO.readHierarchy(fileData)
// Can use this also: imageData = QPEx.loadImageData(fileData.getAbsolutePath(), true)
//// code to get annotation ////
hierarchy.addPathObject(annotation, false)
The code runs and console message is: "Adding XXX to hierarchy". However, when I using the GUI switch to these slides, the annotations are not there.
Any idea of what is going on?
Thanks a lot for your help,
Henrik