Skip to content

trj2img: convert from 2d trajectory (np.ndarray) to image (np.ndarray) for tensorbaord

License

Notifications You must be signed in to change notification settings

MasanoriYamada/trj2img

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

trj2img: convert from 2d trajectory (np.ndarray) to image (np.ndarray) for tensorbaord

befor

2d trajectory np.ndarray[batch, 2, seq]

input

oufter

image np.ndarray[batch, channel, w=64, h=64]

ouput

How to use

plese see example.ipynb

trj2img(x, x_range, y_range, reduce_time=False)
x: np.ndarray (shape: [batch, 2, seq])
x_range: x value range (i.e. [-1,1])
y_range: y value range (i.e. [0, 1])
reduce_time: When True, display sequence overlaid on a single image 

About

trj2img: convert from 2d trajectory (np.ndarray) to image (np.ndarray) for tensorbaord

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published