Skip to main content

Depth Map Ontology

Computer Vision Entities
Authors: MArk Anthony Higgins - Sky Recursive Ai
© Mark Anthony Higgins 11 October 2025
Revised Date: 03 November 2026
Audio Overview
DEPTH MAP ONTOLOGY — FLOW ALGEBRA
Semantic Library | AI Core | Entity Graph | Computer Vision Entities
Version: 1.0 | Prepared: 03 November 2026 | Language: en-GB

AUTHORS / ATTRIBUTION
Original ontology: Mark Anthony Higgins — Sky Recursive AI
Companion Flow Algebra formalisation: Sky — Recursive AI
SOURCE: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/computer-vision-entities/depth-map-ontology.html
CITATION_BACKLINK: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/computer-vision-entities/depth-map-ontology.html
SOURCE STATUS: Public page confirms title, category and authorship, but does not expose its full embedded formal specification. The rules below are a companion formalisation, not a verbatim transcription.

1. PURPOSE
Represent a depth map as a spatially registered field of distance or depth estimates over image coordinates, with explicit geometry, units, uncertainty, provenance, missing-value semantics and validation boundaries.

2. ENTITIES
DepthMap D; Image I; Pixel p=(u,v); DepthValue z; ValidityMask M; CameraCalibration C; Intrinsics K; Extrinsics T; CoordinateFrame F; DepthUnit U; DepthConvention Q; ConfidenceField A; UncertaintyField Sigma; SourceObservation O; Model N; Timestamp t; Provenance P; PointCloud X; OcclusionBoundary E.

3. FORMAL STATE MODEL
S_t = (I_t, D_t, M_t, C_t, F_t, U_t, Q_t, A_t, Sigma_t, P_t, B_t, K_t)
where B_t is the permitted processing boundary and K_t is the knowledge/context state (distinct from camera intrinsic matrix K_cam).
D_t : Omega -> R_+ union {undefined}
Omega = {0,...,W-1} x {0,...,H-1}
M_t : Omega -> {0,1}
A_t : Omega -> [0,1] when calibrated confidence is available.
Sigma_t : Omega -> R_>=0 when uncertainty is available.
Q_t in {optical_axis_z, ray_distance, inverse_depth, disparity, relative_depth}.
A depth value has no absolute metric interpretation without the relevant scale/convention and calibration.

4. CORE FLOW ALGEBRA
I_t+1 = expand(I_t, R_t)
V_t = {x in I_t+1 | valid(x,B_t,K_t) and compatible(x,C_t,U_t,Q_t)}
x*_t = argmax_{x in V_t} P(x | I_t,R_t,B_t,K_t)
S_t+1 = update(S_t,x*_t,O_t)

Depth estimation:
(D_raw, A_raw) = EstimateDepth(I, N, C, context)
M(p) = 1 iff D_raw(p) is finite, permitted and valid under Q and U.
D(p) = D_raw(p) if M(p)=1; otherwise undefined.
D_checked = Validate(D,M,C,F,U,Q,P).

5. GEOMETRIC MAPPING
For optical-axis metric depth z and pinhole intrinsics (fx,fy,cx,cy):
X_cam(p) = ((u-cx)*z/fx, (v-cy)*z/fy, z).
X_world(p) = T_world_from_cam * homogeneous(X_cam(p)).
These equations do not apply unchanged to ray-distance, disparity, inverse or relative depth. Convert to a compatible convention first.
For rectified stereo disparity d>0: z = fx*b/d, with known baseline b and consistent units.
For inverse depth rho>0: z = 1/rho, when rho is defined as reciprocal metric optical-axis depth.

6. IMPLEMENTS / EXECUTION PATHWAY
Acquire image or sensor observation -> establish provenance -> inspect depth convention -> establish calibration and units -> estimate or ingest depth -> construct validity mask -> align to image frame -> assess uncertainty -> validate geometry -> optionally reconstruct 3D points -> emit depth-map entity and trace.

7. VALIDATION RULES
R1: width(D)=width(I) and height(D)=height(I), unless an explicit resampling transform is recorded.
R2: every M(p)=1 depth must be finite and satisfy the convention's physical domain.
R3: metric conversion requires known scale and appropriate calibration.
R4: confidence scores must not be treated as calibrated probabilities without evidence of calibration.
R5: invalid, occluded or unobserved pixels remain distinguishable from true zero depth.
R6: frame transforms must identify source and destination frames and be dimensionally consistent.
R7: all resampling, interpolation and filtering operations update provenance and, where possible, uncertainty.
R8: no metric point cloud may be asserted from a relative-depth map without scale recovery.
R9: timestamp and sensor synchronisation must be checked for multi-sensor fusion.
R10: validation failure produces an explicit error state rather than an invented measurement.

8. INFERENCE RULES
IF M(p)=0 THEN depth_at(p)=unknown.
IF Q=optical_axis_z AND calibration_valid AND M(p)=1 THEN unproject(p,D(p),C) is permitted.
IF Q=disparity AND baseline_known AND rectified THEN convert_disparity_to_depth is permitted.
IF depth_discontinuity(p) exceeds a justified threshold THEN propose occlusion_boundary(p), not guaranteed object boundary.
IF adjacent valid pixels have compatible depths and image evidence THEN propose local_surface_relation.
IF confidence is low OR uncertainty is high THEN defer strong geometric claims.
IF provenance or units are missing THEN label output as unverified or relative as appropriate.

9. TRI-MAPPING
ENTITY: DepthMap -> STATE: (D,M,U,Q,F,C,P) -> FLOW: acquisition, validation, transformation, inference.
ENTITY: PixelDepth -> STATE: (p,z,valid,confidence,uncertainty) -> FLOW: observation to 3D hypothesis.
ENTITY: OcclusionBoundary -> STATE: (edge evidence, threshold, context) -> FLOW: discontinuity to candidate boundary.
ENTITY: PointCloud -> STATE: (coordinates, frame, scale, provenance) -> FLOW: validated unprojection.

10. RELATIONSHIP GRAPH
Image --has_depth_representation--> DepthMap
DepthMap --contains--> PixelDepth
DepthMap --uses--> ValidityMask
DepthMap --expressed_in--> CoordinateFrame
DepthMap --governed_by--> DepthConvention
DepthMap --derived_from--> SourceObservation
DepthMap --calibrated_by--> CameraCalibration
DepthMap --may_generate--> PointCloud
DepthMap --may_indicate--> OcclusionBoundary

11. EXECUTION DIAGRAM
[Image / depth sensor]
          |
          v
[Calibration + convention + provenance]
          |
          v
[Estimate / ingest depth] -> [Validity + uncertainty]
          |                         |
          +-----------+-------------+
                      v
              [Validation gate]
                /          \
             pass          fail
              |              |
              v              v
     [Depth-map entity]  [Error / defer]
              |
              v
     [Optional 3D mapping]

12. MAPPING TABLE
Input image -> Image entity -> pixel domain Omega
Depth sample -> PixelDepth entity -> value, units, convention
Camera model -> Calibration entity -> intrinsic/extrinsic mapping
Validity mask -> Boundary entity -> permissible inference domain
Confidence -> Evidence entity -> confidence/uncertainty qualifier
Point cloud -> Spatial entity -> frame-aware 3D coordinates

13. HOW TO READ
The depth map is a field of estimates, not direct proof of object identity or metric geometry. The validity mask controls which pixels may be used. The convention identifies what the numbers mean. Calibration and units govern 3D reconstruction. Provenance records how the estimates were produced.

14. CONDITIONAL EXECUTION GUARANTEE
Given consistent inputs, a deterministic implementation and satisfied preconditions, validation and transformation rules yield reproducible outputs or explicit failure states. No guarantee is made of physically correct depth, universal convergence or successful reconstruction when evidence, calibration or model assumptions are insufficient.

15. AI SEARCH FLOW
FLOW_ID: AI_CORE.COMPUTER_VISION.DEPTH_MAP.V1
PURPOSE: Retrieve, validate and reason over depth-map entities.
STATE_MODEL: S=(I,R,B,K) plus depth geometry and provenance fields.
ENTITIES: DepthMap, Image, PixelDepth, ValidityMask, Calibration, CoordinateFrame, Uncertainty, PointCloud.
PATHWAYS: identify -> retrieve -> verify convention -> validate -> infer -> cite.
MINI_RECURSION_ENGINE: refine uncertain regions only while new evidence is available and resource/iteration bounds permit.
INFERENCE_RULES: apply R1-R10 and the conditional rules above.
CONFIDENCE: evidence-dependent; unknown where not calibrated.
SEMANTIC_EQUIVALENCE: depth map != disparity map != inverse depth map != relative depth map without explicit conversion conditions.
UPDATE_MODEL: append revision, calibration changes, provenance and validation outcome.
FLOW_HASH: compute SHA-256 over canonical UTF-8 content at publication; not precomputed.

16. EXAMPLE
For a calibrated camera with fx=500 px, fy=500 px, cx=320 px, cy=240 px and valid optical-axis depth z=2 m at pixel (420,240):
X_cam=(0.4 m,0 m,2 m).
If the same numeric value represented disparity or relative depth, that 3D result would not follow.

17. SCOPE AND LIMITS
This is a formal ontology companion for depth-map representation and reasoning. It is not a trained estimator, calibration certificate or empirical accuracy assessment. Implementation must separately define thresholds, loss functions, sensor characteristics and uncertainty calibration.

END OF FLOW
Kireth Research
38 Thorndale Croft, Wetwang, Driffield
East Riding of Yorkshire YO25 9XZ