File tree Expand file tree Collapse file tree 1 file changed +14
-2
lines changed
Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -51,6 +51,7 @@ imgarray <- writeImageArray(img,
5151 output = h5_sample ,
5252 nlevels = 2 ,
5353 replace = TRUE )
54+ imgarray
5455```
5556
5657```
@@ -59,8 +60,11 @@ Level 1 (768,512)
5960Level 2 (384,256)
6061```
6162
63+ Each level of a pyramid can be rasterized at any time.
64+
6265``` r
63- plot(as.raster(imgarray ))
66+ imgraster <- as.raster(imgarray , level = 2 ))
67+ plot(imgraster )
6468```
6569
6670<img src =" inst/extdata/sample.png " width =" 30% " >
@@ -73,11 +77,19 @@ vertical flipping and negation.
7377
7478``` r
7579imgarray <- rotate(imgarray , degrees = 90 )
80+ imgarray
81+ ```
82+
83+ ```
84+ ImageArray Object (x,y)
85+ Level 1 (512,768)
86+ Level 2 (256,384)
7687```
7788
7889<br >
7990
80- We can crop or slice images via lazy indexing.
91+ We can crop or slice images via lazy/delayed indexing again with loading the
92+ image to the memory.
8193
8294``` r
8395# crop or slice via indexing
You can’t perform that action at this time.
0 commit comments