取消
显示结果 
搜索替代 
您的意思是: 

Intensity graph smoothing

hi, am new to labview. i have a doubt regarding the smoothing of the graph. i fed the values of x and y axis in the intensity graph and made it to  look like foot. after making it looks like the below attached image, i want to smooth the intensity graph .pls help me.

0 项奖励
1 条消息(共 19 条)
12,586 次查看

Post your code (this usually means "Attach a VI" -- if you have multiple VIs, compress the folder that contains them and attach the resulting .ZIP file).

 

Bob Schor

0 项奖励
2 条消息(共 19 条)
12,539 次查看

You can try 3D graph - surface.

 

With the following settings it looks like interpolated intensity graph:

Right click, select 3D plot properties

 

Graph

-> View direction -> towards XY plane

-> View projection -> Orthographic

 

Surface

-> Surface -> Color mode -> Interpolated shading

-> Surface -> Mesh -> Off

0 项奖励
3 条消息(共 19 条)
12,525 次查看

thanks for the reply. i attached the vi. i want to smoothen the graph.

0 项奖励
4 条消息(共 19 条)
12,502 次查看

Please explain what you mean by :smoothing". It could man many things, for example:

 

  • Convolute with a gausian kernel or similar.
  • Use a finer grid and bilinear interpolation.
  • Do antialiasing,
  • etc.

Plese explain what kind of result you expect from the given data.

 

(... and also please use regular array container sizes with scrollbars, not array controls that are dozens of screens high. Also you should not wire N of the FOR loop when autoindexing.)

 

0 项奖励
5 条消息(共 19 条)
12,484 次查看
Thanks for the reply. I want to do antialiasing.
0 项奖励
6 条消息(共 19 条)
12,456 次查看

sir, am attaching the image of intensity graph after feeding the values to x and y. the output has sharp edges, i want to smoothen it.

0 项奖励
7 条消息(共 19 条)
12,432 次查看

Your image has sharp edges because the "pixels" are large squares. What you should do is resample the data at a higher resolution using bilinear ipterpolation.

 

An example is given here.

You also need the subVI from here.

 

 

Here is a coarse 4x4 grid resampled at a 40x40 grid.

 

 

 

While you are at it, please also vote for this idea. Thanks.)

8 条消息(共 19 条)
12,416 次查看

Here's a very simple example. Probably needs a few tweaks.

Modify as needed.

 

 

 

下载全部
0 项奖励
9 条消息(共 19 条)
12,403 次查看

Of course in this particular case it would be easier to use the stock tools from the interpolation palette. Here's that version:

 

 

0 项奖励
10 条消息(共 19 条)
12,341 次查看