importClass(Packages.icy.sequence.Sequence) importClass(Packages.java.awt.geom.Point2D) seq = getSequence() roi = seq.getSelectedROI2D() if (roi == null) throw "No ROI on the focused Sequence" if (roi.contains(256, 256)) println("Point is inside the ROI!") else println("Point is outside the ROI...")