comparison Framework/Toolbox/OrthancSlicesLoader.cpp @ 417:aee3d7941c9b

preparing to load images using DICOMweb
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 15 Nov 2018 17:28:15 +0100
parents 5d359b115b29
children f87f28624b96 b70e9be013e4
comparison
equal deleted inserted replaced
415:c0589c3173fd 417:aee3d7941c9b
877 } 877 }
878 else 878 else
879 { 879 {
880 std::string uri = ("/instances/" + slice.GetOrthancInstanceId() + "/frames/" + 880 std::string uri = ("/instances/" + slice.GetOrthancInstanceId() + "/frames/" +
881 boost::lexical_cast<std::string>(slice.GetFrame()) + "/raw.gz"); 881 boost::lexical_cast<std::string>(slice.GetFrame()) + "/raw.gz");
882 orthanc_.GetBinaryAsync(uri, IWebService::Headers(), 882 orthanc_.GetBinaryAsync(uri, IWebService::HttpHeaders(),
883 new Callable<OrthancSlicesLoader, OrthancApiClient::BinaryResponseReadyMessage>(*this, &OrthancSlicesLoader::ParseSliceRawImage), 883 new Callable<OrthancSlicesLoader, OrthancApiClient::BinaryResponseReadyMessage>(*this, &OrthancSlicesLoader::ParseSliceRawImage),
884 new Callable<OrthancSlicesLoader, IWebService::HttpRequestErrorMessage>(*this, &OrthancSlicesLoader::OnSliceImageError), 884 new Callable<OrthancSlicesLoader, IWebService::HttpRequestErrorMessage>(*this, &OrthancSlicesLoader::OnSliceImageError),
885 Operation::DownloadSliceRawImage(index, slice)); 885 Operation::DownloadSliceRawImage(index, slice));
886 } 886 }
887 } 887 }