itaRavenProject

-added functions to set scatter model (ray tracing) and sampling rate (filter synthesis)
parent 3c0b10e1
......@@ -1526,6 +1526,37 @@ classdef itaRavenProject < handle
obj.rpf_ini.WriteFile(obj.ravenProjectFile);
end
%------------------------------------------------------------------
function setFixReflectionPattern(obj, fixit)
obj.fixReflectionPattern = fixit;
obj.rpf_ini.SetValues('RayTracing', 'fixReflectionPattern', fixit);
obj.rpf_ini.WriteFile(obj.ravenProjectFile);
end
%------------------------------------------------------------------
function setScatterModel(obj, diffuseOrHit)
%setFilterResolution(obj, diffuseOrHit)
% 0 = Diffuse Rain (or 'diffuse'), 1 = Hit Oriented (or 'hit')
if ~isnumeric(diffuseOrHit)
diffuseOrHit = double(strcmp(diffuseOrHit, 'hit'));
end
%obj.scatterModel = diffuseOrHit;
obj.rpf_ini.SetValues('RayTracing', 'scatterModel_DetectionSphere', diffuseOrHit);
obj.rpf_ini.WriteFile(obj.ravenProjectFile);
end
%------------------------------------------------------------------
function setScatterModel_Portal(obj, diffuseOrHit)
%setFilterResolution(obj, diffuseOrHit)
% 0 = Diffuse Rain (or 'diffuse'), 1 = Hit Oriented (or 'hit')
if ~isnumeric(diffuseOrHit)
diffuseOrHit = double(strcmp(diffuseOrHit, 'hit'));
end
%obj.scatterModel_Portal = diffuseOrHit;
obj.rpf_ini.SetValues('RayTracing', 'scatterModel_Portal', diffuseOrHit);
obj.rpf_ini.WriteFile(obj.ravenProjectFile);
end
%------------------------------------------------------------------
function setEnergyLoss(obj, energyloss)
% setEnergyLoss
......@@ -1588,11 +1619,7 @@ classdef itaRavenProject < handle
obj.rpf_ini.SetValues('RayTracing', 'resolutionElevation_DetectionSphere', resEle);
obj.rpf_ini.WriteFile(obj.ravenProjectFile);
end
% [Filter] %
%------------------------------------------------------------------
function setFilterLength(obj, filter_length) % filter length parameter needed in [ms]
if filter_length < 3
......@@ -1635,6 +1662,15 @@ classdef itaRavenProject < handle
obj.setFilterLength(filter_length);
end
% [Filter] %
%------------------------------------------------------------------
function setSamplingFrequency(obj, samplingRate)
obj.sampleRate = samplingRate;
obj.rpf_ini.SetValues('Filter', 'samplingFrequency', samplingRate);
obj.rpf_ini.WriteFile(obj.ravenProjectFile);
end
%------------------------------------------------------------------
function setFixPoissonSequence(obj, fixit)
obj.fixPoissonSequence = fixit;
......@@ -1664,12 +1700,6 @@ classdef itaRavenProject < handle
obj.rpf_ini.WriteFile(obj.ravenProjectFile);
end
%------------------------------------------------------------------
function setFixReflectionPattern(obj, fixit)
obj.fixReflectionPattern = fixit;
obj.rpf_ini.SetValues('RayTracing', 'fixReflectionPattern', fixit);
obj.rpf_ini.WriteFile(obj.ravenProjectFile);
end
%------------------------------------------------------------------
function setMaximumReflectionDensity(obj, maxReflectionDensity)
......
Markdown is supported
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