cgv
Loading...
Searching...
No Matches
sliced_volume_io.h
1#pragma once
2
3#include "sliced_volume.h"
4
5#include "../lib_begin.h"
6
7namespace cgv {
8 namespace media {
9 namespace volume {
10
11 enum FlipType
12 {
13 FT_NO_FLIP,
14 FT_VERTICAL,
15 FT_HORIZONTAL,
16 FT_VERTICAL_AND_HORIZONTAL
17 };
18
31 extern CGV_API bool read_volume_from_video_with_ffmpeg(volume& V, const std::string& file_name,
32 volume::dimension_type dims, volume::extent_type extent, const cgv::data::component_format& cf,
33 size_t offset = 0, FlipType flip_t = FT_NO_FLIP, void (*on_progress_update)(int,void*) = 0, void* user_data = 0, bool cycle_till_eof = false);
40 extern CGV_API bool read_from_sliced_volume(const std::string& file_name, volume& V);
41
42 extern CGV_API bool write_as_sliced_volume(const std::string& file_name, const std::string& file_name_pattern, const volume& V);
43 }
44 }
45}
46
47#include <cgv/config/lib_end.h>
the component format inherits the information of a packing_info and adds information on the component...
the cgv namespace
Definition print.h:11