Skip to content

Commit 601d171

Browse files
committed
small updates to README
1 parent 669d5c9 commit 601d171

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

README.md

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff 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)
5960
Level 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
7579
imgarray <- 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

0 commit comments

Comments
 (0)