To help you on your way, a starting code stub is provided for you in
PatternDetection2D.cpp. You will
need to implement the missing code in the main
part of the
code.
To run the code, you need to specify the input image and pattern, and the name of the image to which the output will be written:
% PatternDetection2D --in input.[jpg/bmp] --patern pattern.[jpg/bmp] --out output.[jpg/bmp]
As an example, the images below show an input image and pattern and the output L2-difference image:
![]() |
![]() |
![]() |
Input Image | Input Pattern | Output Difference Image |
To help you on your way, a starting code stub is provided for you in
Symmetry2D.cpp. You will
need to implement the missing code in the main
part of the
code.
To run the code, you need to specify the input image, the type of symmetry, and the name of the image file to which the output will be written:
% Symmetry2D --in input.[jpg/bmp] --out output.[jpg/bmp]
% Symmetry2D --in input.[jpg/bmp] --rotations maxK --out output.[jpg/bmp]
FourierKey1D
only stores half
of the Fourier coefficients. As a result, if you are considering the square-norm of the k-th Fourier
coefficient, keep in mind that if k is non-zero then the FourierKey1D
also implicitly stores
the -k-th Fourier coefficient which is the complex conjugate of the k-th Fourier coefficient.
WriteCircularFunction
and WriteHistogram
,
which write circular arrays and histograms out as an image. The implementation of this code assumes that the
values of the array and the histogram are in the range [0,1]. This means that in implementing the symmetry
detector, you should normalize the the computed symmetry values by the size of the original image.
![]() |
![]() |
![]() |
Input Image | Reflective Symmetries | Rotational Symmetries |
To help you on your way, a starting code stub is provided for you in
WavePropagation2D.cpp. You will need to implement the missing code in
the main
part of the code.
To run the code, you need to specify the input image corresponding to the initial positions, the output file header, the duration of the animation sequences, the number of time-steps, and the file extension to be used for the output images:
% WavePropagation2D --in input.[jpg/bmp] --out header --duration time --steps time-steps --extension [jpg/bmp]
Notes:
% WavePropagation2D --in misha.jpg --out Video\misha --duration 1 --steps 16 --extension jpg
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |