Action Principale : compareImages
| 1 | PROC CAS; |
| 2 | /* Crear tabla de imágenes de origen */ |
| 3 | DATA casuser.source_images; |
| 4 | LENGTH _path_ $200; |
| 5 | INFILE DATALINES dsd; |
| 6 | INPUT _path_ $; |
| 7 | DATALINES; |
| 8 | /img/original/image1.png |
| 9 | /img/original/image2.jpg |
| 10 | ; |
| 11 | RUN; |
| 12 | |
| 13 | /* Crear tabla de imágenes de referencia */ |
| 14 | DATA casuser.reference_images; |
| 15 | LENGTH _path_ $200; |
| 16 | INFILE DATALINES dsd; |
| 17 | INPUT _path_ $; |
| 18 | DATALINES; |
| 19 | /img/reference/image1.png |
| 20 | /img/reference/image2.jpg |
| 21 | ; |
| 22 | RUN; |
| 23 | |
| 24 | /* Cargar las imágenes en las tablas CAS */ |
| 25 | image.loadImages / |
| 26 | path="/img/original/" |
| 27 | casout={name="source_images_loaded", caslib="casuser", replace=true}; |
| 28 | RUN; |
| 29 | |
| 30 | image.loadImages / |
| 31 | path="/img/reference/" |
| 32 | casout={name="reference_images_loaded", caslib="casuser", replace=true}; |
| 33 | RUN; |
| 34 | QUIT; |