{"action":"created","issue":{"url":"https://api.github.com/repos/IntelRealSense/librealsense/issues/1374","repository_url":"https://api.github.com/repos/IntelRealSense/librealsense","labels_url":"https://api.github.com/repos/IntelRealSense/librealsense/issues/1374/labels{/name}","comments_url":"https://api.github.com/repos/IntelRealSense/librealsense/issues/1374/comments","events_url":"https://api.github.com/repos/IntelRealSense/librealsense/issues/1374/events","html_url":"https://github.com/IntelRealSense/librealsense/issues/1374","id":305710986,"number":1374,"title":"Writing an averaging filter","user":{"login":"jjoachim","id":2595605,"avatar_url":"https://avatars3.githubusercontent.com/u/2595605?v=4","gravatar_id":"","url":"https://api.github.com/users/jjoachim","html_url":"https://github.com/jjoachim","followers_url":"https://api.github.com/users/jjoachim/followers","following_url":"https://api.github.com/users/jjoachim/following{/other_user}","gists_url":"https://api.github.com/users/jjoachim/gists{/gist_id}","starred_url":"https://api.github.com/users/jjoachim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jjoachim/subscriptions","organizations_url":"https://api.github.com/users/jjoachim/orgs","repos_url":"https://api.github.com/users/jjoachim/repos","events_url":"https://api.github.com/users/jjoachim/events{/privacy}","received_events_url":"https://api.github.com/users/jjoachim/received_events","type":"User","site_admin":false},"labels":[{"id":692642573,"url":"https://api.github.com/repos/IntelRealSense/librealsense/labels/D400%20Series","name":"D400 Series","color":"c5def5","default":false},{"id":718299462,"url":"https://api.github.com/repos/IntelRealSense/librealsense/labels/SDK%202.0","name":"SDK 2.0","color":"5319e7","default":false},{"id":288064121,"url":"https://api.github.com/repos/IntelRealSense/librealsense/labels/question","name":"question","color":"bfe5bf","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-03-15T20:38:22Z","updated_at":"2018-03-19T10:17:03Z","closed_at":null,"author_association":"NONE","body":"| Required Info                         |                                                                |\r\n|---------------------------------|------------------------------------------- |\r\n| Camera Model                       | D400 | \r\n| Firmware Version                   | 05.08.15.00 | \r\n| Operating System & Version |   Ubuntu 16  | \r\n| Kernel Version (Linux Only)    |                                           | \r\n| Platform                                 | PC  |\r\n| SDK Version                            |  2.10.2                          | \r\n\r\nI'm having issues with writing a simple frame averaging filter. Normally (for other devices) I cast data pointers into opencv (cv::Mat points directly to data) and then do my averaging there. The issue here is that creating a new synthetic frame requires all of these fancy synthetic devices. Somewhere along the way, I'm getting a bad reference and segfaulting (memory elsewhere is being corrupted, and valgrind has been unhelpful in this case). I would post my code directly, but there's a lot going on and need time to produce a minimal example.\r\n\r\nAre there any examples of something similar that I can look at to get a better bearing on it? I'm wondering if I shouldn't try to do it directly with processing blocks. somehow.\r\n"},"comment":{"url":"https://api.github.com/repos/IntelRealSense/librealsense/issues/comments/374163258","html_url":"https://github.com/IntelRealSense/librealsense/issues/1374#issuecomment-374163258","issue_url":"https://api.github.com/repos/IntelRealSense/librealsense/issues/1374","id":374163258,"user":{"login":"vladsterz","id":17708197,"avatar_url":"https://avatars0.githubusercontent.com/u/17708197?v=4","gravatar_id":"","url":"https://api.github.com/users/vladsterz","html_url":"https://github.com/vladsterz","followers_url":"https://api.github.com/users/vladsterz/followers","following_url":"https://api.github.com/users/vladsterz/following{/other_user}","gists_url":"https://api.github.com/users/vladsterz/gists{/gist_id}","starred_url":"https://api.github.com/users/vladsterz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vladsterz/subscriptions","organizations_url":"https://api.github.com/users/vladsterz/orgs","repos_url":"https://api.github.com/users/vladsterz/repos","events_url":"https://api.github.com/users/vladsterz/events{/privacy}","received_events_url":"https://api.github.com/users/vladsterz/received_events","type":"User","site_admin":false},"created_at":"2018-03-19T10:17:03Z","updated_at":"2018-03-19T10:17:03Z","author_association":"NONE","body":"I guess it is for the depth sensor. You can always work inplace on the data and/or  copy there.\r\nYou can create a rs2::frame and copy the processed data to the data pointer."}}
{"actor":{"display_login":"vladsterz"}}