I need to compute the material reflectivity from laser intensity. Because the reflected radiation depends on the reflectivity, on the distance and on the incidence angle with a quite complex formula, it can be useful some improvements in the scalar fileds arithmetics:
- trigonometric functions (I have overcome the problem by Taylor expansion, that can be solved by fundamental operations only)
- other functions such as exponentiation, factorial, square root, etc.
- operations with more than two scalar fields, or the possibility to write an expression with SF.
Thanks,
Marco
[Done] Scalar fileds arithmetics
Re: Scalar fileds arithmetics
Hum this one is a bit more complicated ;)
I believe in this case it would be simpler to export the cloud as an ASCII file and import it in Matlab or Octave for instance.
Of course if anyone is motivated to implement this we'll kindly accept his contribution :)
I believe in this case it would be simpler to export the cloud as an ASCII file and import it in Matlab or Octave for instance.
Of course if anyone is motivated to implement this we'll kindly accept his contribution :)
Daniel, CloudCompare admin
Re: Scalar fileds arithmetics
I don't think so. If you have already implemented the four fundamental operations, it's not difficult to implement also other operations. Take in mind the example of a trigonometric function, that i solved as Taylor expansion, that is simply a sequence of fundamental operations. Do you agree?
Re: Scalar fileds arithmetics
C++ have the cos and sin methods (and all others :)
I was more thinking about the last item "operations with more than two scalar fields, or the possibility to write an expression with SF."
I was more thinking about the last item "operations with more than two scalar fields, or the possibility to write an expression with SF."
Daniel, CloudCompare admin
Re: Scalar fileds arithmetics
The following operations have been added:
- SQRT
- POW2
- POW3
- EXP
- LOG
- LOG10
- COS(radians)
- SIN(radians)
- TAN(radians)
- ACOS
- ASIN
- ATAN
Daniel, CloudCompare admin
Re: [Done] Scalar fileds arithmetics
Thank you Daniel!
Kind regards,
Marco
Kind regards,
Marco