Commit 5adf9dac authored by flechsig's avatar flechsig
Browse files

overlay with variable output

parent 0653c37d
// Time-stamp: <05 Mar 19 11:56:17 flechsig>
// Time-stamp: <05 Mar 19 16:39:36 flechsig>
/*
* NDPluginXGI.cpp
*
......@@ -239,10 +239,10 @@ void NDPluginXGI::processCallbacks(NDArray *pArray)
break;
case 6:
#ifdef DEBUG
printf("Algorithm == %d --> call evalfft_ifft_2d()\n", algorithm);
printf("Algorithm == %d --> call evalfft_ifft_2d()\n", algorithm);
#endif
evalfft_ifft_2d(&image, &this->XGIconfig, &output);
break;
evalfft_ifft_2d(&image, &this->XGIconfig, &output);
break;
case 7:
#ifdef DEBUG
printf("Algorithm == %d --> call evaluf()\n", algorithm);
......@@ -296,8 +296,7 @@ void NDPluginXGI::processCallbacks(NDArray *pArray)
if (this->pArrays[i]) this->pArrays[i]->release();
this->pArrays[i] = matrixToNDArray(m);
if (this->pArrays[i] == NULL)
continue;
if (this->pArrays[i] == NULL) continue;
/* Copy time stamp and uniqueId from input array */
this->pArrays[i]->uniqueId = pArray->uniqueId;
this->pArrays[i]->timeStamp = pArray->timeStamp;
......
// File : /afs/psi.ch/user/f/flechsig/git/WFI/src/algorithms.cpp
// Date : <11 Feb 19 10:02:46 flechsig>
// Time-stamp: <20 Feb 19 16:32:43 flechsig>
// Time-stamp: <05 Mar 19 17:06:13 flechsig>
// Author : Flechsig Uwe, uwe.flechsig&#64;psi.&#99;&#104;
#include <iostream>
......@@ -855,16 +855,24 @@ void myoverlay(Matrix *put_in, struct ConfigStruct *cstp, struct Xgi_out *put_ou
int row, col, row0= 80, col0= 10, row1, col1, row2, col2, height= 20, width= 10, val= 255;
FLOATING *data;
int rows, cols;
Matrix *m = NULL;
#define UINT16_OUT
#ifdef UINT16_OUT
val= 0xFFFF; // 65535
#endif
put_in->copy(&put_out->amp); // copy input to output in field amp, address= 1
rows= put_in->height;
cols= put_in->width;
data= put_out->amp.data; // Array address= 1
switch (cstp->outphase)
{
case 0: m= &put_out->amp; break;
case 1: m= &put_out->dphi_wrap; break;
case 2: m= &put_out->dphi_unwrap; break;
}
put_in->copy(m); // copy input to output in field amp, address= 1
data= m->data; // Array address= 1
cout << "put myoverlay to amp @ (row, col, val) " << row0 << ", " << col0 << ", " << val << endl;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment