34 #include "product/PolarProductOp.h"
61 link(
"horz", this->horz, horz);
62 link(
"vert", this->vert, vert);
72 void filterImage(
const drain::Options &attributes,
const Image &src,
Image &dst){
74 const int width = src.getWidth();
75 const int height = src.getHeight();
82 std::cout<<
"horz"<<horz<<
"vert"<<vert<<
"\n";
89 for (
int j=0; j<height; j++){
90 for (
int i=0; i<width; i++){
124 std::cout<<i<<
" "<<j<<
"\n";
125 for(
int k = 0; k<1000;k++){
126 if( dst.
get<
int>(i,j) == 0){
127 dst.
put(i,j,rand()% 100 + 50);
void put(size_t i, T x)
Sets the intensity in location i to x. See \address.
Definition: ImageFrame.h:192
T get(size_t i) const
Gets the intensity at location i. See address().
Definition: ImageFrame.h:254
Class for multi-channel digital images. Supports dynamic typing with base types (char,...
Definition: Image.h:184
virtual void setGeometry(size_t width, size_t height, size_t imageChannels=1, size_t alphaChannels=0)
Resizes the image, keeps the current type.
Definition: Image.h:95
Base class for flat (2D) products computed in the polar coordinate system. Volume is used as input.
Definition: PolarProductOp.h:61
Definition: DataSelector.cpp:44