OpenNN
Open-source neural networks library
Loading...
Searching...
No Matches
image_utilities.h
Go to the documentation of this file.
1// OpenNN: Open Neural Networks Library
2// www.opennn.net
3//
4// O P E N N N I M A G E S C L A S S H E A D E R
5//
6// Artificial Intelligence Techniques SL
7// artelnics@artelnics.com
8
9#pragma once
10
11#include "pch.h"
12
13namespace opennn
14{
15
17Tensor3 load_image(const filesystem::path&);
18
26void load_image(const filesystem::path&,
27 float* dst,
28 Index expected_height,
29 Index expected_width,
30 Index expected_channels,
31 bool divide_by_255 = false);
32
34Tensor3 resize_image(const Tensor3&, Index, Index);
35
38
41
43void rotate_image(const Tensor3&, Tensor3&, float);
44
46void translate_image_x(const Tensor3&, Tensor3&, Index);
47
49void translate_image_y(const Tensor3&, Tensor3&, Index);
50}
51
52// OpenNN: Open Neural Networks Library.
53// Copyright(C) 2005-2026 Artificial Intelligence Techniques, SL.
54// Licensed under the GNU Lesser General Public License v2.1 or later.
Definition adaptive_moment_estimation.h:14
void translate_image_y(const Tensor3 &, Tensor3 &, Index)
Translates the image along the Y axis by the given number of pixels.
void rotate_image(const Tensor3 &, Tensor3 &, float)
Rotates the image by the given angle (radians) into the destination tensor.
void translate_image_x(const Tensor3 &, Tensor3 &, Index)
Translates the image along the X axis by the given number of pixels.
void reflect_image_horizontal(Tensor3 &)
Mirrors the image horizontally (left-right) in place.
Tensor3 load_image(const filesystem::path &)
Loads an image from disk into a rank-3 (height, width, channels) tensor.
Tensor3 resize_image(const Tensor3 &, Index, Index)
Returns a resized copy of an image at the requested height and width.
void reflect_image_vertical(Tensor3 &)
Mirrors the image vertically (top-bottom) in place.
Tensor< float, 3, Layout|AlignedMax > Tensor3
Definition pch.h:190