이 파일은 위키미디어 공용에 있으며, 다른 프로젝트에서 사용하고 있을 가능성이 있습니다.
해당 파일에 대한 설명이 아래에 나와 있습니다.
파일 설명
설명Hermite-gaussian.png
English: Hermite-Gaussian transverse mode patterns. Bigger and better version created with the help of the Python script below
Русский: Моды оптического резонатора с квадратными зеркалами
#!/usr/bin/env python
import sys
import Image
from math import *
from scipy.special.orthogonal import hermite
size = 320
I_0 = 1.
w = size/4.
m = int(sys.argv[1])
n = int(sys.argv[2])
def linear_to_sRGB(l):
# Formula from http://www.w3.org/Graphics/Color/sRGB
if l <= 0.00304:
l = 12.92*l
else:
l = 1.055*pow(l,1.0/2.4) - 0.055
return 255.0*l
# First, let's make a floating-point image of the raw intensities.
raw = Image.new('F', (size,size))
high = 0
for x in range(1, size, 2):
for y in range(1, size, 2):
I = I_0 * (hermite(m)(sqrt(2)*x/w)*exp(-x**2/w**2))**2 \
* (hermite(n)(sqrt(2)*y/w)*exp(-y**2/w**2))**2
if I > high: high = I
raw.putpixel((size/2+(x-1)/2,size/2+(y-1)/2), I)
raw.putpixel((size/2+(x-1)/2,size/2-(y+1)/2), I)
raw.putpixel((size/2-(x+1)/2,size/2+(y-1)/2), I)
raw.putpixel((size/2-(x+1)/2,size/2-(y+1)/2), I)
print 'row ' + str((x+1)/2) + ' of ' + str(size/2) + ' complete'
# Now, let's normalize them and export them as sRGB.
cooked = Image.new('L', (size,size))
for x in range(size):
for y in range(size):
l = raw.getpixel((x,y))/high
cooked.putpixel((x,y), linear_to_sRGB(l))
print 'row ' + str(x+1) + ' of ' + str(size) + ' complete'
GNU 자유 문서 사용 허가서 1.2판 또는 자유 소프트웨어 재단에서 발행한 이후 판의 규정에 따라 본 문서를 복제하거나 개작 및 배포할 수 있습니다. 본 문서에는 변경 불가 부분이 없으며, 앞 표지 구절과 뒷 표지 구절도 없습니다. 본 사용 허가서의 전체 내용은 GNU 자유 문서 사용 허가서 부분에 포함되어 있습니다.http://www.gnu.org/copyleft/fdl.htmlGFDLGNU Free Documentation Licensetruetrue
이 라이선스 중에서 목적에 맞는 것을 선택하여 사용할 수 있습니다.
기존 올리기 기록
The original description page was here. All following user names refer to en.wikipedia.
Upload date | User | Bytes | Dimensions | Comment
2007-07-08 22:25 (UTC) | Keenan Pepper | 122975 (bytes) | 1280×960 | Hermite-Gaussian transverse mode patterns. Bigger & better version, created with this Python script: #!/usr/bin/env python import sys import Image from math import * from scipy.special.orthogonal import hermite size = 320 I_0 = 1. w = size/4