#include <EdbIP.h>
|
| static const Float_t | eg3x3A [] |
| |
| static const Float_t | eg5x5A [] |
| |
| static const Float_t | eg5x5B [] |
| |
| static const Float_t | eg5x5C [] |
| |
| static const Float_t | eg6x6A [] |
| |
| static const Float_t | egHP1 [] |
| |
| static const Float_t | egHP2 [] |
| |
| static const Float_t | egHP3 [] |
| |
◆ EdbFIRF() [1/3]
◆ EdbFIRF() [2/3]
| EdbFIRF::EdbFIRF |
( |
int |
cols, |
|
|
int |
rows |
|
) |
| |
73 eArr->Adopt(cols*rows,
new float[cols*rows]);
Int_t eColumns
Definition: EdbIP.h:27
Int_t eRows
Definition: EdbIP.h:28
TArrayF * eArr
Definition: EdbIP.h:26
◆ EdbFIRF() [3/3]
| EdbFIRF::EdbFIRF |
( |
const char * |
firf | ) |
|
84 if( !strcmp(firf,
"HP1") ) {
88 }
else if( !strcmp(firf,
"HP2") ) {
92 }
else if( !strcmp(firf,
"HP3") ) {
96 }
else if( !strcmp(firf,
"3x3A") ) {
100 }
else if( !strcmp(firf,
"5x5A") ) {
104 }
else if( !strcmp(firf,
"5x5B") ) {
108 }
else if( !strcmp(firf,
"5x5C") ) {
112 }
else if( !strcmp(firf,
"6x6A") ) {
static const Float_t egHP3[]
Definition: EdbIP.h:33
void Print()
Definition: EdbIP.cxx:143
static const Float_t egHP1[]
Definition: EdbIP.h:31
static const Float_t egHP2[]
Definition: EdbIP.h:32
static const Float_t eg5x5A[]
Definition: EdbIP.h:34
static const Float_t eg5x5C[]
Definition: EdbIP.h:36
static const Float_t eg3x3A[]
Definition: EdbIP.h:30
static const Float_t eg5x5B[]
Definition: EdbIP.h:35
static const Float_t eg6x6A[]
Definition: EdbIP.h:37
◆ ~EdbFIRF()
◆ ApplyTo()
| TH2F * EdbFIRF::ApplyTo |
( |
EdbImage * |
img | ) |
|
170 int x1=img->
Width()-x0-1;
171 int y1=img->
Height()-y0-1;
174 TH2F* buf=
new TH2F(
"img",
"Filtered image",
177 for(
int y=y0;y<y1;y++)
for(
int x=x0;x<x1;x++){
float Cell(int x, int y)
Definition: EdbIP.h:45
Int_t Height() const
Definition: EdbImage.h:60
Int_t Width() const
Definition: EdbImage.h:59
int Pixel(int c, int r) const
Definition: EdbImage.h:50
◆ Cell()
| float EdbFIRF::Cell |
( |
int |
x, |
|
|
int |
y |
|
) |
| |
|
inline |
◆ GetBuffer()
| float* EdbFIRF::GetBuffer |
( |
| ) |
const |
|
inline |
46 {
return eArr->GetArray(); }
◆ Print()
145 printf(
"FIR filter: %s\n",GetName());
147 for(
int i=0;i<
eRows;i++){
149 printf(
"%3.1f\t",
Cell(j,i));
154 printf(
"\nSum = %f\n",sum);
◆ PrintList()
| void EdbFIRF::PrintList |
( |
| ) |
|
|
static |
160 printf(
"known 3x3 filtres: \n\t3x3A \n\tHP1 \n\tHP2 \n\tHP3 \n");
161 printf(
"known 5x5 filtres: \n\t5x5A \n\t5x5B \n\t5x5C \n");
162 printf(
"known 6x6 filtres: \n\t6x6A \n");
◆ Reflect4()
| void EdbFIRF::Reflect4 |
( |
| ) |
|
132 int HY=(int)((
eRows+1)/2);
133 for(
int i=0;i<HY;i++){
134 for(
int j=0;j<HX;j++){
void SetAt(int x, int y, float a)
Definition: EdbIP.h:48
◆ SetArr()
| void EdbFIRF::SetArr |
( |
int |
n, |
|
|
float * |
arr |
|
) |
| |
|
inline |
◆ SetAt()
| void EdbFIRF::SetAt |
( |
int |
x, |
|
|
int |
y, |
|
|
float |
a |
|
) |
| |
|
inline |
void a()
Definition: check_aligned.C:59
◆ eArr
◆ eColumns
◆ eg3x3A
| const Float_t EdbFIRF::eg3x3A[] |
|
staticprivate |
◆ eg5x5A
| const Float_t EdbFIRF::eg5x5A |
|
staticprivate |
Initial value:= {
4, 4, 4, 4, 4,
4, -7, -7, -7, 4,
4, -7, -7, -7, 4,
4, -7, -7, -7, 4,
4, 4, 4, 4, 4 }
◆ eg5x5B
| const Float_t EdbFIRF::eg5x5B |
|
staticprivate |
Initial value:= {
4, 4, 4, 4, 4,
4, -7, -7, -7, 4,
4, -7, -8, -7, 4,
4, -7, -7, -7, 4,
4, 4, 4, 4, 4 }
◆ eg5x5C
| const Float_t EdbFIRF::eg5x5C |
|
staticprivate |
Initial value:= {
1, 1, 1, 1, 1,
1, 1, 1, 1, 1,
1, 1, -24, 1, 1,
1, 1, 1, 1, 1,
1, 1, 1, 1, 1 }
◆ eg6x6A
| const Float_t EdbFIRF::eg6x6A |
|
staticprivate |
Initial value:= {
4, 4, 4, 4, 4, 4,
4, -5, -5, -5, -5, 4,
4, -5, -5, -5, -5, 4,
4, -5, -5, -5, -5, 4,
4, -5, -5, -5, -5, 4,
4, 4, 4, 4, 4, 4 }
◆ egHP1
| const Float_t EdbFIRF::egHP1 |
|
staticprivate |
Initial value:= {
1, 1, 1,
1, -9, 1,
1, 1, 1 }
◆ egHP2
| const Float_t EdbFIRF::egHP2 |
|
staticprivate |
Initial value:= {
0, 1, 0,
1, -5, 1,
0, 1, 0 }
◆ egHP3
| const Float_t EdbFIRF::egHP3 |
|
staticprivate |
Initial value:= {
-1, 2, -1,
2, -5, 2,
-1, 2, -1 }
◆ eRows
The documentation for this class was generated from the following files: