Retina-inspired processing
Apply a bio-inspired model with separate detail/colour and motion-sensitive processing pathways.
The retinal model has spatial filters and a temporal state.
Local adaptation changes sensitivity around a neighbourhood.
Temporal pathways respond to change as the object moves.
Parvocellular and magnocellular outputs emphasize different properties; this is a pathway schematic, not simulated retinal output.
Read the parvocellular and magnocellular pathway outputs.
Illustrative example. The stages explain the method; they are not a live OpenCV execution.
Try it on an image
Experiment at pixel level
Process the colour image through the retina model. Parvo preserves detail; Magno measures change after a dark initial frame.
The engine loads on your first run. Your images stay in this browser.
Scroll over either image to zoom at the pointer. Use the scrollbars to pan both views over the same relative area. Zoom is relative to the input; pixel coordinates belong to each image. Warps can change scene correspondence.
Pixel inspector RGBA · native values · matched scale · 9 × 9 output pixels
Select a pixel
Select a pixel
When to use it
Explore local adaptation, dynamic-range compression and transient visual responses.
How it works
- 01Apply local adaptation and spatial filtering to the input.
- 02Update the model’s temporal state.
- 03Read the parvocellular and magnocellular pathway outputs.
input → spatial/temporal adaptation → detail and transient pathways
What to tune
Configure sampling, colour mode and pathway adaptation parameters for the sequence. Reset state deliberately between unrelated clips.
Where it breaks down
Temporal state means consecutive calls are related. The outputs are transformed visual signals, not a calibrated substitute for original intensities.
TypeScript API
Open an entry for its exact overloads, parameter descriptions, result ownership and pinned upstream source.
All of these calls execute on the CPU. Native objects need explicit disposal. See matrices and ownership and build compatibility.
Related methods
Gaussian blur
Replace each pixel with a weighted average that gives nearby pixels more influence.
Box filtering
Average a rectangular neighbourhood with equal weight at every position.
Median filtering
Choose the middle value of a pixel neighbourhood instead of averaging its intensities.
Bilateral filtering
Smooth nearby pixels only when their colours are also similar.