msl 1.3.0
Loading...
Searching...
No Matches
masks.h
Go to the documentation of this file.
1// Copyright 2024-2025 Julien Lamy, ICube, Université de Strasbourg-CNRS.
2// Part of msl, distributed under the terms of the MIT license.
3
4#ifndef _03626eb6_c21f_4e79_a874_fee870d4b7d6
5#define _03626eb6_c21f_4e79_a874_fee870d4b7d6
6
7#include "Mask.h"
8#include "Vector.h"
9
10namespace msl
11{
12
19
28 Mask::Shape const & shape, Vector2d const & ratio,
29 Vector2b const & useLowerQuadrant);
30
39 Mask::Shape const & shape, Vector2d const & ratio,
40 bool useLowerQuadrant=true);
41
48
55Mask crossMask(Mask::Shape const & shape, Mask::Shape const & width);
56
64Mask latticeMask(Mask::Shape const & shape, Mask::Shape const & period);
65
66}
67
68#endif // _03626eb6_c21f_4e79_a874_fee870d4b7d6
A two dimensional mask.
Definition Mask.h:18
Top-level namespace of the msl library.
Definition acceleration.h:17
Mask latticeMask(Mask::Shape const &shape, Mask::Shape const &period)
Create a mask with a lattice pattern.
Mask crossMask(Mask::Shape const &shape, Mask::Shape const &width)
Create a mask with a cross of given width at its center.
Mask ellipticalMask(Mask::Shape const &shape)
Create an ellipse-shaped mask, where the width and height of the ellipse equal the shape of the mask.
Mask cornersMask(Mask::Shape const &shape, Mask::Point size)
Create a mask where every point is disabled except at the corners.
Mask partialMask(Mask::Shape const &shape, Vector2d const &ratio, Vector2b const &useLowerQuadrant)
Create a mask where an interval of each quadrant is enabled.