Need help or advice ? Come to the Icy club ! - Every Wenesday morning from 9h30 to 12h30 - Francois Jacob Building - Main hall - Pasteur
Register

Point Inside ROI

by tprovoost / Thomas Provoost

Computes if a point is inside an ROI or not.

version 1 (last version):

download to use and modify in Icy. How do I use scripts ? A Problem ? ask the community.
Changelog for this version: 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...")

This script has no documentation. A Problem ? ask the community.



Icy script publication Id : W7N3P3