Skip to content
Snippets Groups Projects
Commit 6294701e authored by Nianchen Deng's avatar Nianchen Deng
Browse files

sync

parent 2824f796
Branches
No related merge requests found
Showing
with 40 additions and 0 deletions
File moved
#pragma once
#include "Msl.h"
class Nmsl2 : public Msl
{
public:
sptr<Resource> resRaw1;
sptr<Resource> resRaw2;
Net *fcNet1;
Net *fcNet2;
Net *catNet;
unsigned int batchSize;
unsigned int samples;
Nmsl2(int batchSize, int samples);
virtual bool load(const std::string &netDir);
virtual void bindResources(Resource *resEncoded, Resource *resDepths, Resource *resColors);
virtual bool infer();
virtual void dispose();
};
File moved
File moved
File moved
#pragma once
#include "../utils/common.h"
class Sampler {
public:
Sampler(glm::vec2 depthRange, unsigned int samples, bool outputRadius)
: _dispRange(1.0f / depthRange, samples), _outputRadius(outputRadius) {}
void sampleOnRays(sptr<CudaArray<float>> o_coords, sptr<CudaArray<float>> o_depths,
sptr<CudaArray<glm::vec3>> rays, glm::vec3 rayCenter);
private:
Range _dispRange;
bool _outputRadius;
};
\ No newline at end of file
File moved
File moved
File moved
File moved
File added
File added
File added
File added
File added
File added
File added
File added
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment