minMaxLoc

Functionality

Finds the global minimum and maximum in an array.

Inputs

  • mask_in – Optional mask used to select a sub-array.
  • src_in – Input single-channel array.

Outputs

  • maxLoc_out – Pointer to the returned maximum location (in 2D case); NULL is used if not required.
  • maxVal_out – Pointer to the returned maximum value; NULL is used if not required.
  • minLoc_out – Pointer to the returned minimum location (in 2D case); NULL is used if not required.
  • minVal_out – Pointer to the returned minimum value; NULL is used if not required.

Locals

Examples