{"issue":{"milestone":null,"user":{"id":1270995,"login":"romainreuillon","url":"https://api.github.com/users/romainreuillon","avatar_url":"https://secure.gravatar.com/avatar/acbd2e5ac55e529f9456cacf0610dd4e?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"acbd2e5ac55e529f9456cacf0610dd4e"},"title":"OpenPIV not working for those images","created_at":"2011-12-18T14:41:23Z","updated_at":"2011-12-20T11:49:15Z","labels":[],"state":"closed","id":2593653,"html_url":"https://github.com/alexlib/openpiv-python/issues/26","closed_at":"2011-12-20T00:16:00Z","pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"body":"Hi guys,\r\n\r\nthank you for OpenPIV it is a very useful piece of software!\r\n\r\nI would like to process those images:\r\nhttps://public.iscpif.fr/~reuillon/m1.jpg\r\nhttps://public.iscpif.fr/~reuillon/m2.jpg\r\n\r\nFor that purpose I use this script (from the tutorial 1):\r\nimport openpiv.tools\r\nimport openpiv.process\r\nimport openpiv.scaling\r\n\r\nframe_a  = openpiv.tools.imread( 'm1.jpg' )\r\nframe_b  = openpiv.tools.imread( 'm2.jpg' )\r\n\r\nu, v, sig2noise = openpiv.process.extended_search_area_piv( frame_a, frame_b, window_size=24, overlap=12, dt=0.02, search_area_size=64, sig2noise_method='peak2peak' )\r\n\r\nx, y = openpiv.process.get_coordinates( image_size=frame_a.shape, window_size=24, overlap=12 )\r\n\r\nu, v, mask = openpiv.validation.sig2noise_val( u, v, sig2noise, threshold = 1.3 )\r\n\r\nu, v = openpiv.filters.replace_outliers( u, v, method='localmean', max_iter=10, kernel_size=2)\r\n\r\nx, y, u, v = openpiv.scaling.uniform(x, y, u, v, scaling_factor = 96.52 )\r\n\r\nopenpiv.tools.save(x, y, u, v, mask, 'exp1_001.txt' )\r\n\r\nopenpiv.tools.display_vector_field('exp1_001.txt', scale=100, width=0.0025)\r\n\r\n\r\nHowever I got this error message:\r\nTraceback (most recent call last):\r\n  File \"tutorial-part1.py\", line 8, in <module>\r\n    u, v, sig2noise = openpiv.process.extended_search_area_piv( frame_a, frame_b, window_size=24, overlap=12, dt=0.02, search_area_size=64, sig2noise_method='peak2peak' )\r\n  File \"process.pyx\", line 18, in openpiv.process.extended_search_area_piv (openpiv/src/process.c:1386)\r\nValueError: Buffer has wrong number of dimensions (expected 2, got 3)\r\n\r\nI have also tried with B&W version of the images but I obtain the same error message.\r\n\r\nAny idea what goes wrong?\r\n\r\nCheers,\r\nRomain\r\n","number":26,"url":"https://api.github.com/repos/alexlib/openpiv-python/issues/26","comments":5,"assignee":null},"comment":{"user":{"id":1270995,"login":"romainreuillon","url":"https://api.github.com/users/romainreuillon","avatar_url":"https://secure.gravatar.com/avatar/acbd2e5ac55e529f9456cacf0610dd4e?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"acbd2e5ac55e529f9456cacf0610dd4e"},"created_at":"2011-12-20T11:49:14Z","updated_at":"2011-12-20T11:49:14Z","id":3217846,"body":"I'am a software engineer and I have never worked with image processing \nbefore. I was trying several PIV software to process experimental data \nfor Laurence Girolami (a vulcanologist) in copy. She has hundreds of GB \nof movie to process for a scientific paper. May be you team would be \ninterested in helping her ?\n\ncheers,\nRomain\n\nLe 20/12/2011 12:24, alexlib a écrit :\n> Great. Glad we could help. If you need any further assistance, don't hesitate to ask. we're also open for collaboration calls in any topic related to flow visualization, imaging, velocimetry, etc. E.g. our 3D measurements systems: http://ptv.origo.ethz.ch\n>\n> ---\n> Reply to this email directly or view it on GitHub:\n> https://github.com/alexlib/openpiv-python/issues/26#issuecomment-3217597","url":"https://api.github.com/repos/alexlib/openpiv-python/issues/comments/3217846"},"action":"created"}