Developer documentation
Version 3.0.3-105-gd3941f44
helpers.h File Reference
#include "app.h"
#include "image.h"
#include "image_diff.h"
#include "image_helpers.h"
#include "algo/loop.h"
#include "fixel/keys.h"
#include "fixel/types.h"
#include "formats/mrtrix_utils.h"

Go to the source code of this file.

Classes

class  MR::InvalidFixelDirectoryException
 

Namespaces

namespace  MR
 
namespace  MR::Peaks
 
namespace  MR::Fixel
 

Functions

FORCE_INLINE void MR::Peaks::check (const Header &in)
 
FORCE_INLINE bool MR::Fixel::is_index_filename (const std::string &path)
 
template<class HeaderType >
FORCE_INLINE bool MR::Fixel::is_index_image (const HeaderType &in)
 
template<class HeaderType >
FORCE_INLINE void MR::Fixel::check_index_image (const HeaderType &index)
 
template<class HeaderType >
FORCE_INLINE bool MR::Fixel::is_data_file (const HeaderType &in)
 
FORCE_INLINE bool MR::Fixel::is_directions_filename (const std::string &path)
 
template<class HeaderType >
FORCE_INLINE bool MR::Fixel::is_directions_file (const HeaderType &in)
 
template<class HeaderType >
FORCE_INLINE void MR::Fixel::check_data_file (const HeaderType &in)
 
FORCE_INLINE std::string MR::Fixel::get_fixel_directory (const std::string &fixel_file)
 
template<class IndexHeaderType >
FORCE_INLINE index_type MR::Fixel::get_number_of_fixels (IndexHeaderType &index_header)
 
template<class IndexHeaderType , class DataHeaderType >
FORCE_INLINE bool MR::Fixel::fixels_match (const IndexHeaderType &index_header, const DataHeaderType &data_header)
 
FORCE_INLINE void MR::Fixel::check_fixel_size (const Header &index_h, const Header &data_h)
 
FORCE_INLINE void MR::Fixel::check_fixel_directory (const std::string &path, bool create_if_missing=false, bool check_if_empty=false)
 
FORCE_INLINE Header MR::Fixel::find_index_header (const std::string &fixel_directory_path)
 
FORCE_INLINE vector< Header > MR::Fixel::find_data_headers (const std::string &fixel_directory_path, const Header &index_header, const bool include_directions=false)
 
FORCE_INLINE Header MR::Fixel::find_directions_header (const std::string fixel_directory_path)
 
template<class IndexHeaderType >
FORCE_INLINE Header MR::Fixel::data_header_from_index (IndexHeaderType &index)
 Generate a header for a sparse data file (Nx1x1) using an index image as a template. More...
 
template<class IndexHeaderType >
FORCE_INLINE Header MR::Fixel::directions_header_from_index (IndexHeaderType &index)
 Generate a header for a fixel directions data file (Nx3x1) using an index image as a template. More...
 
FORCE_INLINE void MR::Fixel::copy_fixel_file (const std::string &input_file_path, const std::string &output_directory)
 Copy a file from one fixel directory into another. More...
 
FORCE_INLINE void MR::Fixel::copy_index_file (const std::string &input_directory, const std::string &output_directory)
 Copy the index file from one fixel directory into another. More...
 
FORCE_INLINE void MR::Fixel::copy_directions_file (const std::string &input_directory, const std::string &output_directory)
 Copy the directions file from one fixel directory into another. More...
 
FORCE_INLINE void MR::Fixel::copy_index_and_directions_file (const std::string &input_directory, const std::string &output_directory)
 
FORCE_INLINE void MR::Fixel::copy_all_data_files (const std::string &input_directory, const std::string &output_directory)
 Copy all data files in a fixel directory into another directory. Data files do not include the index or directions file. More...
 
template<class ValueType >
Image< ValueType > MR::Fixel::open_fixel_data_file (const std::string &input_file)
 open a data file. checks that a user has not input a fixel directory or index image More...