ImageJ commands translated to MATLAB

6 views (last 30 days)
AbioEngineer
AbioEngineer on 15 Dec 2020
Commented: Image Analyst on 15 Dec 2020
Hi All,
I have some imageJ commands in an .ijm macro script that I am trying to accomplish in MATLAB instead, but I'm not sure exactly how they translate.
ImageJ in bold:
selectWindow("1"); I'm guessing this is unnecesary since I could just directly apply some function to a variable in a MATLAB script
run("Duplicate...", "title=white"); Also unnecessary, could just make a temporary variable that's a copy of the image matrix
setForegroundColor(255, 255, 255); Would I just set all the elements in a matlab image array to this?
run("Select All");
run("Fill", "slice"); Not sure what this does, can anyone help?
run("Select None");
run("Grays"); Is this a LUT?
run("RGB Color"); No clue what this is
run("RGB Stack"); No clue what this is
imageCalculator("Subtract create stack", "white","1"); I can understand how what it means to subtract one image from another, but what does "create stack" do?
run("Z Project...", "projection=[Min Intensity]"); No clue what this is
imageCalculator("Average stack", "img1","img2"); Does this average every pixel in img1 with their corresponding pixel in img2? or is it more complex?
  1 Comment
Image Analyst
Image Analyst on 15 Dec 2020
Doesn't this chunk of code have any comments in it to explain what's going on? Or was it written by a bad programmer? You're going to have to look up the functionality of those things in the ImageJ help on your own.

Sign in to comment.

Answers (0)

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!