Description
Compare image-region pixel dimensions with supplied targets.
Skin-image research can record scale, annotation geometry, visibility and timing. Pixel counts, mask components and supplied metadata are technical summaries rather than disease findings or proof an image is suitable for diagnosis.
Compare image-region pixel dimensions with supplied targets.
When to use this tool
Use Skin Image Region Resolution Gap when checking a supplied dermatology research image or annotation record.
How to use the tool and how it works
- Enter regionWidthPixels, regionHeightPixels, targetWidth, targetHeight. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- Read widthGap, heightGap, meetsBoth. Inspect meetsBoth before interpreting the associated values.
Compare image-region pixel dimensions with supplied targets. Require nonnegative whole dimensions; return widthGap, heightGap and meetsBoth using inclusive >= checks.1
| Input field | Meaning and units | Accepted input |
|---|---|---|
| regionWidthPixels | Region Width Pixels | Required. Safe integer; minimum 0. |
| regionHeightPixels | Region Height Pixels | Required. Safe integer; minimum 0. |
| targetWidth | Target Width | Required. Safe integer; minimum 0. |
| targetHeight | Target Height | Required. Safe integer; minimum 0. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| widthGap | Width Gap | Required. Safe integer. |
| heightGap | Height Gap | Required. Safe integer. |
| meetsBoth | Meets Both | Required. Boolean. |
{
"input": {
"regionWidthPixels": 120,
"regionHeightPixels": 80,
"targetWidth": 100,
"targetHeight": 100
},
"output": {
"widthGap": 20,
"heightGap": -20,
"meetsBoth": false
}
} Limitations and assumptions
- Meeting pixel counts does not establish optical resolution, diagnostic image quality or suitable clinical evidence.
- Inputs must satisfy both the field types and the cross-field conditions above. Invalid input causes an error; a successful false flag or documented placeholder is a different result.
- Numeric calculations use binary floating point unless exact decimal-integer arithmetic is explicitly stated. No hidden measurement tolerance or decimal rounding is added; nonfinite or out-of-contract results are rejected. Numeric signed-zero results are exported as zero.
Alternative or Complementary methods
Use calibrated imaging and professional clinical assessment for any health interpretation; validate annotation and measurement methods separately.
References
Similar or alternative tools
- Skin Image Ruler Plane Offset
Apply a supplied ruler-plane correction to image length.
- Skin Image Reference Channel Gap
Return measured-minus-reference image-channel value.