Spatial Lens
A visual workbench for exploring how a computer reads light, comfort and atmosphere in a space.
Explore the workspace ↓
What does a room score actually see?
In the course examples, a bright room with two windows earns a lower lighting score than a shaded garden walkway. Both numbers invite the same question. Which parts of the image led to that result?
The project began with course code that scored batches of photographs. Spatial Lens brings the source image, segmentation overlay and four component scores into a single English-language workspace. The upgrade adds video sampling, paired comparisons and a history that lets you return to a particular view.
Between the image and the mask.
Slide across the photograph to uncover what the segmentation model recognised. In the living room, the ceiling covers 23.8% of the image. On the garden walkway, trees alone cover 33.2%. In the two-window room, a single label, wall, takes up 48.8%.
Switch scenes to see how the composition changes. The percentages describe the share of image pixels assigned to each visible element.
Four readings of one frame.
SegFormer-B2 assigns pixels to scene categories from ADE20K. Alongside that map, the system measures brightness, contrast, colour variation and texture. Four course-defined formulas read different combinations of those signals.
Lighting
Exposure, contrast, and the share of the image occupied by windows and light fixtures.
Visual comfort
The number of distinct scene elements and the density of fine visual texture.
Affective tone
Brightness and relative colour temperature, together with visible greenery, furnishings and décor.
Aesthetic richness
The balance of light and colour, and the mix of architectural, decorative and natural elements.
The model applies a nonlinear adjustment to the weighted result. A camera frame and a still photograph use the same fixed reference ranges, so adding another view leaves earlier scores comparable.
From a snapshot to a sequence.
Each input produces the same kind of frame report. The choice is what you want to hold constant. A batch of photographs can compare rooms, a camera can revisit a position, and a video can trace a walk through a space.
Compare viewpoints
Drop several photos into the workspace. Each receives its own overlay and scores. The batch is ranked by overall score, and any view can be opened for closer inspection.
Return to a position
Capture a single frame or sample every 2, 3, 5 or 10 seconds. Automatic capture waits for the previous frame to finish scoring.
Follow a route
Set the interval to 2, 5 or 10 seconds. Longer clips are sampled evenly across up to 36 frames. Select a point on the timeline to recover its image and scores.
How reports, history and CSV export work
Each saved report pairs the input photograph with its segmented view, component scores and most visible labels. Completed video frames remain available if sampling is stopped. History is stored in the current browser, and timestamped CSV export makes it possible to examine scores from several runs together.
Where two views diverge.
The garden walkway scores 17.32 points above the open-plan living room overall. The largest component difference is visual comfort, at 38.35 points. Affective tone moves only 2.81 points. Seeing the four dimensions side by side changes how that overall gap reads.

| Dimension | Living room | Garden walkway | Two-window room |
|---|---|---|---|
| Lighting | 53.41 | 76.61 | 38.22 |
| Visual comfort | 26.27 | 64.62 | 13.62 |
| Affective tone | 63.83 | 66.64 | 33.61 |
| Aesthetic richness | 63.17 | 81.71 | 67.74 |
| Overall | 69.33 | 86.65 | 56.13 |
Reading the outlier
The two-window room has the lowest visual comfort score, 13.62, but its aesthetic richness score is 67.74, above the furnished living room’s 63.17. The formulas reward different properties of the image. Framing, exposure and the objects in view can change each reading. The scores describe the view. Understanding how occupants feel would require asking them directly.
Try Spatial Lens.
Open View examples to inspect the recorded scenes. Switch a result between its photo and segmentation overlay, or choose Compare to put any two spaces side by side.
This embedded edition includes all three course examples. Scoring new photos, camera captures and video files runs in the local application with the SegFormer engine.