SMIL  1.0.4
DMorpho_Bit.h
1 /*
2  * Copyright (c) 2011-2016, Matthieu FAESSEL and ARMINES
3  * All rights reserved.
4  *
5  * Redistribution and use in source and binary forms, with or without
6  * modification, are permitted provided that the following conditions are met:
7  *
8  * * Redistributions of source code must retain the above copyright
9  * notice, this list of conditions and the following disclaimer.
10  * * Redistributions in binary form must reproduce the above copyright
11  * notice, this list of conditions and the following disclaimer in the
12  * documentation and/or other materials provided with the distribution.
13  * * Neither the name of Matthieu FAESSEL, or ARMINES nor the
14  * names of its contributors may be used to endorse or promote products
15  * derived from this software without specific prior written permission.
16  *
17  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS IS'' AND ANY
18  * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
19  * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
20  * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS AND CONTRIBUTORS BE LIABLE FOR ANY
21  * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
22  * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
23  * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
24  * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
26  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27  */
28 
29 
30 #ifndef _D_MORPHO_BIT_H
31 #define _D_MORPHO_BIT_H
32 
33 #include "Morpho/include/private/DMorphoGeodesic.hpp"
34 #include "Morpho/include/private/DMorphoArrow.hpp"
35 #include "Morpho/include/private/DMorphImageOperations.hpp"
36 
37 namespace smil
38 {
39  template <>
40  RES_T build(const Image<Bit> &imIn, const Image<Bit> &imMark, Image<Bit> &imOut, const StrElt &se)
41  {
42  return binBuild(imIn, imMark, imOut, se);
43  }
44 
45  template <class lineFunction_T>
46  class unaryMorphArrowImageFunction<Bit, lineFunction_T>
47  {
48  public:
49  typedef Image<Bit> imageType;
51  inline RES_T operator()(const imageType &imIn, imageType &imOut, const StrElt &se) { return RES_ERR_NOT_IMPLEMENTED; }
52  RES_T _exec_single(const Image<Bit> &imIn, Image<Bit> &imOut, const StrElt &se) { return RES_ERR_NOT_IMPLEMENTED; }
53 
54  };
55 
56 } // namespace smil
57 
58 #endif // _D_IMAGE_HISTOGRAM_BIT_H
59 
Main Image class.
Definition: DImage.hpp:57
Base structuring element.
Definition: DStructuringElement.h:68
Definition: DMorphoArrow.hpp:47
RES_T binBuild(const Image< T > &imIn, const Image< T > &imMask, Image< T > &imOut, const StrElt &se=DEFAULT_SE)
binBuild() - Reconstruction (using hierarchical queues).
Definition: DMorphoGeodesic.hpp:438
RES_T build(const Image< T > &imIn, const Image< T > &imMask, Image< T > &imOut, const StrElt &se=DEFAULT_SE)
build() - Reconstruction by dilation (using hierarchical queues).
Definition: DMorphoGeodesic.hpp:398