Subsampling an image by a factor

imresize interpolates between pixels when downscaling. You might just want to index into the image?

sqrt_restrict(img, i) = img[1:round(Int,sqrt(2)^i):end, :]

1 Like