File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed
mode/libraries/ar/src/processing/ar Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -54,13 +54,25 @@ public ARTracker(PApplet parent) {
54
54
}
55
55
56
56
public void addImage (String name , PImage img ) {
57
+ addImageImp (name , img , null );
58
+ }
59
+
60
+ public void addImage (String name , PImage img , float size ) {
61
+ addImageImp (name , img , size );
62
+ }
63
+
64
+ private void addImageImp (String name , PImage img , Float size ) {
57
65
if (db == null ) {
58
66
// Creating a new database of augmented images.
59
67
db = new AugmentedImageDatabase (g .surfar .session );
60
68
}
61
69
62
70
Bitmap bitmap = (Bitmap )img .getNative ();
63
- db .addImage (name , bitmap );
71
+ if (size != null ) {
72
+ db .addImage (name , bitmap , size );
73
+ } else {
74
+ db .addImage (name , bitmap );
75
+ }
64
76
65
77
// Reset the session config with the updated image database
66
78
Config config = new Config (g .surfar .session );
You can’t perform that action at this time.
0 commit comments