{"action":"opened","issue":{"url":"https://api.github.com/repos/danforthcenter/plantcv/issues/51","repository_url":"https://api.github.com/repos/danforthcenter/plantcv","labels_url":"https://api.github.com/repos/danforthcenter/plantcv/issues/51/labels{/name}","comments_url":"https://api.github.com/repos/danforthcenter/plantcv/issues/51/comments","events_url":"https://api.github.com/repos/danforthcenter/plantcv/issues/51/events","html_url":"https://github.com/danforthcenter/plantcv/issues/51","id":170406336,"number":51,"title":"Passing args.roi mask from parallel to analysis","user":{"login":"jberry47","id":20114985,"avatar_url":"https://avatars.githubusercontent.com/u/20114985?v=3","gravatar_id":"","url":"https://api.github.com/users/jberry47","html_url":"https://github.com/jberry47","followers_url":"https://api.github.com/users/jberry47/followers","following_url":"https://api.github.com/users/jberry47/following{/other_user}","gists_url":"https://api.github.com/users/jberry47/gists{/gist_id}","starred_url":"https://api.github.com/users/jberry47/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jberry47/subscriptions","organizations_url":"https://api.github.com/users/jberry47/orgs","repos_url":"https://api.github.com/users/jberry47/repos","events_url":"https://api.github.com/users/jberry47/events{/privacy}","received_events_url":"https://api.github.com/users/jberry47/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-08-10T12:36:31Z","updated_at":"2016-08-10T12:36:31Z","closed_at":null,"body":"Using plantcv-pipeline.py to specify an image mask does not currently pass the information to the jobs it creates. For reference, the error I received was \r\n```\r\nOpenCV Error: Assertion failed ((scn == 3 || scn == 4) && (depth == CV_8U || depth == CV_32F)) in cvtColor, file /build/opencv-SviWsf/opencv-2.4.9.1+dfsg/modules/imgproc/src/color.cpp, line 3959\r\nTraceback (most recent call last):\r\n File \"/home/jeffrey/Desktop/plantcv_test.py\", line 118, in <module>\r\n   main()\r\n File \"/home/jeffrey/Desktop/plantcv_test.py\", line 51, in main\r\n   device, brass_mask1 = pcv.rgb2gray_hsv(brass_mask, 'v', device, args.debug)\r\n File \"/home/jeffrey/plantcv/lib/plantcv/rgb2gray_hsv.py\", line 14, in rgb2gray_hsv\r\ncv2.error: /build/opencv-SviWsf/opencv-2.4.9.1+dfsg/modules/imgproc/src/color.cpp:3959: error: (-215) (scn == 3 || scn == 4) && (depth == CV_8U || depth == CV_32F) in function cvtColor\r\n```\r\n\r\nIf the mask is specified in the analysis script via ```default=my_mask.png```, the pipeline does work. "}}
{"actor":{"display_login":"jberry47"}}