Python Forum
Rotate 2D Gaussian given parameters
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Rotate 2D Gaussian given parameters
#1
I have a Gaussian function of the form:

def f(x,y):
  a=some number
  b=...
  c=...
  return 3*np.exp(-a*(-0.5 + x)**2+b*(x-0.5)*(y-0.5)-c*(-0.5 + y)**2)
This is a Gaussian function symmetric around y=x, and I'd like to rotate it 45 degrees (counter)clockwise. Wikipedia gives an overdetermined system of equations for the variances of x and y respectively, but it looks cumbersome. Is there a simple way to do this?

Gaussian parameters
Reply


Messages In This Thread
Rotate 2D Gaussian given parameters - by schniefen - Dec-10-2020, 06:17 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  How to rotate bits ? korenron 2 1,633 Mar-23-2022, 04:05 PM
Last Post: Larz60+
  Returning values from Gaussian fitting Laplace12 0 1,576 Aug-05-2021, 08:09 AM
Last Post: Laplace12
  Fitting Gaussian curve to data file Laplace12 0 2,760 Jun-09-2021, 10:45 AM
Last Post: Laplace12
  How to rotate log and limit the size maiya 0 1,759 Aug-29-2020, 12:41 AM
Last Post: maiya
  Multi-gaussian function Laplace12 5 4,040 Jul-21-2020, 11:38 PM
Last Post: scidam
  How do I apply a Gaussian blur to a particular edge of geometry in Matplotlib? hbolandi 0 2,008 Feb-02-2020, 06:08 PM
Last Post: hbolandi
  gaussian quadrature mohammadrezamofidi 4 4,107 Jun-18-2019, 04:06 PM
Last Post: michalmonday

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020