Related Experiment Video
Updated: Aug 11, 2026

Cryo-Electron Microscopy Screening Automation Across Multiple Grids Using Smart Leginon
Published on: December 1, 2023
GridSamp: An open-source Python toolbox for grid sampling
Maarten Leemans1, Christophe Bossens2, Johan Wagemans2
1Brain and Cognition, University of Leuven (KU Leuven), Tiensestraat 102, Box 3711, 3000, Leuven, Belgium. maarten.leemans@kuleuven.be.
Grid sampling in vision science is now reproducible and accessible with GridSamp, an open-source Python toolbox. This tool standardizes image region sampling for enhanced research comparability and ease of use.
Area of Science:
- Computer Vision
- Vision Science
- Image Processing
Background:
- Grid sampling is crucial for analyzing relationships between local image regions and global image structure in vision science and computer vision.
- Current grid sampling methods often rely on ad hoc, study-specific code, hindering reproducibility, cross-study comparisons, and user accessibility.
Purpose of the Study:
- To introduce GridSamp, an open-source Python toolbox designed to standardize and simplify the grid sampling workflow.
- To enhance reproducibility, comparability, and accessibility in grid-based image analysis for researchers.
Main Methods:
- GridSamp offers support for multiple grid types with customizable parameters and starting positions.
- The toolbox allows flexible manipulation of sampled regions, including shape, size, swapping, and shuffling, with options for including or excluding surrounding context.
- It enables the extraction of regions of interest or the creation of reassembled mosaic images.
Main Results:
- GridSamp streamlines the grid sampling process into an intuitive and flexible workflow.
- The utility of GridSamp is demonstrated by successfully reproducing stimuli from prior experimental studies.
- The toolbox facilitates transparent and reproducible stimulus generation, improving research integrity.
Conclusions:
- GridSamp addresses the limitations of traditional grid sampling by providing a standardized, open-source solution.
- The toolbox enhances the efficiency and reliability of stimulus generation in vision science research.
- GridSamp is freely available on GitHub with tutorials, promoting wider adoption and collaboration in the field.
Related Concept Videos
Sampling Plans
Random sampling is a method where each member of the population has an equal chance of being selected for the sample. It involves selecting individuals randomly, often using random number generators or lottery-type methods. For example, when analyzing the properties of a...
Random Sampling Method
Stratified Sampling Method
To choose a stratified sample, divide the population into groups called strata and then take a...
Systematic Sampling Method
Systematic sampling is one of the simplest methods...
Sampling Methods: Overview
In analytical chemistry, the choice of sampling...
Bootstrapping
