Protected Member Functions | |
virtual uint32_t | GetInterface (std::list< std::pair< uint32_t, uint32_t > > &mandatory, std::list< std::pair< uint32_t, uint32_t > > &optional) const |
virtual bool | SetImage (uint32_t type, const Image *img) |
Attempt to set an image in a slot. | |
virtual void | SetParameters (const Parameters *) |
Apply parameters to a processor. | |
virtual Image * | Process (void)=0 |
Process images. | |
virtual void | ClearImage (uint32_t type) |
Clear the image in a slot. | |
virtual void | GetParameters (Parameters *) const |
Populate a Parameters object. | |
spectral::image< float > * | MakeField (void) |
void | GetWeight (int32_t width, int32_t height, float x, float y, struct weights &) |
void | BuildStreamline (float x, float y, spectral::image< float > *field, std::list< std::pair< float, float > > &result) |
void | FollowStreamline (std::list< std::pair< float, float > > &line, spectral::Image *src, spectral::Image *result, spectral::image< float > *hits) |
void | DarkStreamline (std::list< std::pair< float, float > > &line, spectral::Image *result, spectral::image< float > *hits) |
bool | GetFieldDirection (spectral::image< float > *field, float *pos, float *dir) |
bool | GetColour (const spectral::Image *, float x, float y, float *colour) |
bool | SplatColour (float x, float y, float *colour, spectral::Image *, spectral::image< float > *, float weight=1) |
Protected Attributes | |
const spectral::Image * | m_picture |
const spectral::Image * | m_field |
float | m_weight |
int | m_size |
bool | m_fine |
bool | m_contour |
int32_t | m_streamline_length |
uint32_t spectral::Field::GetInterface | ( | std::list< std::pair< uint32_t, uint32_t > > & | mandatory, | |
std::list< std::pair< uint32_t, uint32_t > > & | optional | |||
) | const [protected, virtual] |
Describe the inputs and outputs of this processor. Get slots & output type. Returns output colour space. pairs are <slot id, colour space>
Implements spectral::Processor.