OpenStructure
Loading...
Searching...
No Matches
image_list.hh
Go to the documentation of this file.
1//------------------------------------------------------------------------------
2// This file is part of the OpenStructure project <www.openstructure.org>
3//
4// Copyright (C) 2008-2020 by the OpenStructure authors
5// Copyright (C) 2003-2010 by the IPLT authors
6//
7// This library is free software; you can redistribute it and/or modify it under
8// the terms of the GNU Lesser General Public License as published by the Free
9// Software Foundation; either version 3.0 of the License, or (at your option)
10// any later version.
11// This library is distributed in the hope that it will be useful, but WITHOUT
12// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
13// FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
14// details.
15//
16// You should have received a copy of the GNU Lesser General Public License
17// along with this library; if not, write to the Free Software Foundation, Inc.,
18// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19//------------------------------------------------------------------------------
20
21/*
22 Author:Andreas Schenk
23*/
24
25#ifndef IMG_IMAGE_LIST_HH
26#define IMG_IMAGE_LIST_HH
27
28
29#include <ost/img/image.hh>
30
31namespace ost { namespace img {
32
33
34
36
43class DLLEXPORT_OST_IMG_BASE ImageList: public std::vector<ImageHandle> {
44public:
46 ImageList(const ImageList& il);
47 ImageList(ImageList::iterator start,ImageList::iterator end);
48 ImageHandle GetGallery(unsigned int columns=0,bool border=false);
50
51
55
57
60 void Apply(NonModAlgorithm& a) const;
61
63
66 void ApplyIP(NonModAlgorithm& a) const;
67
69
73
75
83
86
88
90
92
94
97
104
124
138private:
139 Size get_max_size_();
140 DataType get_data_type_();
141
142};
143
144}}
145
146#endif
read-only ImageHandle implementation
In-place modification const algorithm.
out-of-place modification const algorithm
Manage shared instances of images.
Manages a collection of images.
Definition image_list.hh:43
void ApplyIP(ModIPAlgorithm &a)
Apply in-place Algorithm in-place to each image in the list.
ImageHandle GetGallery(unsigned int columns=0, bool border=false)
ImageList & operator*=(const Complex &v)
ImageList StateApply(const ImageStateConstModOPVisitorBase &v) const
Applies out-of-place const visitor out-of-place.
ImageList & operator/=(Real v)
ImageList & operator+=(const Complex &v)
ImageList & operator+=(const ConstImageHandle &h)
ImageList StateApply(ImageStateModIPVisitorBase &v) const
Applies in-place visitor out-of-place.
void StateApplyIP(ImageStateModOPVisitorBase &v)
Applies out-of-place visitor in-place.
void StateApplyIP(const ImageStateConstModIPVisitorBase &v)
Applies in-place const visitor in-place.
void ApplyIP(const ConstModOPAlgorithm &a)
ImageList(ImageList::iterator start, ImageList::iterator end)
ImageList StateApply(const ImageStateConstModIPVisitorBase &v) const
Applies in-place const visitor out-of-place.
ImageList & operator-=(const Complex &v)
void StateApplyIP(ImageStateMorphVisitorBase &v)
Applies morph visitor in-place.
ImageList StateApply(ImageStateModOPVisitorBase &v) const
Applies out-of-place visitor out-of-place.
ImageList & operator-=(const ConstImageHandle &h)
void Apply(NonModAlgorithm &a) const
Apply a const algorithm to each image in the list.
ImageList & operator*=(Real v)
ImageList & operator/=(const Complex &v)
void ApplyIP(const ConstModIPAlgorithm &a)
Apply in-place const Algorithm in-place.
ImageList Apply(ModIPAlgorithm &a) const
Apply in-place Algorithm to each image in the list, return new list.
ImageHandle GetImageStack()
ImageList Apply(const ConstModIPAlgorithm &a) const
void ApplyIP(NonModAlgorithm &a) const
Apply a const algorithm to each image in the list.
ImageList & operator/=(const ConstImageHandle &h)
void ApplyIP(ModOPAlgorithm &a)
ImageList & operator-=(Real v)
void StateApplyIP(ImageStateModIPVisitorBase &v)
Applies in-place visitor in-place.
ImageList & operator*=(const ConstImageHandle &h)
ImageList Apply(const ConstModOPAlgorithm &a) const
ImageList StateApply(ImageStateMorphVisitorBase &v) const
Applies morph visitor out-of-place.
ImageList & operator+=(Real v)
ImageList Apply(ModOPAlgorithm &a) const
void StateApplyIP(const ImageStateConstModOPVisitorBase &v)
Applies out-of-place const visitor in-place.
void StateApply(ImageStateNonModVisitorBase &v) const
Apply non-modifying state visitor.
ImageList(const ImageList &il)
In-place modification algorithm.
out-of-place modification algorithm
Non-modifying Algorithm, abstract base class.
class encapsulating 1D to 3D size
Definition size.hh:39
in-place modifying image state const visitor base class
out-of-place modifying image state const visitor base class
in-place modifying image state visitor base class
out-of-place modifying image state visitor base class
morphing image state visitor base class
non-modifying image state visitor base class
#define DLLEXPORT_OST_IMG_BASE
float Real
Definition base.hh:44
std::complex< Real > Complex
Definition base.hh:51
Definition base.dox:1