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?
182 views Asked by Armin Zjajo At
2
There are 2 answers
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
- Automating the measurement of two profiles of a colour merged image in FIJI (ImageJ)
- ImageJ scale bar: manually changing one of the values set by a macro while leaving the others as is
- How can I download the imageJ library to code in java using eclipse?
- save in own format imagej or imagej2
- ImageJ Macro: setOption("Changes",false); not preventing 'Save Changes' prompt
- How to calculate arithmetic mean roughness Ra using ImageJ instead of MountiansMap software?
- ImageJ plugin DHM Utilities
- documentation on imageJ's FFT bandpass filter function
- Remove ROI selections - ImageJ
- ImageJ: How to adjust color of plotted ellipses based on pre-defined RGB values?
- Error when running simpleITK cannot detect ImageJ or FIJI despite FIJI.app being in my user folder
- How can I fill missing parts in particle borders, so that these borders/contours form a continous outline?
- Inconsistencies with calculating mean brightness per pixel of different images
- Wound healing/ scratch assay using ImageJ2 and the Slide Set Plugin, need scratch width and area
- ImageJ Merging Channels
Related Questions in FIJI
- Made a plot in R containing two separate datasets with coordinates, but need to find the overlapping ones
- ImageJ scale bar: manually changing one of the values set by a macro while leaving the others as is
- Is there anyway I could measure these cells in eye scan?
- Converting colours and black background removal
- How to combine sets of images in a stack in imageJ?
- ImageJ & ffmpeg: How to create a video from a set of images using ffmpeg that can be opened by ImageJ?
- Is there a way to append information to a results table from multiple images in ImageJ using a macro?
- FIJI Batch Convert does not read images using BioFormats
- How to calculate median of an array in FIJI/ImageJ?
- FIJI/ImageJ: How to return/update a value from the Results table via for loop?
- How can I specify a specific channel to set B&C for in FIJI?
- Draw a 3d drape over the non zero non null pixels in my 3d tif image
- Adjusting macro to run to 14-well plate format
- Finding number of ROI Groups entered into Roi-Group Table plugin
- ImageJ (Fiji) search directory for a given file, using python with imageJ macro
Related Questions in IMAGEJ-MACRO
- ImageJ scale bar: manually changing one of the values set by a macro while leaving the others as is
- ImageJ Macro: setOption("Changes",false); not preventing 'Save Changes' prompt
- ImageJ: How to adjust color of plotted ellipses based on pre-defined RGB values?
- Wound healing/ scratch assay using ImageJ2 and the Slide Set Plugin, need scratch width and area
- How to combine sets of images in a stack in imageJ?
- Is there a way to append information to a results table from multiple images in ImageJ using a macro?
- How do I batch process Z-stacks or all open images on ImageJ/Fiji?
- ImageJ getHistogram function output
- SelectWindow in ImageJ
- Subtraction of fluorescence from two images representing the same sample
- FIJI/ImageJ Macro not saving every analyze particles results and summary table
- Condition or function to verify if a file is missing when opening files sequentially in ImageJ
- Can't run function in ImageJ
- ImageJ macro has loop error during ROI analysis
- ImageJ batch processing: saving results of each image separately in the csv format
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?
Popular Tags
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)
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.