Skip to content

Commit

Permalink
Added image for example
Browse files Browse the repository at this point in the history
  • Loading branch information
sxyu committed May 12, 2023
1 parent 07c746c commit 7742837
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Binary file added examples/bulldozer.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 3 additions & 2 deletions examples/image.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
# Example to add an image
from nerfvis import scene
import numpy as np
import imageio
import imageio.v2 as imageio

bulldozer = imageio.imread('bulldozer.jpg')
scene.add_cube('My cube/0', translation=[2,0,0])
scene.add_cube('My cube/0', translation=[0,0,0])
scene.add_image('My bulldozer image',
bulldozer,
r = np.eye(3),
Expand Down

0 comments on commit 7742837

Please sign in to comment.