Scénario de test & Cas d'usage
Bildverarbeitung, -manipulation und -analyse.
Entdecken Sie alle Aktionen von imageErzeugung einer Tabelle 'sensor_flat' mit einer ID und 4 Pixelspalten (p1-p4), die ein 2x2 Bild repräsentieren.
| 1 | DATA casuser.sensor_flat; INPUT scan_id $ p1 p2 p3 p4; CARDS; |
| 2 | S001 10 20 30 40 |
| 3 | S002 255 255 0 0 |
| 4 | S003 128 128 128 128 |
| 5 | ; RUN; |
| 1 | |
| 2 | PROC CAS; |
| 3 | image.condenseImages / TABLE={name="sensor_flat"} casOut={name="sensor_images", replace=TRUE} width=2 height=2 numberOfChannels="GRAY_SCALE_IMAGE"; |
| 4 | |
| 5 | RUN; |
| 6 |
| 1 | |
| 2 | PROC CAS; |
| 3 | TABLE.columnInfo / TABLE="sensor_images"; |
| 4 | |
| 5 | RUN; |
| 6 |
Die Aktion läuft erfolgreich durch. Die Ausgabetabelle 'sensor_images' enthält eine binäre VARBINARY-Spalte (typischerweise '_image_'), die das 2x2-Bild enthält. Die Zeilenanzahl bleibt identisch mit der Eingabe (3 Zeilen).