thanks to your help and kindness, i was able to write a script that does the following job for an image:
1) perform positive cell detection and measurement calculation
2) export measurements as .csv file
3) export location of the objects utilizing the script as .png file, as suggested by the following link
now i'm trying to apply the script over TMA cores.
step 1) was easily done by running script after tissue detection on TMA cores, but step 2) and 3) do not seem to be straightforward to me. i want to create the output files per each core, named as [corename].csv and [corename].png. to do so, i guess it has to be something like
for (core in getTMACoreList()) {
model.setImageData(imageData, imageData.getHierarchy().getObjects(null, PathDetectionObject.class)); <- it has to specify objects belonging to the core
for (object in model.getEntries()) {
create masks and measurements
save files
}
}
do you think it's possible? thanks in advance!