MooneyMaker: A Python package to create ambiguous two-tone images
Lars C. Reining, Thabo Matthies, Luisa Haussner, Rabea Turon, Thomas S. A. Wallis
TL;DR
MooneyMaker addresses the need for standardized generation of Mooney images, ambiguous two-tone stimuli used to study visual perception. It introduces a Python package implementing nine techniques (six novel optimization-based and three prior methods) that manipulate edge information to control initial recognizability and post-disambiguation interpretability. The paper provides an empirical validation showing that edge-disruption methods yield larger disambiguation effects after template presentation, while similarity methods yield smaller gains; it also derives guidelines for selecting techniques based on the desired balance of ambiguity and disambiguation. By offering open-source tooling with careful documentation and API design, MooneyMaker promotes reproducibility and comparability in visual perception research.
Abstract
Mooney images are high-contrast, two-tone visual stimuli, created by thresholding photographic images. They allow researchers to separate image content from image understanding, making them valuable for studying visual perception. An ideal Mooney image for this purpose achieves a specific balance: it initially appears unrecognizable but becomes fully interpretable to the observer after seeing the original template. Researchers traditionally created these stimuli manually using subjective criteria, which is labor-intensive and can introduce inconsistencies across studies. Automated generation techniques now offer an alternative to this manual approach. Here, we present MooneyMaker, an open-source Python package that automates the generation of ambiguous Mooney images using several complementary approaches. Users can choose between various generation techniques that range from approaches based on image statistics to deep learning models. These models strategically alter edge information to increase initial ambiguity. The package lets users create two-tone images with multiple methods and directly compare the results visually. In an experiment, we validate MooneyMaker by generating Mooney images using different techniques and assess their recognizability for human observers before and after disambiguating them by presenting the template images. Our results reveal that techniques with lower initial recognizability are associated with higher post-template recognition (i.e. a larger disambiguation effect). To help vision scientists build effective databases of Mooney stimuli, we provide practical guidelines for technique selection. By standardizing the generation process, MooneyMaker supports more consistent and reproducible visual perception research.
