Mercurial > hg > orthanc-stone
comparison Framework/Volumes/ImageBuffer3D.h @ 318:3a4ca166fafa am-2
ImageAccessor refactoring + implemented Image Cache in SmartLoader
author | am@osimis.io |
---|---|
date | Mon, 08 Oct 2018 17:10:08 +0200 |
parents | 5412adf19980 |
children | 557c8ff1db5c |
comparison
equal
deleted
inserted
replaced
317:b66d13708f40 | 318:3a4ca166fafa |
---|---|
11 * | 11 * |
12 * This program is distributed in the hope that it will be useful, but | 12 * This program is distributed in the hope that it will be useful, but |
13 * WITHOUT ANY WARRANTY; without even the implied warranty of | 13 * WITHOUT ANY WARRANTY; without even the implied warranty of |
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
15 * Affero General Public License for more details. | 15 * Affero General Public License for more details. |
16 * | 16 * |
17 * You should have received a copy of the GNU Affero General Public License | 17 * You should have received a copy of the GNU Affero General Public License |
18 * along with this program. If not, see <http://www.gnu.org/licenses/>. | 18 * along with this program. If not, see <http://www.gnu.org/licenses/>. |
19 **/ | 19 **/ |
20 | 20 |
21 | 21 |
46 float minValue_; | 46 float minValue_; |
47 float maxValue_; | 47 float maxValue_; |
48 | 48 |
49 void ExtendImageRange(const Orthanc::ImageAccessor& slice); | 49 void ExtendImageRange(const Orthanc::ImageAccessor& slice); |
50 | 50 |
51 Orthanc::ImageAccessor GetAxialSliceAccessor(unsigned int slice, | 51 void GetAxialSliceAccessor(Orthanc::ImageAccessor& target, |
52 bool readOnly) const; | 52 unsigned int slice, |
53 | 53 bool readOnly) const; |
54 Orthanc::ImageAccessor GetCoronalSliceAccessor(unsigned int slice, | 54 |
55 bool readOnly) const; | 55 void GetCoronalSliceAccessor(Orthanc::ImageAccessor& target, |
56 unsigned int slice, | |
57 bool readOnly) const; | |
56 | 58 |
57 Orthanc::Image* ExtractSagittalSlice(unsigned int slice) const; | 59 Orthanc::Image* ExtractSagittalSlice(unsigned int slice) const; |
58 | 60 |
59 template <typename T> | 61 template <typename T> |
60 T GetPixelUnchecked(unsigned int x, | 62 T GetPixelUnchecked(unsigned int x, |