キャンセル
次の結果を表示 
次の代わりに検索 
もしかして: 

2d Gaussian Fit Problem.

解決済み
解決策を見る

Sorry, I don't have IMAQ. Could you replace your image with a diagram constant of a 2D array?

 

Also, since your data is arranged in a grid, all you need is reshape to a 1D array (the picture array and the function output inside the model), you don't need this advanced coding that also works for scattered xyz data.

0 件の賞賛
メッセージ11/24
7,862件の閲覧回数

@altenbach wrote:

Also, since your data is arranged in a grid, all you need is reshape to a 1D array (the picture array and the function output inside the model), you don't need this advanced coding that also works for scattered xyz data.


Here is an old example for this. (read the entire thread to fit for an elliptic peak of arbitrary rotation, see image below)

 

メッセージ12/24
7,860件の閲覧回数

Dear 

 

 

I replaced the same image with static 2d array. thanks for your time

 

cheers

 xg

0 件の賞賛
メッセージ13/24
7,853件の閲覧回数

As I said, you should use code that is optmized for gridded data. There is no reason to do the xyz dance.

 

Here's a quick rewrite of my older code.

 

(simply read your PNG file, wat a few seconds, and it will fit it just fine. For faster fitting, you should take a reasonably sized subset around the peak)

 

 

0 件の賞賛
メッセージ14/24
7,842件の閲覧回数

And here's how it would look taking a reasonable subset. Much faster! (same model VI as above)

 

 

 

すべてをダウンロード
メッセージ15/24
7,840件の閲覧回数

Dear  

 

Many thanks for your quick reply and help. I thought of using the subset too.

 

I will need a newer version to read your code. ( my one is 2012 ).

 

very appreciated your time.

xg

 

 

 

0 件の賞賛
メッセージ16/24
7,828件の閲覧回数

Here's the LabVIEW 2012 version.

 

(EDIT: rezipped and uploaded new version)

0 件の賞賛
メッセージ17/24
7,818件の閲覧回数

Many thanks

 

 

again, thanks for your help.

 

 

xg  

 

 

 

0 件の賞賛
メッセージ18/24
7,808件の閲覧回数

I am having trouble extracting your zip file.  It seems corrupt.  Could you please re-upload a new version?

 

0 件の賞賛
メッセージ19/24
7,772件の閲覧回数

This thread contains 6 zip files. can you tell which one is giving you problems?

0 件の賞賛
メッセージ20/24
7,763件の閲覧回数