Scénario de test & Cas d'usage
Bildverarbeitung, -manipulation und -analyse.
Entdecken Sie alle Aktionen von imageErstellung von Dummy-Tabellen für Quell- und Referenzbilder mit passenden Dateinamen für den Pfadvergleich.
| 1 | |
| 2 | DATA casuser.source_med; |
| 3 | LENGTH _path_ $100 _image_ $20; |
| 4 | INPUT _path_ $ _image_ $; |
| 5 | DATALINES; |
| 6 | img1.jpg [BINARY] img2.jpg [BINARY] ; |
| 7 | |
| 8 | RUN; |
| 9 | |
| 10 | DATA casuser.ref_med; |
| 11 | LENGTH _path_ $100 _image_ $20; |
| 12 | INPUT _path_ $ _image_ $; |
| 13 | DATALINES; |
| 14 | img1.jpg [BINARY] img2.jpg [BINARY] ; |
| 15 | |
| 16 | RUN; |
| 17 |
| 1 | |
| 2 | PROC CAS; |
| 3 | image.compareImages / TABLE={name='source_med', caslib='casuser'} referenceImages={TABLE={name='ref_med', caslib='casuser'}} pairOnPath=TRUE method='SSIM' casOut={name='med_results', caslib='casuser', replace=TRUE}; |
| 4 | |
| 5 | RUN; |
| 6 |
| 1 | |
| 2 | PROC CAS; |
| 3 | SIMPLE.summary / TABLE={name='med_results', caslib='casuser', where='_ssim_ < 0.95'}; |
| 4 | |
| 5 | RUN; |
| 6 |
Die Tabelle 'med_results' enthält SSIM-Werte für jedes Bildpaar (gematcht über '_path_'). Es wird erwartet, dass die Werte nahe 1 liegen, was eine hohe strukturelle Ähnlichkeit bestätigt.