Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1490)

Unified Diff: webrtc/modules/audio_processing/beamformer/array_util.h

Issue 1394103003: Make the nonlinear beamformer steerable (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@highfreq
Patch Set: Add nonlinear_beamformer_unittest Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: webrtc/modules/audio_processing/beamformer/array_util.h
diff --git a/webrtc/modules/audio_processing/beamformer/array_util.h b/webrtc/modules/audio_processing/beamformer/array_util.h
index 64a9ca37f92dfefff8c5b95e35683677e7bf098e..63b0131aae07ebc4877e2ca886267c749025e917 100644
--- a/webrtc/modules/audio_processing/beamformer/array_util.h
+++ b/webrtc/modules/audio_processing/beamformer/array_util.h
@@ -16,7 +16,12 @@
namespace webrtc {
-// Coordinates in meters.
+// Coordinates in meters. The convention used is:
+// x: the horizontal dimension, with positive to the right from the camera's
+// perspective.
+// y: the depth dimension, with positive forward from the camera's
+// perspective.
+// z: the vertical dimension, with positive upwards.
template<typename T>
struct CartesianPoint {
CartesianPoint(T x, T y, T z) {
@@ -41,6 +46,11 @@ float Distance(CartesianPoint<T> a, CartesianPoint<T> b) {
(a.z() - b.z()) * (a.z() - b.z()));
}
+// The convention used:
+// azimuth: Zero is to the right from the camera's perspective, with positive
Andrew MacDonald 2015/10/20 03:00:08 nit: to be consistent with above, no capitalizatio
aluebs-webrtc 2015/10/21 01:41:40 Done.
+// angles in radians towards the front of the camera.
Andrew MacDonald 2015/10/20 03:00:08 with positive angles counter-clockwise.
aluebs-webrtc 2015/10/21 01:41:40 My only concern with using "counter-clockwise" is
Andrew MacDonald 2015/10/21 22:59:46 Right. Another option is to define these in terms
+// elevation: Zero is horizontal, with positive angles in radians upwards.
+// radius: Distance from the camera in meters.
template <typename T>
struct SphericalPoint {
SphericalPoint(T azimuth, T elevation, T radius) {

Powered by Google App Engine
This is Rietveld 408576698