# Rolling window on image/mapwindow variant

**URL:** <https://discourse.julialang.org/t/rolling-window-on-image-mapwindow-variant/135798>\
**Category:** General Usage\
**Created:** [February 23, 2026, 6:19pm UTC](https://discourse.julialang.org/t/rolling-window-on-image-mapwindow-variant/135798 "2026-02-23T18:19:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mekapses](https://avatars.discourse-cdn.com/v4/letter/m/b5a626/32.png) [@mekapses](https://discourse.julialang.org/u/mekapses)\
**Post date:** [February 23, 2026, 6:19pm UTC](https://discourse.julialang.org/t/rolling-window-on-image-mapwindow-variant/135798/1 "2026-02-23T18:19:13Z")

</div>

I’m trying to appply a function to a rolling window on an image. If the function returns a primitive value I can use mapwindow. Imagine I’m trying to apply StatsBase.mean. Works fine.

But if I want to apply something that returns a vector of values, say StatsBase.summary, what is the best way to do that in Julia? Ideally, I’d like it to return a vector of images of the mean, median, sd, etc…

I can brute force my way with for loops, but hoping that there’s a better solution. RollingWindowArrays seems not to be what I want.
