Program Listing for File tools.h
↰ Return to documentation for file (c/fmdt/tools.h)
#pragma once
#include <stdio.h>
#include <stdint.h>
#include "fmdt/image/image_struct.h"
typedef int* vec_int_t;
typedef vec_int_t* vec2D_int_t;
void tools_copy_ui8matrix_ui8matrix(const uint8_t** X, const int i0, const int i1, const int j0, const int j1,
uint8_t** Y);
void tools_convert_ui8matrix_ui32matrix(const uint8_t** X, const int nrl, const int nrh, const int ncl, const int nch,
uint32_t** Y);
void tools_linear_2d_nrc_ui8matrix(const uint8_t* X, const int i0, const int i1, const int j0, const int j1,
const uint8_t** Y);
void tools_linear_2d_nrc_ui32matrix(const uint32_t* X, const int i0, const int i1, const int j0, const int j1,
const uint32_t** Y);
void tools_linear_2d_nrc_f32matrix(const float* X, const int i0, const int i1, const int j0, const int j1,
const float** Y);
void tools_linear_2d_nrc_rgb8matrix(const rgb8_t* X, const int i0, const int i1, const int j0, const int j1,
const rgb8_t** Y);
void tools_create_folder(const char* folder_path);
int tools_is_dir(const char *path);
void tools_str_format_placeholder(char* destination, const size_t length, const char* source, const char* placeholder, const char* value);