{"action":"created","issue":{"url":"https://api.github.com/repos/jsk-ros-pkg/jsk_recognition/issues/970","labels_url":"https://api.github.com/repos/jsk-ros-pkg/jsk_recognition/issues/970/labels{/name}","comments_url":"https://api.github.com/repos/jsk-ros-pkg/jsk_recognition/issues/970/comments","events_url":"https://api.github.com/repos/jsk-ros-pkg/jsk_recognition/issues/970/events","html_url":"https://github.com/jsk-ros-pkg/jsk_recognition/pull/970","id":88111718,"number":970,"title":"[jsk_perception] fix output image encoding in kmeans and gaussian_blur","user":{"login":"mmurooka","id":6636600,"avatar_url":"https://avatars.githubusercontent.com/u/6636600?v=3","gravatar_id":"","url":"https://api.github.com/users/mmurooka","html_url":"https://github.com/mmurooka","followers_url":"https://api.github.com/users/mmurooka/followers","following_url":"https://api.github.com/users/mmurooka/following{/other_user}","gists_url":"https://api.github.com/users/mmurooka/gists{/gist_id}","starred_url":"https://api.github.com/users/mmurooka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mmurooka/subscriptions","organizations_url":"https://api.github.com/users/mmurooka/orgs","repos_url":"https://api.github.com/users/mmurooka/repos","events_url":"https://api.github.com/users/mmurooka/events{/privacy}","received_events_url":"https://api.github.com/users/mmurooka/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-14T03:29:59Z","updated_at":"2015-06-14T03:39:07Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/jsk-ros-pkg/jsk_recognition/pulls/970","html_url":"https://github.com/jsk-ros-pkg/jsk_recognition/pull/970","diff_url":"https://github.com/jsk-ros-pkg/jsk_recognition/pull/970.diff","patch_url":"https://github.com/jsk-ros-pkg/jsk_recognition/pull/970.patch"},"body":"出力画像のエンコードが，\r\nBGAが正解のところを入力画像のものを使うようになっていたので，\r\n修正しました．\r\n\r\n@wkentaro \r\n\r\n修正前\r\n![screenshot_from_2015-06-14 12 12 45](https://cloud.githubusercontent.com/assets/6636600/8146949/c49ca830-1290-11e5-9110-59541473826f.png)\r\n修正後\r\n![screenshot_from_2015-06-14 12 20 36](https://cloud.githubusercontent.com/assets/6636600/8146950/c6358aea-1290-11e5-9b0e-da8d3d8b6f1a.png)\r\n"},"comment":{"url":"https://api.github.com/repos/jsk-ros-pkg/jsk_recognition/issues/comments/111777815","html_url":"https://github.com/jsk-ros-pkg/jsk_recognition/pull/970#issuecomment-111777815","issue_url":"https://api.github.com/repos/jsk-ros-pkg/jsk_recognition/issues/970","id":111777815,"user":{"login":"wkentaro","id":4310419,"avatar_url":"https://avatars.githubusercontent.com/u/4310419?v=3","gravatar_id":"","url":"https://api.github.com/users/wkentaro","html_url":"https://github.com/wkentaro","followers_url":"https://api.github.com/users/wkentaro/followers","following_url":"https://api.github.com/users/wkentaro/following{/other_user}","gists_url":"https://api.github.com/users/wkentaro/gists{/gist_id}","starred_url":"https://api.github.com/users/wkentaro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wkentaro/subscriptions","organizations_url":"https://api.github.com/users/wkentaro/orgs","repos_url":"https://api.github.com/users/wkentaro/repos","events_url":"https://api.github.com/users/wkentaro/events{/privacy}","received_events_url":"https://api.github.com/users/wkentaro/received_events","type":"User","site_admin":false},"created_at":"2015-06-14T03:39:07Z","updated_at":"2015-06-14T03:39:07Z","body":"RGB8が入力の時におかしくなるということで合っていますか。\r\nそうすると、入力と出力のエンコーディングを揃えるためにpublishする前で\r\n```\r\n    if (image_msg->encoding == sensor_msgs::image_encodings::RGB8) {\r\n      cv::cvtColor(applied_image, applied_image, CV_BGR2RGB);\r\n    }\r\n```\r\nなどとするのがいいかもしれません。"}}