Description
Apply supplied padding range endpoint flags without inferring a DICOM attribute definition.
An image grid has array indices as well as physical spacing, timing, and signal conventions. A calculation on supplied metadata describes one part of that grid or signal; it does not inspect an image, validate a complete file, or interpret anatomy.
Apply supplied padding range endpoint flags without inferring a DICOM attribute definition.
When to use this tool
Use it for pixel padding range end closure when the required inputs and conventions are already available.
How to use the tool and how it works
- Enter value, lower, upper, lowerClosed, upperClosed. Use the stated units and boundary conventions.
- Run the calculation. Correct any input error before interpreting a result.
- Read isPadding. Inspect any known, defined, inclusion, or boundary flags before interpreting numeric values.
Require lower no greater than upper. Compare value with each endpoint using lowerClosed and upperClosed independently, and return whether both comparisons hold.1
| Input field | Meaning and units | Accepted input |
|---|---|---|
| value | Value | Required. Finite number. |
| lower | Lower | Required. Finite number. |
| upper | Upper | Required. Finite number. |
| lowerClosed | Lower Closed | Required. Boolean. |
| upperClosed | Upper Closed | Required. Boolean. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| isPadding | Is Padding | Required. Boolean. |
{
"input": {
"value": 0,
"lower": 0,
"upper": 10,
"lowerClosed": true,
"upperClosed": false
},
"output": {
"isPadding": true
}
} Limitations and assumptions
- For equal endpoints, only a fully closed interval can contain the endpoint. These caller-selected closure flags do not parse DICOM padding attributes or establish their correct interpretation.
- The field tables describe structural bounds; the mechanics also state cross-field requirements. Malformed input shapes, disallowed keys, and invalid domains cause input errors. Results must remain finite and within the declared output contract. A successful false flag or zero placeholder is distinct from an error.
- Numeric arithmetic uses binary floating point. Exact comparisons have no hidden tolerance or decimal rounding; negative zero is exported as zero. Decimal-text integer operations retain the exactness specifically stated above.
Alternative or Complementary methods
For pixel padding range end closure, check the source records and the supplied rule before comparing the result with another method. Use a full image reader and geometry or signal analysis when the task requires interpreting image data.
References
Similar or alternative tools
- DICOM Padding Range Membership Check
Inclusive stored-value padding range from supplied DICOM endpoints; no modality rescale or image-content interpretation.
- DICOM Pixel Representation Signextension Mask
Unsigned-word masking and two-complement interpretation/sign extension for at most 32 stored bits; no endian or transfer-syntax decoding.