1
# utils for Graff / Caesar style BigData
2

3

4
function getPointCloudFromKinect(data, dcamjl, imshape)
5 0
  ri,ci = imshape[1], imshape[2] # TODO -- hack should be removed since depth is array and should have rows and columns stored in Mongo
6 0
  arr = bin2arr(data, dtype=Float32) # should also store dtype for arr in Mongo
7 0
  img = reshape(arr, ci, ri)'
8 0
  reconstruct(dcamjl, Array{Float64,2}(img))
9
end
10

11
function getPointCloudFromBSON(data)
12 0
  buf = IOBuffer(data)
13 0
  st = takebuf_string(buf)
14 0
  bb = BSONObject(st)
15 0
  return map(x -> convert(Array, x), bb["pointcloud"])
16
end

Read our documentation on viewing source code .

Loading