#include <stdio.h>
#include <stdlib.h>
#include <limits.h>
#include <string.h>
#include <pthread.h>
#include <math.h>
#include "hdf5/hdf5.h"
#include "cheetah/cheetahGlobal.h"
#include "cheetah/cheetahEvent.h"
Go to the source code of this file.
Functions | |
void | downsampleImageConservative (float *img, float *imgXxX, long img_nn, long img_nx, long imgXxX_nn, long imgXxX_nx, long downsampling, int debugLevel) |
void | downsampleImageConservative (int16_t *img, int16_t *imgXxX, long img_nn, long img_nx, long imgXxX_nn, long imgXxX_nx, long downsampling, int debugLevel) |
void | downsampleImageNonConservative (float *img, float *imgXxX, long img_nn, long img_nx, long imgXxX_nn, long imgXxX_nx, uint16_t *msk, long downsampling, int debugLevel) |
void | downsampleMaskConservative (uint16_t *msk, uint16_t *mskXxX, long img_nn, long img_nx, long imgXxX_nn, long imgXxX_nx, long downsampling, int debugLevel) |
void | downsampleMaskNonConservative (uint16_t *msk, uint16_t *mskXxX, long img_nn, long img_nx, long imgXxX_nn, long imgXxX_nx, long downsampling, int debugLevel) |
void | downsample (cEventData *eventData, cGlobal *global) |
void | downsamplePowder (cGlobal *global) |
void downsample | ( | cEventData * | eventData, | |
cGlobal * | global | |||
) |
Definition at line 167 of file downsample.cpp.
References cDataVersion::DATA_FORMAT_ASSEMBLED, cDataVersion::DATA_FORMAT_ASSEMBLED_AND_DOWNSAMPLED, cGlobal::debugLevel, cEventData::detector, cGlobal::detector, DETECTOR_LOOP, downsampleImageConservative(), downsampleImageNonConservative(), downsampleMaskConservative(), downsampleMaskNonConservative(), cPixelDetectorCommon::downsampling, cPixelDetectorCommon::downsamplingConservative, cDataVersion::getData(), ex_ndarray_from_image::image, cPixelDetectorCommon::image_nn, cPixelDetectorCommon::image_nx, cPixelDetectorEvent::image_pixelmask, cPixelDetectorCommon::imageXxX_nn, cPixelDetectorCommon::imageXxX_nx, cPixelDetectorEvent::imageXxX_pixelmask, cDataVersion::next(), and cPixelDetectorCommon::saveVersion.
Referenced by worker().
void downsampleImageConservative | ( | int16_t * | img, | |
int16_t * | imgXxX, | |||
long | img_nn, | |||
long | img_nx, | |||
long | imgXxX_nn, | |||
long | imgXxX_nx, | |||
long | downsampling, | |||
int | debugLevel | |||
) |
Definition at line 41 of file downsample.cpp.
References downsampleImageConservative(), and ex_all_dets::i.
void downsampleImageConservative | ( | float * | img, | |
float * | imgXxX, | |||
long | img_nn, | |||
long | img_nx, | |||
long | imgXxX_nn, | |||
long | imgXxX_nx, | |||
long | downsampling, | |||
int | debugLevel | |||
) |
void downsampleImageNonConservative | ( | float * | img, | |
float * | imgXxX, | |||
long | img_nn, | |||
long | img_nx, | |||
long | imgXxX_nn, | |||
long | imgXxX_nx, | |||
uint16_t * | msk, | |||
long | downsampling, | |||
int | debugLevel | |||
) |
Definition at line 66 of file downsample.cpp.
References ERROR, ex_all_dets::i, isNoneOfBitOptionsSet(), PIXEL_IS_BAD, PIXEL_IS_HOT, PIXEL_IS_MISSING, and PIXEL_IS_SATURATED.
Referenced by downsample(), and hitfinder1().
void downsampleMaskConservative | ( | uint16_t * | msk, | |
uint16_t * | mskXxX, | |||
long | img_nn, | |||
long | img_nx, | |||
long | imgXxX_nn, | |||
long | imgXxX_nx, | |||
long | downsampling, | |||
int | debugLevel | |||
) |
Definition at line 100 of file downsample.cpp.
References ERROR.
Referenced by createCXISkeleton(), and downsample().
void downsampleMaskNonConservative | ( | uint16_t * | msk, | |
uint16_t * | mskXxX, | |||
long | img_nn, | |||
long | img_nx, | |||
long | imgXxX_nn, | |||
long | imgXxX_nx, | |||
long | downsampling, | |||
int | debugLevel | |||
) |
Definition at line 124 of file downsample.cpp.
References ERROR, isAnyOfBitOptionsSet(), PIXEL_IS_BAD, PIXEL_IS_HOT, PIXEL_IS_MISSING, and PIXEL_IS_SATURATED.
Referenced by createCXISkeleton(), downsample(), and hitfinder1().
void downsamplePowder | ( | cGlobal * | global | ) |
Definition at line 194 of file downsample.cpp.
References cDataVersion::DATA_FORMAT_ASSEMBLED, cDataVersion::DATA_FORMAT_ASSEMBLED_AND_DOWNSAMPLED, cGlobal::debugLevel, cGlobal::detector, DETECTOR_LOOP, downsampleImageConservative(), cPixelDetectorCommon::downsampling, ex_all_dets::i, ex_ndarray_from_image::image, cPixelDetectorCommon::image_nn, cPixelDetectorCommon::image_nx, cPixelDetectorCommon::imageXxX_nn, cPixelDetectorCommon::imageXxX_nx, isBitOptionSet(), cGlobal::nPowderClasses, cPixelDetectorCommon::powderFormat, and cPixelDetectorCommon::powderVersion.
Referenced by worker().