Resize image array
Function to downsample an image stack based on averaging through a symmetric box filter in the first two dimensions. This is comparable to using other code such as imresize(DataIn,bin,'box') in a for loop but will perform much faster.
It will resize only the first two dimensions of any given data matrix while leaving additional dimension unchanged.
Usage: DataOut = arrayResize(DataIn,bin)
DataIn = x*y*n matrix to be downsampled.
bin = size of the box filter.
Downsampled image stack consists of averages of squares of the size bin*bin in the x and y dimension. If dimension x or y can not be divided by bin, the downsampled matrix will not contain the lower and right edges of DataIn that are above the highest divider.
Citar como
Simon Musall (2024). Resize image array (https://www.mathworks.com/matlabcentral/fileexchange/59877-resize-image-array), MATLAB Central File Exchange. Recuperado .
Compatibilidad con la versión de MATLAB
Compatibilidad con las plataformas
Windows macOS LinuxCategorías
- Signal Processing > Wavelet Toolbox > Denoising and Compression >
- MATLAB > Graphics > Images > Read, Write, and Modify Image >
Etiquetas
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Descubra Live Editor
Cree scripts con código, salida y texto formateado en un documento ejecutable.