DIPlib Documentation - ©1995-2017 Quantitative Imaging Group, Delft University of Technology.

HasNormalStride

Determines whether an image has a normal stride

SYNOPSIS

dip_Error dip_HasNormalStride( image, &answer )

FUNCTION

Determines whether an image has a normal stride. Normal stride is defined as a stride of 1 in the first dimension, a stride of image width in the second dimension, etc. If answer is not zero, the verdict is passed in this variable. Otherwise, HasNormalStride returns an error in case image does not have a normal stride.

ARGUMENTS

Data typeNameDescription
dip_ImageimageThe image under investigation
dip_Boolean *answerThe verdict

SEE ALSO

The image structure

HasContiguousData, ImageGetStride, IsScalar