Research data

NRRD logical byte offsets

Resolve axis strides and an indexed byte offset in decoded NRRD data.

Your inputs

Start with an example

Your inputs stay in your browser.

Your result

Example result

How it works

NRRD axis 0 varies fastest. Multiply preceding axis sizes by element bytes to obtain strides; sum index×stride for a logical offset. Use exact integer arithmetic.

With ushort sizes 4×3×2, strides are 2,8,24 bytes. Index 1,1,0 begins at byte 10 of the 48 decoded data bytes.

Limits

Header-only calculation, up to 16 axes. This is not a physical file seek: header bytes, line/byte skips, compression and multi-file placement are excluded. No image, spatial orientation or medical interpretation is performed.