Developer documentation
Version 3.0.3-105-gd3941f44
MR::Filter::Gradient Class Reference

#include "filter/gradient.h"

Inheritance diagram for MR::Filter::Gradient:
MR::Filter::Base MR::Header

Protected Attributes

Filter::Smooth smoother
bool wrt_scanner
const bool magnitude
vector< default_typestdev
- Protected Attributes inherited from MR::Filter::Base
std::string message
- Protected Attributes inherited from MR::Header
vector< Axis > axes_
transform_type transform_
std::string name_
KeyValues keyval_
const char * format_
std::unique_ptr< ImageIO::Baseio
 additional information relevant for images stored on file More...
DataType datatype_
 the type of the data as stored on file More...
default_type offset_
 the values by which to scale the intensities More...
default_type scale_
std::array< size_t, 3 > realign_perm_
std::array< bool, 3 > realign_flip_

Additional Inherited Members

- Protected Member Functions inherited from MR::Header
void acquire_io (Header &H)
void check (const Header &H) const
void realign_transform ()
 realign transform to match RAS coordinate system as closely as possible More...
void sanitise_voxel_sizes ()
void sanitise_transform ()
void sanitise_strides ()

Detailed Description

Compute the image gradients of a 3D or 4D image.

Typical usage:

auto input = Image<float>::open (argument[0]);
Filter::Gradient gradient_filter (input);
auto output = Image<float>::create (argument[1], gradient_filter);
gradient_filter (input, output);
static Image create(const std::string &image_name, const Header &template_header, bool add_to_command_history=true)
Definition: image.h:192
static Image open(const std::string &image_name, bool read_write_if_existing=false)
Definition: image.h:189
vector< ParsedArgument > argument
the list of arguments parsed from the command-line

Definition at line 46 of file gradient.h.

Member Data Documentation

◆ magnitude

const bool MR::Filter::Gradient::magnitude

Definition at line 155 of file gradient.h.

◆ smoother

Filter::Smooth MR::Filter::Gradient::smoother

Definition at line 153 of file gradient.h.

◆ stdev

vector<default_type> MR::Filter::Gradient::stdev

Definition at line 156 of file gradient.h.

◆ wrt_scanner

bool MR::Filter::Gradient::wrt_scanner

Definition at line 154 of file gradient.h.

The documentation for this class was generated from the following file: