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

Oval Grid

by tprovoost / Thomas Provoost

Usable on global view of a 96-Well Plates. It creates a grid of oval ROIs on the sequence and computes the mean intensity.

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.roi.ROIUtil)
importClass(Packages.icy.roi.ROI2D)
importClass(Packages.icy.sequence.Sequence)
importClass(Packages.icy.roi.ROI2DEllipse)
importClass(Packages.java.awt.geom.Point2D)

seq = getSequence()
size = 34
space = 56
xa = 191 - 34 / 2
ya = 180 - 34 / 2
xb = 191 + 34 / 2
yb = 180 + 34 / 2

for (i = 0; i < 12; i = i + 1) {
	for (j = 0; j < 8; j = j + 1) {
		xai = xa + space * i
		yai = ya + space * j

		xbi = xb + space * i
		ybi = yb + space * j

		topLeft = new Point2D.Double(xai, yai)
		bottomRight = new Point2D.Double(xbi, ybi)
		roi = new ROI2DEllipse(topLeft, bottomRight)
		intensity = ROIUtil.getMeanIntensity(seq, roi)

		println("" + (j + 1) + "\t" + (i + 1) + "\t" +  intensity)
	}
}

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



Icy script publication Id : O5R6J9