For example, let's say I have a stack of 20 images, and I want to combine every 4 images in the stack together (add the values up) and get a new stack of just 5 images.
How to combine sets of images in a stack in imageJ?
180 Views Asked by Armin Zjajo At
2
There are 2 best solutions below
0
anerlich
On
Summing up the slices ("Projection Method: Sum Slices") will automatically convert the image to 32-bit. No need to convert to 32-bit first (as I also just figured out recently).
//
run("MRI Stack");
run("Grouped Z Project...", "projection=[Sum Slices] group=3");
run("Show Info...");
//
Related Questions in IMAGEJ
- Image processing approach
- Fiji not recognizing built in macro functions
- ImageJ Fast filters plugin
- Error loading OpenCV in Java for Image Processing
- ROI selection in ImageJ macro
- ImageJ (plugin Java): auto threshold method doesn't work
- Use Weka from ImageJ macro: 'path' is required but unset
- ImageJ Macro for converting multichannel Tiffs to Tiffs with only specified channels
- Displaying a 32-bit image with NaN values (ImageJ)
- Finding the Angle of Intersection of elements from two images
- Add a scale-bar to images via command line (with Ubuntu and eg ImageJ)
- How can I add ImageJ to my build path in Eclipse, and where can I find the ImageJ .jar file?
- How can I implement ImageJ's Non Local Means Denoising algorithm in Java code?
- Run ImageJ macro from within my own java application
- ImageJ actionmap
Related Questions in FIJI
- imageJ/FIJI: can i add a new ROI in the middle of a ROI manager list of ROIs
- Convert image datatype from uint16 to uint8
- How to combine sets of images in a stack in imageJ?
- Converting colours and black background removal
- Is there anyway I could measure these cells in eye scan?
- Trying to create a Mosaic in ImageJ and I get this Java error
- Read/Write BigTIFF using BioFormat
- Format not supported or reader plugin not found, Fiji ImageJ
- Make ImageJ/ Fiji Jython script with ij and loci classes work from bash script
- R & Package Incompability (Fiji)
- Interfacing with ImageJ/Fiji
- How to Install a toolset in Fiji or ImageJ
- String format in imageJ macro
- How to subtract one stack from another in FIJI (ImageJ)?
- Undefined variable error when running macro in ImageJ
Related Questions in IMAGEJ-MACRO
- ROI selection in ImageJ macro
- ImageJ Macro for converting multichannel Tiffs to Tiffs with only specified channels
- I want to use ImageJ to transforma a grayscale TIF to a colored TIF
- Macro language equivalent to "Image > Adjust > Brightness/Contrast... > Apply"
- ImageJ: Analyze Particles using ROI when Calculating Area %
- How to combine sets of images in a stack in imageJ?
- Wound healing/ scratch assay using ImageJ2 and the Slide Set Plugin, need scratch width and area
- ImageJ: How to adjust color of plotted ellipses based on pre-defined RGB values?
- ImageJ: Ask input n times using Script Parameters?
- Macro for multiple images analysis in the calculator plus
- How to Install a toolset in Fiji or ImageJ
- Writing Macro in ImageJ to open, change color, adjust brightness and resave microscope images
- Undefined variable error when running macro in ImageJ
- how can I modify the brightness&contrast automatically on my images with fiji macro?
- setting threshold and batch processing in ImageJ (FIJI) macro
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
What you need is the "Grouped z-Project..."-operation. Below is an ImageJ-macro snippet that shows the relevant code:
The "MRI"-stack shows 27 slices. If grouped to 3, the resulting stack consists of 9 slices. Please note that averaging is the way to go for integer images because summation can easily lead to an overflow. If you prefer summing instead of averaging, you should first convert your stack zu 32bit float.