Lemonergy · Studio block
Neighborhood submodel
Applies a configured stateless operation to each image neighborhood with explicit boundary handling.
- Implementation ID
native-neighborhood-map- Reviewed
- 2026-10-27
Behavior
y[row,column] = nested_kernel(patch around row,column with selected boundary policy). The worked example connects this operation to signals in Lemonergy Studio.
Interface
| Name | Direction | Unit | Meaning |
|---|---|---|---|
in0 | input | 1 | Image; real 3 × 3 array. |
out0 | output | 1 | Result; real 3 × 3 array. |
Parameters
Defaults are initial model values. Select values for your own model and operating conditions.
| Parameter | Unit | Default | Meaning and limits |
|---|---|---|---|
Row radiusparams[0] | 1 | 1 | Configured finite numerical parameter. |
Column radiusparams[1] | 1 | 1 | Configured finite numerical parameter. |
Boundary policyparams[2] | 1 | 0 | 0 zero padding; 1 clamp to edge; 2 wrap. |
Nested operationnested | 1 | native-reduce-elements | A configured pure stateless one-input, one-output Lemonergy operation. Edit its own parameters inside the wrapper. |
Equations and rules
y[row,column] = nested_kernel(patch around row,column with selected boundary policy)
Worked example
Neighborhood submodel — worked example
Image = [1,2,3,4,5,6,7,8,9]. Result at 0 s = [1.3333333333333333,2.3333333333333335,1.7777777777777777,3,5,3.6666666666666665,2.6666666666666665,4.333333333333333,3.111111111111111].
Open Studio example after release →| Output | Time (s) | Expected value | Unit | Absolute tolerance |
|---|---|---|---|---|
Resultout0 | 0 | [1.3333333333333333, 2.3333333333333335, 1.7777777777777777, 3, 5, 3.6666666666666665, 2.6666666666666665, 4.333333333333333, 3.111111111111111] | 1 | 1e-08 |
Explore the recorded outputs
Neighborhood submodel recorded example
Neighborhood submodel [1, 1]2 actual recorded samples. Lines are visual guides between samples. Synthetic example, not measured cell data.
Read the selected signal as a table
| Time (s) | Value |
|---|
Download the recorded samples (JSON) · Open this Studio example after release
Use in a workflow
Neighborhood submodel — worked example
Applies a configured stateless operation to each image neighborhood with explicit boundary handling.
- Neighborhood submodel: y[row,column] = nested_kernel(patch around row,column with selected boundary policy). The worked example connects this operation to signals in Lemonergy Studio.
- Use the block reference for settings and connections.
- Implementation tested locally; public release pending.
Connected concepts
Limits and interpretation
- One pure stateless nested kernel per bounded column-major patch with zero/clamp/wrap boundary policy. Arbitrary multi-block and stateful nested graphs are refused.
- Shapes and element types are explicit. Values must be finite; automatic reshaping and unit conversion are not performed.
- Only one pure stateless nested kernel is executed. Arbitrary multi-block or stateful nested graphs are not supported.
Reference basis
This software operation and its numerical conventions are defined by the public contract and worked example; no external research result is claimed.
Implementation sources
This reference follows the public interface and locally verified numerical checks for an upcoming release.
Contract: Lemonergy Studio public contract · Verification record: verification-2026-10-27
docs/glossary/native-block-verification.json
This implementation and its workflow uses (JSON) · Knowledge graph (JSON-LD)