Image analysis script errors with M9 milestone

Hello, last year my predecessor worked with someone to develop the code given below using the m2 version of qupath. This script analyzes each image, exports the data in a text file to a previously determined folder, generates a “heat-map” that visualizes stain intensity across the entire image, and exports the image of that heat-map. When I try to run this code using the m9 version I get the following errors:




Is there anyway that this can be altered to work with M9, if so can someone please help me? I have no experience with this

Super pixel and export.txt (6.8 KB)

Sounds very similar to:Problem running script from publication