17#ifndef __surface_freesurfer_h__
18#define __surface_freesurfer_h__
47 for (
size_t i = 0; i != 3; ++i)
48 stream.read (
reinterpret_cast<char*
>(bytes+i), 1);
49 return (int32_t(bytes[0]) << 16) | (int32_t(bytes[1]) << 8) | int32_t(bytes[2]);
55 inline T
get_BE (std::ifstream& stream)
58 stream.read (
reinterpret_cast<char*
>(&temp),
sizeof(T));
59 return Raw::fetch_BE<T> (&temp);
T get_BE(std::ifstream &stream)
constexpr int32_t triangle_file_magic_number
constexpr int32_t quad_file_magic_number
void read_label(const std::string &, VertexList &, Scalar &)
constexpr int32_t new_curv_file_magic_number
void read_annot(const std::string &, label_vector_type &, Connectome::LUT &)
int32_t get_int24_BE(std::ifstream &stream)
Eigen::Array< Connectome::node_t, Eigen::Dynamic, 1 > label_vector_type