# Conversion_Invert

## Using of command

Function is use for invert tested image. Function invert each pixel in tested image according formulla:
destination(x,y)=255-source(x,y)

## Commands parameters

Command has 2 parameters:

1. Source picture: You need select source picture.Source picture must be activated before use of this function. You can select Picture_0 to Picture_19.
2. Destination picture: You need select destination picture. Source and destination picture can be same.You can select Picture_0 to Picture_19.

## Error codes

1. Error code -11:Bad source picture position on picture array. Source Picture is not from range 0 to 19. Check test program file if command has correct format.
2. Error code -12: Bad destination picture position on picture array. Destination picture is not from range 0 to 19. Check test program file if command has correct format.
3. Error code -13: Dimension source and destination image are not same. Dimensions (height, width) source and destination picture must be same
4. Error code -100: OpenCV error. Explanation of this error will be displayed in result window.