我是一开始的垫子。 而且,我需要这个项目的一小部分。 目前,我正致力于为一项可能与光学相关的项目建立一个更广泛的来源。 我需要扩大的源头形成循环或六角,我需要将来源的密集程度分配给加西。 我的教授告诉我,我应该仿照马特拉布的消息来源,然后在Zemax进口。
任何人都能够帮助我做饭?
我是一开始的垫子。 而且,我需要这个项目的一小部分。 目前,我正致力于为一项可能与光学相关的项目建立一个更广泛的来源。 我需要扩大的源头形成循环或六角,我需要将来源的密集程度分配给加西。 我的教授告诉我,我应该仿照马特拉布的消息来源,然后在Zemax进口。
任何人都能够帮助我做饭?
这就是我如何在数学上这样做。 希望能推向Matlab:
imgSz = 300;
k = Array[0 &, {imgSz, imgSz}]; (* A square image *)
Table[k[[i, j]] =
PDF[NormalDistribution[0, imgSz/6], (* mu, sigma *)
EuclideanDistance[{i, j}, {imgSz/2, imgSz/2}]], (*distance from centre*)
{i, imgSz}, {j,imgSz}]; (* Table indexes for iteration *)
Image@k // ImageAdjust (*Show Image*)
你可以建立一个加西矩阵,并用六角/西门面面罩来掌握你想要的来源的规模和形态。 你可以尝试
%#initialize
N=1000;
x=repmat(linspace(-4,4,N),N,1);y=x ;% #this comment is to fix highlighting in Stackoverflow.
sigma=1;
%#compute a Gaussian matrix
gaussMatrix=exp( -x.^2/(2*sigma^2) - y.^2/(2*sigma^2));
%#create Hexagonal mask
xCenter=0;yCenter=0;%#center
radius=2;%#radius of the inscribed circle, i.e., distance from center to midpoint of side
hexMask=(abs(y-yCenter)<=radius) & ...
(abs(sqrt(3)/2*(x-xCenter)+1/2*(y-yCenter))<=radius) & ...
(abs(sqrt(3)/2*(x-xCenter)-1/2*(y-yCenter))<=radius);
figure, imshow(hexMask.*gaussMatrix)
%#create a circular mask
radius=2;
circMask=(abs(y-yCenter).^2+abs(x-xCenter).^2<=radius.^2);
figure, imshow(circMask.*gaussMatrix)
The hexagonal source looks like this
以及通知/资料来源都对此有所考虑。
I have a QCView that loads a Quartz file which gives you iSights feedback (basically like a QTCaptureView) Everything displays fine The button simply takes a snapshot using the following simple ...
Is it possible to simply take a picture and save it somewhere using a QTCaptureView and Apple s built-in iSight? I ve seen lots of tutorials on recording video but none on simply taking a picture. Any ...
In .NET how can I transform an image into a trapezoid. The Matrix class supports rotation, shear, etc, but I can t see a trapezoidal transformation. I m using the usual System.Drawing.* API, but I m ...
What are my options for rotating an image on a web page through the Y-axis? I m not sure if I even have the terminology right. Is this called a rotate or a transform. Most of the searches that I ve ...
I want to create text as a watermark for an image. the water mark should have the following properties front: Impact color: white opacity: 31% Font style: regular, bold Bevel and Emboss size: 30 ...
I m developing a new site that graphs some operational metrics. As such about a dozen charts/graphs will be displayed on the site. I want to be able to have them dynamically scale down (within ...
Is it possible to edit a xaml icons or images in the expression design or using other tools? Is it possible to import a xaml images (that e.g you have exported) in the expression designer for editing?...
I need to take a full color JPG Image and remap it s colors to a Indexed palette. The palette will consist of specific colors populated from a database. I need to map each color of the image to it s "...