Short Description

Computes if a point is inside an ROI or not.

Versions

  • Version 1 • Released on: 2013-03-11 14:05:14
    Download
    Description:

    initial version

    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...")

Leave a Review