-
Notifications
You must be signed in to change notification settings - Fork 1
/
CD206.groovy
20 lines (18 loc) · 2.34 KB
/
CD206.groovy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
setImageType('BRIGHTFIELD_H_DAB');
setColorDeconvolutionStains('{"Name" : "H-DAB default", "Stain 1" : "Hematoxylin", "Values 1" : "0.65111 0.70119 0.29049 ", "Stain 2" : "DAB", "Values 2" : "0.26917 0.56824 0.77759 ", "Background" : " 255 255 255 "}');
selectAnnotations();
mergeSelectedAnnotations();
//runPlugin('qupath.imagej.detect.tissue.SimpleTissueDetection2', '{"threshold": 230, "requestedPixelSizeMicrons": 20.0, "minAreaMicrons": 1000000.0, "maxHoleAreaMicrons": 10000.0, "darkBackground": false, "smoothImage": true, "medianCleanup": true, "dilateBoundaries": false, "smoothCoordinates": true, "excludeOnBoundary": true, "singleAnnotation": true}');
selectAnnotations();
runPlugin('qupath.imagej.detect.cells.PositiveCellDetection', '{"detectionImageBrightfield": "Hematoxylin OD", "requestedPixelSizeMicrons": 0.5, "backgroundRadiusMicrons": 8.0, "medianRadiusMicrons": 0.0, "sigmaMicrons": 1.5, "minAreaMicrons": 10.0, "maxAreaMicrons": 400.0, "threshold": 0.1, "maxBackground": 2.0, "watershedPostProcess": true, "excludeDAB": false, "cellExpansionMicrons": 5.0, "includeNuclei": true, "smoothBoundaries": true, "makeMeasurements": true, "thresholdCompartment": "Cell: DAB OD max", "thresholdPositive1": 0.8, "thresholdPositive2": 0.4, "thresholdPositive3": 0.6000000000000001, "singleThreshold": true}');
//runPlugin('qupath.imagej.detect.cells.WatershedCellDetection', '{"detectionImageBrightfield": "Hematoxylin OD", "requestedPixelSizeMicrons": 0.5, "backgroundRadiusMicrons": 0.0, "medianRadiusMicrons": 0.0, "sigmaMicrons": 1.5, "minAreaMicrons": 10.0, "maxAreaMicrons": 40.0, "threshold": 0.06, "maxBackground": 2.0, "watershedPostProcess": true, "excludeDAB": false, "cellExpansionMicrons": 5.0, "includeNuclei": true, "smoothBoundaries": true, "makeMeasurements": true}');
//runClassifier('C:\\Users\\edmondsonef\\Desktop\\QuPath\\Rudloff\\MHL 200292\\classifiers\\lung.qpclassifier');
//SAVE ANNOTATIONS //
//def name = getProjectEntry().getImageName() + '.txt'
//def path = buildFilePath('C:/Users/edmondsonef/Desktop/QuPath/Young/PHL 190246/', 'CD206')
//def path = buildFilePath('P:/archive/PHL/Edmondson/QuPath/Young/PHL 190350/', 'CD206')
//def path = buildFilePath(PROJECT_BASE_DIR, 'CD206-1')
//mkdirs(path)
//path = buildFilePath(path, name)
//saveAnnotationMeasurements(path)
//print 'Results exported to ' + path