/** * MRI Ovocytes Tool * * The Ovocytes Tool acquires images from the live window of the camera and measures the * surface of the ovocyte in the image in a configurable time interval. * * written 2013 by Volker Baecker (INSERM) at Montpellier RIO Imaging (www.mri.cnrs.fr) * in collaboration with Colette TOURNAIRE-ROUX (UMR 5004) */ var helpURL = "http://dev.mri.cnrs.fr/projects/imagej-macros/wiki/Ovocyte_Tool" var TIME_INTERVAL = 20; var NUMBER_OF_IMAGES = 7; var THRESHOLD_METHOD = "Huang"; var MIN_SIZE = 20000; var MAX_SIZE = 850000; var LIVE_VIDEO_WIN = "GigE Live Video"; var THRESHOLDING_METHOD = "Huang"; macro "Unused Tool -" {} macro "Ovocytes Tool Help Action Tool - C037T4d14?"{ run('URL...', 'url='+helpURL); } macro "GigEVison Camera Action Tool - Cf00 L30f0 L21e1 L12d2 L03c3 L46c6 L37b7 L28a8 L1999 L3cfc L2ded L1ede L0fcf " { run("IJ PtGigEControl"); } macro "Analyze Ovocyte Action Tool - C037T4d14s" { setBatchMode(true); print("\\Clear"); print("\\Update0:" + "image 1 / " + NUMBER_OF_IMAGES); run("Set Measurements...", "area redirect=None decimal=3"); selectWindow(LIVE_VIDEO_WIN); run("Duplicate...", "title=["+LIVE_VIDEO_WIN+"-1]"); time1 = getTime(); measureOvocyte(); close(); setResult("Time", nResults-1, 0.0); updateResults(); for(i=0; i