Questions tagged [magnitude]
74 questions
1
vote
1 answer
Is there a way to do an astroquery conesearch with a magnitude limit?
Goal: I would like to return an astropy table of star coordinates with magnitudes below a specified number.
Currently: I am using astroquery.vo_conesearch.conesearch to get the table of star coordinates and magnitudes and then afterwards removing…

Zachary
- 47
- 5
1
vote
1 answer
Document Sentiment Magnitude != sum(Sentence Magnitude)
I am currently utilizing the google cloud NL api for some tests where I analyze news articles. I was initially curious about how document magnitude was calculated, and searches here yielded
Google Cloud Natural Language API - How is document…

Alfred Ang
- 13
- 3
1
vote
1 answer
cartToPolar returns not enough distinct angles
My goal is to colorize camera gradient magnitude with 3 colors based on angle using opencv.
To get gradient magnitude, I converted frame from camera to gray scale, then apply gaussian blur, then create sobel on x axis and y axis, and binarize them…

ronek22
- 138
- 1
- 8
1
vote
1 answer
Magnitude only reconstruction doesn't look correct, am I interpreting this correctly?
I have implemented a method from "Phase retrieval from the magnitude of the Fourier transforms of nonperiodic objects" paper available at: https://pdfs.semanticscholar.org/4796/592751aaa5b316aaefbd5eab09ca51fad580.pdf
in which the authors…

Kevinj22
- 966
- 2
- 7
- 11
1
vote
1 answer
Weired values for FFT of falling saw-tooth
I'm trying to get the amplitudes and phases of a (falling) saw-tooth signal.
My saw-tooth is 1024 samples long and generated as
int numSamples = 1024;
for (int i = 0; i < numSamples; i++)
{
samples[i] = -((float)i / (float)(numSamples - 1) *…

Lenny
- 71
- 6
1
vote
1 answer
How to specify and keep only a proportion of the Fourier Transforms of largest magnitude from an image
I want to write a short MATLAB program that enables me to specify and keep only a proportion of the Fourier Transforms of largest magnitude from an image representation.
Here is my code so far, where 'image123' is a 256x256 uint8:
I= image123;
F =…

user3497570
- 25
- 1
- 8
1
vote
1 answer
OpenCV/Python: Colorbar in fft magnitude
I'm using opencv in python 2.7.
The colormap is oversized. How to shrink it to has the same length as the image?
How do I explain the value/range of magnitude?
This is my code:
import numpy as np
import cv2
from matplotlib import pyplot as…

zinon
- 4,427
- 14
- 70
- 112
1
vote
0 answers
Change size based on distance from player
I'm trying to make walls to change size based on the distance from the player's torso (bigger when close, smaller when faraway). I'm not really good at this kind of stuff so I have no idea how to do this.
Here's the code at the moment:
for _, v in…

Ducktor
- 337
- 1
- 9
- 27
1
vote
1 answer
Track Distance Traveled Without Using .magnitude or Vector3.Distance()?
I have a missile in my game and I want to keep track of the distance it has traveled to compare against a maximum range.
As it could conceivably travel along a curved path, just comparing its current position against its starting position won't work…

Bakewell
- 13
- 1
- 1
- 4
1
vote
1 answer
Is this Fourier Analysis of Luminance Signals Correct? (Android)
I'm writing an Android app that measures the luminance of camera frames over a period of time and calculates a heart beat using Fourier Analysis to find the wave's frequency. The problem is that my spectral analysis looks like this:
which is pretty…

Piglet
- 29
- 1
- 4
1
vote
0 answers
Find Units of each sensors in CMMotionManager in iphone
There is any in build method to know the Units of each sensor values?
Im trying to find the value for Acceleration Magnitude. We have any inbuild method to find it out or i can follow the following formula?
(√(Accelx2+Accely2+Accelz2))/…

siva
- 1,402
- 2
- 14
- 28
1
vote
2 answers
Index elements of a sequence by where they would appear in a sorted copy
I have a list of integers, for example:
my_list = [5, 2, 4, 9]
I want a list containing the position where each element would appear in the list if it were sorted. So in the example above, I want this result:
>>> sorted(my_list)
[2, 4, 5, 9]
>>>…

Sarah
- 11
- 1
1
vote
1 answer
Trying to find Magnitude of Mat image
I'm trying to learn OpenCV (Using version 3.0.0).
Right now I'm trying to see what the point operatioins do to various images, everything is going fine until I tried to do the magnitude operation, which requires inputs be in the form…

Fetts Vett
- 43
- 2
- 11
1
vote
4 answers
C++ Magnitude (Normalise) doesn't seem to be correct
I'm doing a little 2D tank turret game where you rotate a tank in the middle of a screen, click your left button and then a little projectile moves to that location.
I'm currently at the point where I have a current location and a desired location,…

Johnathan Brown
- 713
- 12
- 35
1
vote
1 answer
High Pass Filter using FFTW in C
I have a question regarding FFT. I already manage to do FFT forward and backward using FFTW in C. Now, I want to apply high pass filter for edge detection, some of my source said that just zeroing the centre of the magnitude.
This is my input…

Stewart Sentanoe
- 21
- 1
- 3