Questions tagged [imagej-macro]
89 questions
0
votes
1 answer
Merge RGB channels in ImageJ Javascript macro
I'm reading in cropped areas from three channel .svs images and saving the crops as .tiff images. Currently, the images are saving with separate RGB channels.
I crop the image this way:
var path = currentFolder + "images" + File.separator +…

abalter
- 9,663
- 17
- 90
- 145
0
votes
1 answer
Strange Javascript loop behavior in ImageJ macro (Rhino)
The loop
//imageRows = 6;
print("imageRows: " + imageRows);
for (var gridY = 1 ; gridY < imageRows + 1 ; gridY++)
{
print("imageRows: " + imageRows + " gridY: " + gridY + " gridY < imageRows + 1: " + (gridY < imageRows + 1));
…

abalter
- 9,663
- 17
- 90
- 145
0
votes
2 answers
How to output the intensity of every point using imageJ?
I want the intensity of every point of a picture, which function should I call? Let say the pixels of my picture is 125 x 125, I want the intensity of (0,0) to (125,125), is there a function so that I give a coordinate, it will return me an…

pill45
- 599
- 3
- 8
- 23
0
votes
1 answer
ImageJ - can not read out string from Results table after it has been saved
I'm writing a macro that creates a results table that looks like this:
Name value1 value2
string1 number number
string2 number number
At this point, if I use the getResultString("Name", 0) command in a loop I get the…

user3772045
- 5
- 3
0
votes
1 answer
ROI selection in ImageJ macro
I am trying to record a macro on Fiji (ImageJ). I cannot find how to introduce the use of the mouse for a ROI rectangular selection. The macro keeps the registered position, in the example (2290, 1224 , 160, 314). I want them to be different for…

catindri
- 384
- 5
- 14
0
votes
1 answer
Calculating surface and storing as Excel file
I'm new to imageJ and I am trying to analyze several images:
I have a code that can analyze color threshold for a set of images in a directory and store them separately:
input = "/m_3/ImageJ/test_folder/";
output =…

andschar
- 3,504
- 2
- 27
- 35
0
votes
1 answer
Selection problems after Bio Format Importer, czi and zvi Files, ImageJ
Hello I'm using ImageJ to analyse -czi and -zvi files. I'm using an automatic selection with "create selection" or "analyze particle"s. It's working well when openening/importing the files with ImageJ. But when I try to use the Bio-Format importer…

Nathalie
- 192
- 2
- 17
0
votes
1 answer
getResult() returns NaN for everything but "Area"
I'm trying to get the centroid's X and Y values from the Results table, but I can't use getResult() with anything but "Area". All other columns (which are regularly displayed on the table) return NaN.
I'm not using any special plugin, the table is…

Molx
- 6,816
- 2
- 31
- 47
0
votes
1 answer
ImageJ dialog path
I have a Dialog asking for Preferences, in this Dialog I would like to aks for a path. I'm doing this: Dialog.addString("Saving directory", directory);
... I'm asking for lot more.
but I would like to have open up a new window, where you can search…

Nathalie
- 192
- 2
- 17
0
votes
1 answer
ImageJ: Analyze Particles using ROI when Calculating Area %
I am a beginner using ImageJ. I have an image of a 4" diameter wafer with voiding. I 1st scale the image. I then do a Threshold Color, to highlight only the voids. I then put an ROI around wafer.
I then run the Analyze Particles routine, it…

Steve
- 1
- 1
0
votes
2 answers
I want to use ImageJ to transforma a grayscale TIF to a colored TIF
I have a TIF that was taken with only one color channel. It shows stuff that was Green or Red. But in the most image tools it is only shown as grayscale.
I want to transform this back to a colored image. That shows different values of Green or Red…

Janusz
- 187,060
- 113
- 301
- 369
-1
votes
1 answer
The file is not open in imagej
I wrote the code as follows in ImageJ.
But the image window is not created in open.
I want to load all the tif files into the folder and see them.

Young Min Jo
- 1
- 1
-1
votes
1 answer
How to perform Batch processing to Merge channels
I have two separate folders with equal number of images from microscopy (134 images in each folder). These are two different dyes for a specific cells. What i want to do is merging each image from one folder with its corresponding image from another…

Anderson
- 3
- 4
-1
votes
1 answer
How to average all files within a folder by image j macro
Hey I am new very new to programming in ImageJ macro, I would like to average all images in a folder, save that single average image in a separate folder

SUBHAM MRIDHA
- 3
- 1