This shows you the differences between two versions of the page.
image_adapter_examples [2023/11/16 13:14] montse |
image_adapter_examples [2023/12/18 13:43] (current) montse |
||
---|---|---|---|
Line 15: | Line 15: | ||
===== Predefined functions (PF) ===== | ===== Predefined functions (PF) ===== | ||
- | * **compareWithAnother addHeaderText**: compares the image of the adapter with another image. It has two input and one output parameter:\\ | + | * **compareWithAnother**: compares the image of the adapter with another image. It has two input and one output parameter:\\ |
* **ImageToCompare**: path of the image to compare. This is mandatory. | * **ImageToCompare**: path of the image to compare. This is mandatory. | ||
* **ResultPath**: path to the folder to leave the result. This is optional. If empty, the resulting image Will be in the TCD path. The new image will be an image with red rectangles marking the difference between images. | * **ResultPath**: path to the folder to leave the result. This is optional. If empty, the resulting image Will be in the TCD path. The new image will be an image with red rectangles marking the difference between images. | ||
Line 32: | Line 32: | ||
* **transformBlackAndWhite**: allows you to transform a colour image into a black and white image. It has two input parameters: | * **transformBlackAndWhite**: allows you to transform a colour image into a black and white image. It has two input parameters: | ||
* **ImageToTranform**: path of the image to transform. This is optional. If the user does not enter a path, TAST uses the path of the image adapter. | * **ImageToTranform**: path of the image to transform. This is optional. If the user does not enter a path, TAST uses the path of the image adapter. | ||
- | * **ResultPath**: path to the folder where to leave the result. This is optional. If empty, the resulting image will be in the TCD path.\\ \\ Here is an example:\\ \\ {{ :blancoynegro_1en.png?direct&300 |}}\\ \\ We have chosen an image, in this case, the image of an elephant. This is the image we put on the adapter.\\ \\ {{ :es:blancoynegro_4.png?direct&300 |}}\\ \\{{ :blancoynegro_3en.png?direct&300 |}}\\ \\ We do not fill in any of the parameters. So what it will do is transform the colour elephant image into a black and white elephant image.\\ \\ {{ :blancoynegro_2en.png?direct&300 |}}\\ \\ {{ :es:blancoynegro_5.png?direct&300 |}}\\ \\ Run the test case\\ \\ {{ :es:blancoynegro_4.1.png?direct&300 |}}\\ \\ The result is the elephant transformed into black and white:\\ \\ {{ :es:blancoynegro_4.2.png?direct&300 |}}\\ \\ {{ :es:blancoynegro_6.png?direct&300 |}}\\ \\ | + | * **ResultPath**: path to the folder where to leave the result. This is optional. If empty, the resulting image will be in the TCD path.\\ \\ Here is an example:\\ \\ {{ :blancoynegro_1en.png?direct&300 |}}\\ \\ We have chosen an image, in this case, the image of an elephant. This is the image we put on the adapter.\\ \\ {{ :es:blancoynegro_4.png?direct&300 |}}\\ \\ {{ :blancoynegro_3en.png?direct&300 |}}\\ \\ We do not fill in any of the parameters. So what it will do is transform the colour elephant image into a black and white elephant image.\\ \\ {{ :blancoynegro_2en.png?direct&300 |}}\\ \\ {{ :es:blancoynegro_5.png?direct&300 |}}\\ \\ Run the test case\\ \\ {{ :es:blancoynegro_4.1.png?direct&300 |}}\\ \\ The result is the elephant transformed into black and white:\\ \\ {{ :es:blancoynegro_4.2.png?direct&300 |}}\\ \\ {{ :es:blancoynegro_6.png?direct&300 |}}\\ \\ |