Skip to content

Commit

Permalink
Merge pull request #3 from felipegb94/FelipeDevelop
Browse files Browse the repository at this point in the history
add calcMADE script, fix datasets
  • Loading branch information
felipegb94 authored Apr 13, 2017
2 parents 0abc27b + d3f7bae commit 409a55c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions ToFSim/ToFSim.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@
demod = np.zeros((k,nDepths),dtype=float)

for i in range(0,k):
mod[i,0] = 1. # set delta coding function
# mod[i,:] = 0.5 + 0.5*np.cos((2*np.pi*dRange/nDepths)) # set sinusoidal coding function
# mod[i,0] = 1. # set delta coding function
mod[i,:] = 0.5 + 0.5*np.cos((2*np.pi*dRange/nDepths)) # set sinusoidal coding function
mod[i,:] = mod[i,:] / np.sum(mod[i,:]) # normalize so that sum is equal to 1
demod[i,:] = 0.5 + 0.5*np.cos((2*np.pi*dRange/nDepths) - 2*i*np.pi/k)

Expand All @@ -71,8 +71,8 @@

grayIMat = np.zeros((cam.nRows,cam.nCols,k))

nDataPoints = 100000
trueDists = np.random.uniform(low=0.,high=10000.,size=nDataPoints)
nDataPoints = 10000
trueDists = np.random.uniform(low=0.,high=5000.,size=nDataPoints)
print trueDists
bMeasurements = np.zeros((nDataPoints,k))

Expand Down Expand Up @@ -144,7 +144,7 @@
print output
print output.shape

np.savetxt("../Datasets/MediumDepthData.csv",output,delimiter=",")
np.savetxt("../Datasets/EasyDepthData_Test.csv",output,delimiter=",")

# a = np.array([trueDists,])

Expand Down

0 comments on commit 409a55c

Please sign in to comment.