{"action":"closed","issue":{"url":"https://api.github.com/repos/DGtal-team/DGtal/issues/1257","repository_url":"https://api.github.com/repos/DGtal-team/DGtal","labels_url":"https://api.github.com/repos/DGtal-team/DGtal/issues/1257/labels{/name}","comments_url":"https://api.github.com/repos/DGtal-team/DGtal/issues/1257/comments","events_url":"https://api.github.com/repos/DGtal-team/DGtal/issues/1257/events","html_url":"https://github.com/DGtal-team/DGtal/issues/1257","id":218706877,"number":1257,"title":"ITKReader not work with functor of different in/out types","user":{"login":"kerautret","id":772865,"avatar_url":"https://avatars0.githubusercontent.com/u/772865?v=4","gravatar_id":"","url":"https://api.github.com/users/kerautret","html_url":"https://github.com/kerautret","followers_url":"https://api.github.com/users/kerautret/followers","following_url":"https://api.github.com/users/kerautret/following{/other_user}","gists_url":"https://api.github.com/users/kerautret/gists{/gist_id}","starred_url":"https://api.github.com/users/kerautret/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kerautret/subscriptions","organizations_url":"https://api.github.com/users/kerautret/orgs","repos_url":"https://api.github.com/users/kerautret/repos","events_url":"https://api.github.com/users/kerautret/events{/privacy}","received_events_url":"https://api.github.com/users/kerautret/received_events","type":"User","site_admin":false},"labels":[{"id":107882,"url":"https://api.github.com/repos/DGtal-team/DGtal/labels/IO-Visualisation","name":"IO-Visualisation","color":"d7e102","default":false}],"state":"closed","locked":false,"assignee":{"login":"kerautret","id":772865,"avatar_url":"https://avatars0.githubusercontent.com/u/772865?v=4","gravatar_id":"","url":"https://api.github.com/users/kerautret","html_url":"https://github.com/kerautret","followers_url":"https://api.github.com/users/kerautret/followers","following_url":"https://api.github.com/users/kerautret/following{/other_user}","gists_url":"https://api.github.com/users/kerautret/gists{/gist_id}","starred_url":"https://api.github.com/users/kerautret/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kerautret/subscriptions","organizations_url":"https://api.github.com/users/kerautret/orgs","repos_url":"https://api.github.com/users/kerautret/repos","events_url":"https://api.github.com/users/kerautret/events{/privacy}","received_events_url":"https://api.github.com/users/kerautret/received_events","type":"User","site_admin":false},"assignees":[{"login":"kerautret","id":772865,"avatar_url":"https://avatars0.githubusercontent.com/u/772865?v=4","gravatar_id":"","url":"https://api.github.com/users/kerautret","html_url":"https://github.com/kerautret","followers_url":"https://api.github.com/users/kerautret/followers","following_url":"https://api.github.com/users/kerautret/following{/other_user}","gists_url":"https://api.github.com/users/kerautret/gists{/gist_id}","starred_url":"https://api.github.com/users/kerautret/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kerautret/subscriptions","organizations_url":"https://api.github.com/users/kerautret/orgs","repos_url":"https://api.github.com/users/kerautret/repos","events_url":"https://api.github.com/users/kerautret/events{/privacy}","received_events_url":"https://api.github.com/users/kerautret/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/DGtal-team/DGtal/milestones/13","html_url":"https://github.com/DGtal-team/DGtal/milestone/13","labels_url":"https://api.github.com/repos/DGtal-team/DGtal/milestones/13/labels","id":2327344,"number":13,"title":"0.9.4","description":"","creator":{"login":"dcoeurjo","id":700165,"avatar_url":"https://avatars3.githubusercontent.com/u/700165?v=4","gravatar_id":"","url":"https://api.github.com/users/dcoeurjo","html_url":"https://github.com/dcoeurjo","followers_url":"https://api.github.com/users/dcoeurjo/followers","following_url":"https://api.github.com/users/dcoeurjo/following{/other_user}","gists_url":"https://api.github.com/users/dcoeurjo/gists{/gist_id}","starred_url":"https://api.github.com/users/dcoeurjo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dcoeurjo/subscriptions","organizations_url":"https://api.github.com/users/dcoeurjo/orgs","repos_url":"https://api.github.com/users/dcoeurjo/repos","events_url":"https://api.github.com/users/dcoeurjo/events{/privacy}","received_events_url":"https://api.github.com/users/dcoeurjo/received_events","type":"User","site_admin":false},"open_issues":17,"closed_issues":9,"state":"open","created_at":"2017-02-16T11:59:59Z","updated_at":"2018-02-03T22:15:55Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2017-04-01T16:31:42Z","updated_at":"2018-02-03T22:15:55Z","closed_at":"2018-02-03T22:15:54Z","author_association":"MEMBER","body":"The ITKReader does not permit to read an input image of Type X and output image of type Y through the use of a functor<X,Y> .\r\nFor instance, to read an 8 bits image from an source image of 16 bits one can try to do:\r\n```typedef DGtal::ImageContainerBySTLVector<DGtal::Z3i::Domain,  unsigned char > Image3D;\r\ntypedef DGtal::functors::Rescaling<DGtal::uint16_t, unsigned char > RescalFCT;\r\nImage3D image =  ITKReader< Image3D, RescalFCT >::importITK( inputFilename,RescalFCT(rescaleInputMin,\r\n                                                                                       rescaleInputMax,\r\n                                                                                        0, 255) );\r\n```\r\nbut that always output image basically casted into 8 bits and the functor can have no effect if the image is already casted."}}
{"actor":{"display_login":"kerautret"}}