# Enum CovarFlags

Operation flags for Covariation

**Namespace**: OpenCvSharp

**Assembly**: OpenCvSharp.dll

##### Syntax

```
[Flags]
public enum CovarFlags
```

### Fields

Name | Description |
---|---|

Cols | Means that all the input vectors are stored as columns of a single matrix, vects[0].count is ignored in this case, and avg should be a single-column vector of an appropriate size. |

Normal | scale * [vects[0]-avg,vects[1]-avg,...]*[vects[0]-avg,vects[1]-avg,...]^T |

Rows | Means that all the input vectors are stored as rows of a single matrix, vects[0].count is ignored in this case, and avg should be a single-row vector of an appropriate size. |

Scale | If the flag is specified, the covariation matrix is scaled by the number of input vectors. |

Scrambled | scale * [vects[0]-avg,vects[1]-avg,...]^T * [vects[0]-avg,vects[1]-avg,...] |

UseAvg | If the flag is specified, the function does not calculate avg from the input vectors, but, instead, uses the passed avg vector. This is useful if avg has been already calculated somehow, or if the covariation matrix is calculated by parts - in this case, avg is not a mean vector of the input sub-set of vectors, but rather the mean vector of the whole set. |