Fix iOS warnings about implicit conversion precision by changing double literals to float ones
This commit is contained in:
@@ -241,7 +241,7 @@ public:
|
|||||||
* @param HcellsSpatialConstant: the spatial constant of the first order low pass filter of the horizontal cells, use it to cut low spatial frequencies (local luminance), unit is pixels, typical value is 5 pixel, this value is also used for local contrast computing when computing the local contrast adaptation at the ganglion cells level (Inner Plexiform Layer parvocellular channel model)
|
* @param HcellsSpatialConstant: the spatial constant of the first order low pass filter of the horizontal cells, use it to cut low spatial frequencies (local luminance), unit is pixels, typical value is 5 pixel, this value is also used for local contrast computing when computing the local contrast adaptation at the ganglion cells level (Inner Plexiform Layer parvocellular channel model)
|
||||||
* @param ganglionCellsSensitivity: the compression strengh of the ganglion cells local adaptation output, set a value between 160 and 250 for best results, a high value increases more the low value sensitivity... and the output saturates faster, recommended value: 230
|
* @param ganglionCellsSensitivity: the compression strengh of the ganglion cells local adaptation output, set a value between 160 and 250 for best results, a high value increases more the low value sensitivity... and the output saturates faster, recommended value: 230
|
||||||
*/
|
*/
|
||||||
void setupOPLandIPLParvoChannel(const bool colorMode=true, const bool normaliseOutput = true, const float photoreceptorsLocalAdaptationSensitivity=0.7, const float photoreceptorsTemporalConstant=0.5, const float photoreceptorsSpatialConstant=0.53, const float horizontalCellsGain=0, const float HcellsTemporalConstant=1, const float HcellsSpatialConstant=7, const float ganglionCellsSensitivity=0.7);
|
void setupOPLandIPLParvoChannel(const bool colorMode=true, const bool normaliseOutput = true, const float photoreceptorsLocalAdaptationSensitivity=0.7f, const float photoreceptorsTemporalConstant=0.5f, const float photoreceptorsSpatialConstant=0.53f, const float horizontalCellsGain=0, const float HcellsTemporalConstant=1, const float HcellsSpatialConstant=7, const float ganglionCellsSensitivity=0.7f);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* set parameters values for the Inner Plexiform Layer (IPL) magnocellular channel
|
* set parameters values for the Inner Plexiform Layer (IPL) magnocellular channel
|
||||||
@@ -255,7 +255,7 @@ public:
|
|||||||
* @param localAdaptintegration_tau: specifies the temporal constant of the low pas filter involved in the computation of the local "motion mean" for the local adaptation computation
|
* @param localAdaptintegration_tau: specifies the temporal constant of the low pas filter involved in the computation of the local "motion mean" for the local adaptation computation
|
||||||
* @param localAdaptintegration_k: specifies the spatial constant of the low pas filter involved in the computation of the local "motion mean" for the local adaptation computation
|
* @param localAdaptintegration_k: specifies the spatial constant of the low pas filter involved in the computation of the local "motion mean" for the local adaptation computation
|
||||||
*/
|
*/
|
||||||
void setupIPLMagnoChannel(const bool normaliseOutput = true, const float parasolCells_beta=0, const float parasolCells_tau=0, const float parasolCells_k=7, const float amacrinCellsTemporalCutFrequency=1.2, const float V0CompressionParameter=0.95, const float localAdaptintegration_tau=0, const float localAdaptintegration_k=7);
|
void setupIPLMagnoChannel(const bool normaliseOutput = true, const float parasolCells_beta=0, const float parasolCells_tau=0, const float parasolCells_k=7, const float amacrinCellsTemporalCutFrequency=1.2f, const float V0CompressionParameter=0.95f, const float localAdaptintegration_tau=0, const float localAdaptintegration_k=7);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* method which allows retina to be applied on an input image, after run, encapsulated retina module is ready to deliver its outputs using dedicated acccessors, see getParvo and getMagno methods
|
* method which allows retina to be applied on an input image, after run, encapsulated retina module is ready to deliver its outputs using dedicated acccessors, see getParvo and getMagno methods
|
||||||
|
|||||||
@@ -243,7 +243,7 @@ void cv::Affine3<T>::rotation(const Vec3& _rvec)
|
|||||||
double c = std::cos(theta);
|
double c = std::cos(theta);
|
||||||
double s = std::sin(theta);
|
double s = std::sin(theta);
|
||||||
double c1 = 1. - c;
|
double c1 = 1. - c;
|
||||||
double itheta = theta ? 1./theta : 0.;
|
double itheta = (theta != 0) ? 1./theta : 0.;
|
||||||
|
|
||||||
rx *= itheta; ry *= itheta; rz *= itheta;
|
rx *= itheta; ry *= itheta; rz *= itheta;
|
||||||
|
|
||||||
|
|||||||
@@ -91,13 +91,13 @@ struct CV_EXPORTS LinearIndexParams : public IndexParams
|
|||||||
struct CV_EXPORTS CompositeIndexParams : public IndexParams
|
struct CV_EXPORTS CompositeIndexParams : public IndexParams
|
||||||
{
|
{
|
||||||
CompositeIndexParams(int trees = 4, int branching = 32, int iterations = 11,
|
CompositeIndexParams(int trees = 4, int branching = 32, int iterations = 11,
|
||||||
cvflann::flann_centers_init_t centers_init = cvflann::FLANN_CENTERS_RANDOM, float cb_index = 0.2 );
|
cvflann::flann_centers_init_t centers_init = cvflann::FLANN_CENTERS_RANDOM, float cb_index = 0.2f );
|
||||||
};
|
};
|
||||||
|
|
||||||
struct CV_EXPORTS AutotunedIndexParams : public IndexParams
|
struct CV_EXPORTS AutotunedIndexParams : public IndexParams
|
||||||
{
|
{
|
||||||
AutotunedIndexParams(float target_precision = 0.8, float build_weight = 0.01,
|
AutotunedIndexParams(float target_precision = 0.8f, float build_weight = 0.01f,
|
||||||
float memory_weight = 0, float sample_fraction = 0.1);
|
float memory_weight = 0, float sample_fraction = 0.1f);
|
||||||
};
|
};
|
||||||
|
|
||||||
struct CV_EXPORTS HierarchicalClusteringIndexParams : public IndexParams
|
struct CV_EXPORTS HierarchicalClusteringIndexParams : public IndexParams
|
||||||
@@ -109,7 +109,7 @@ struct CV_EXPORTS HierarchicalClusteringIndexParams : public IndexParams
|
|||||||
struct CV_EXPORTS KMeansIndexParams : public IndexParams
|
struct CV_EXPORTS KMeansIndexParams : public IndexParams
|
||||||
{
|
{
|
||||||
KMeansIndexParams(int branching = 32, int iterations = 11,
|
KMeansIndexParams(int branching = 32, int iterations = 11,
|
||||||
cvflann::flann_centers_init_t centers_init = cvflann::FLANN_CENTERS_RANDOM, float cb_index = 0.2 );
|
cvflann::flann_centers_init_t centers_init = cvflann::FLANN_CENTERS_RANDOM, float cb_index = 0.2f );
|
||||||
};
|
};
|
||||||
|
|
||||||
struct CV_EXPORTS LshIndexParams : public IndexParams
|
struct CV_EXPORTS LshIndexParams : public IndexParams
|
||||||
|
|||||||
Reference in New Issue
Block a user