C++ Bitmap Library
release
|
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <iostream>
#include <string>
#include "bitmap_image.hpp"
Go to the source code of this file.
Macros | |
#define | log2(x) (std::log(1.0 * x) / std::log(2.0)) |
Functions | |
void | test01 () |
void | test02 () |
void | test03 () |
void | test04 () |
void | test05 () |
void | test06 () |
void | test07 () |
void | test08 () |
void | test09 () |
void | test10 () |
void | test11 () |
void | test12 () |
void | test13 () |
void | test14 () |
void | test15 () |
void | test16 () |
void | test17 () |
void | test18 () |
void | test19 () |
void | test20 () |
int | main () |
#define log2 | ( | x | ) | (std::log(1.0 * x) / std::log(2.0)) |
Referenced by test20().
int main | ( | ) |
Definition at line 730 of file bitmap_test.cpp.
References test01(), test02(), test03(), test04(), test05(), test06(), test07(), test08(), test09(), test10(), test11(), test12(), test13(), test14(), test15(), test16(), test17(), test18(), test19(), and test20().
void test01 | ( | ) |
Definition at line 31 of file bitmap_test.cpp.
References bitmap_image::save_image().
Referenced by main().
void test02 | ( | ) |
Definition at line 46 of file bitmap_test.cpp.
References bitmap_image::horizontal_flip(), bitmap_image::save_image(), and bitmap_image::vertical_flip().
Referenced by main().
void test03 | ( | ) |
Definition at line 68 of file bitmap_test.cpp.
References bitmap_image::save_image(), and bitmap_image::subsample().
Referenced by main().
void test04 | ( | ) |
Definition at line 94 of file bitmap_test.cpp.
References bitmap_image::save_image(), and bitmap_image::upsample().
Referenced by main().
void test05 | ( | ) |
Definition at line 120 of file bitmap_test.cpp.
References bitmap_image::save_image(), and bitmap_image::set_all_ith_bits_low().
Referenced by main().
void test06 | ( | ) |
Definition at line 148 of file bitmap_test.cpp.
References bitmap_image::blue_plane, bitmap_image::export_color_plane(), bitmap_image::green_plane, bitmap_image::red_plane, and bitmap_image::save_image().
Referenced by main().
void test07 | ( | ) |
Definition at line 173 of file bitmap_test.cpp.
References bitmap_image::convert_to_grayscale(), and bitmap_image::save_image().
Referenced by main().
void test08 | ( | ) |
Definition at line 189 of file bitmap_test.cpp.
References bitmap_image::height(), bitmap_image::region(), bitmap_image::save_image(), and bitmap_image::width().
Referenced by main().
void test09 | ( | ) |
Definition at line 235 of file bitmap_test.cpp.
References rgb_t::blue, rgb_t::green, jet_colormap, rgb_t::red, bitmap_image::save_image(), and bitmap_image::set_pixel().
Referenced by main().
void test10 | ( | ) |
Definition at line 253 of file bitmap_test.cpp.
References bitmap_image::invert_color_planes(), and bitmap_image::save_image().
Referenced by main().
void test11 | ( | ) |
Definition at line 269 of file bitmap_test.cpp.
References bitmap_image::add_to_color_plane(), bitmap_image::red_plane, and bitmap_image::save_image().
Referenced by main().
void test12 | ( | ) |
Definition at line 288 of file bitmap_test.cpp.
References bitmap_image::export_ycbcr(), bitmap_image::import_ycbcr(), bitmap_image::pixel_count(), and bitmap_image::save_image().
Referenced by main().
void test13 | ( | ) |
Definition at line 319 of file bitmap_test.cpp.
References bitmap_image::export_ycbcr(), bitmap_image::import_ycbcr(), bitmap_image::pixel_count(), and bitmap_image::save_image().
Referenced by main().
void test14 | ( | ) |
Definition at line 353 of file bitmap_test.cpp.
References checkered_pattern(), bitmap_image::clear(), bitmap_image::red_plane, and bitmap_image::save_image().
Referenced by main().
void test15 | ( | ) |
Definition at line 366 of file bitmap_test.cpp.
References bitmap_image::clear(), bitmap_image::height(), jet_colormap, plasma(), bitmap_image::save_image(), and bitmap_image::width().
Referenced by main().
void test16 | ( | ) |
Definition at line 382 of file bitmap_test.cpp.
References bitmap_image::alpha_blend(), bitmap_image::height(), jet_colormap, plasma(), and bitmap_image::width().
Referenced by main().
void test17 | ( | ) |
Definition at line 440 of file bitmap_test.cpp.
References bitmap_image::height(), jet_colormap, plasma(), bitmap_image::save_image(), and bitmap_image::width().
Referenced by main().
void test18 | ( | ) |
Definition at line 471 of file bitmap_test.cpp.
References autumn_colormap, copper_colormap, gray_colormap, bitmap_image::height(), hot_colormap, hsv_colormap, jet_colormap, palette_colormap, image_drawer::pen_color(), prism_colormap, bitmap_image::save_image(), image_drawer::vertical_line_segment(), vga_colormap, bitmap_image::width(), and yarg_colormap.
Referenced by main().
void test19 | ( | ) |
Definition at line 520 of file bitmap_test.cpp.
References cartesian_canvas::circle(), cartesian_canvas::horiztonal_line_segment(), cartesian_canvas::image(), cartesian_canvas::line_segment(), cartesian_canvas::max_x(), cartesian_canvas::max_y(), cartesian_canvas::min_x(), cartesian_canvas::min_y(), palette_colormap, cartesian_canvas::pen_color(), cartesian_canvas::pen_width(), cartesian_canvas::rectangle(), bitmap_image::save_image(), and bitmap_image::set_all_channels().
Referenced by main().
void test20 | ( | ) |
Definition at line 585 of file bitmap_test.cpp.
References rgb_t::blue, bitmap_image::clear(), rgb_t::green, hsv_colormap, jet_colormap, log2, prism_colormap, rgb_t::red, bitmap_image::save_image(), bitmap_image::set_pixel(), and vga_colormap.
Referenced by main().