Skip to content

Reconstruction#24

Merged
alexlib merged 4 commits into
OpenPIV:masterfrom
gasagna:reconstruction
May 12, 2011
Merged

Reconstruction#24
alexlib merged 4 commits into
OpenPIV:masterfrom
gasagna:reconstruction

Conversation

@gasagna

@gasagna gasagna commented May 12, 2011

Copy link
Copy Markdown
Member

Alex,

I have implemented particle image resampling using cardinal interpolation, in view of future applications.

Can you merge?

Davide

alexlib added a commit that referenced this pull request May 12, 2011
@alexlib
alexlib merged commit 297945e into OpenPIV:master May 12, 2011
@alexlib

alexlib commented May 13, 2011

Copy link
Copy Markdown
Member

python tutorial-part1.py
Traceback (most recent call last):
File "tutorial-part1.py", line 14, in
u, v = openpiv.filters.replace_outliers( u, v, method='localmean', n_iter=10, kernel_size=2)
TypeError: replace_outliers() got an unexpected keyword argument 'n_iter'

Solution:

  1. change n_iter to max_iter
  2. added display_vector_field

python tutorial-part2.py
Traceback (most recent call last):
File "tutorial-part2.py", line 32, in
task.run( func = func, n_cpus=1 )
File "/Library/Frameworks/Python.framework/Versions/7.0/lib/python2.7/site-packages/openpiv/tools.py", line 229, in run
func( image_pair )
File "tutorial-part2.py", line 29, in func
openpiv.tools.save(x, y, u, v, 'exp1_%03d.txt' % counter, fmt='%8.7f', delimiter='\t' )
TypeError: save() takes at least 6 arguments (7 given

Solution is to change several lines, the new file is included in the zip.

@gasagna

gasagna commented May 13, 2011

Copy link
Copy Markdown
Member Author

did you already made these changes?

@alexlib

alexlib commented May 13, 2011

Copy link
Copy Markdown
Member

yes, in the last commit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants