Posted by
Krs5 on
URL: http://imagej.273.s1.nabble.com/Specifying-a-predetermined-ROI-tp5023001p5023013.html
Dear Abdul,
Below 2 alternative ways to try to extract the area you are interested in. When testing take care that the ROI manager is empty.
------------code 1---------------
run("Colors...", "foreground=white background=black selection=red");
run("Duplicate...", "title=copy");
waitForUser("Draw the border of the ischemic lesion and select \"OK\"");
roiManager("add");
run("Line to Area");
run("Enlarge...", "enlarge=200");
run("Clear Outside");
roiManager("Select", 0);
--------------------code 2 ---------------
run("Colors...", "foreground=white background=black selection=red");
setTool("freeline");
run("Duplicate...", "title=copy");
waitForUser("Draw the border of the ischemic lesion and select \"OK\"");
roiManager("add");
Roi.setStrokeWidth(134);
run("Straighten...");
getDimensions(width, height, channels, slices, frames);
makeRectangle(0, (0.5*height), width, height);
run("Crop");
Best wishes
Kees
Dr Ir K.R. Straatman
Senior Experimental Officer
Advanced Imaging Facility
Centre for Core Biotechnology Services
University of Leicester
www.le.ac.uk/advanced-imaging-facility
-----Original Message-----
From: ImageJ Interest Group <
[hidden email]> On Behalf Of Abdulhameed Bakreen
Sent: 03 March 2020 10:45
To:
[hidden email]
Subject: Re: Specifying a predetermined ROI
Hi guys,
Could someone kindly help me with how I could outline an irregular ROI but with predetermined size? I attached an image to help you visualize it. In the attached image, the enclosed region is the penumbral tissue where I would like to analyze morphology. How do I make this ROI 200 um wide from the border of the scar?
--
ImageJ mailing list:
https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fimagej.nih.gov%2Fij%2Flist.html&data=02%7C01%7Ckrs5%40leicester.ac.uk%7C39bd257b52a34665247708d7bf600ba8%7Caebecd6a31d44b0195ce8274afe853d9%7C0%7C1%7C637188291545788100&sdata=FTX6JR%2FeWXjPGxTyDcI6ATtlOB%2FVv%2FFBCJMTn81TOL8%3D&reserved=0--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html