Xmipp  v3.23.11-Nereus
Classes | Macros
xmipp_image_over.h File Reference
#include <core/xmipp_image.h>
Include dependency graph for xmipp_image_over.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  ImageOver
 

Macros

#define OVER2IMG(IO, v, u, iv, iu)
 
#define OVER2IMG_Z(IO, w, iw)   iw = (int) round((((w)-(IO).overwmin) * (IO).wistep));
 
#define IMG2OVER(IO, iv, iu, v, u)
 
#define OVERPIXEL(IO, y, x)
 

Macro Definition Documentation

◆ IMG2OVER

#define IMG2OVER (   IO,
  iv,
  iu,
  v,
  u 
)
Value:
u = (double) (IO).overumin + (iu) / (double) ((IO).uistep); \
v = (double) (IO).overvmin + (iv) / (double) ((IO).vistep);
doublereal * u

Speed up pixel index macro

This macro is the same as the function img2over but faster due to no function call is performed.

IMG2OVER(IO, iy, ix, y, x);

Definition at line 234 of file xmipp_image_over.h.

◆ OVER2IMG

#define OVER2IMG (   IO,
  v,
  u,
  iv,
  iu 
)
Value:
iu = (int) round((((u)-(IO).overumin) * (IO).uistep)); \
iv = (int) round((((v)-(IO).overvmin) * (IO).vistep));
int round(double x)
Definition: ap.cpp:7245
doublereal * u

Speed up pixel index macro

This macro is the same as the function over2img but faster due to no function call is performed.

OVER2IMG(IO, y, x, iy, ix);

Definition at line 196 of file xmipp_image_over.h.

◆ OVER2IMG_Z

#define OVER2IMG_Z (   IO,
  w,
  iw 
)    iw = (int) round((((w)-(IO).overwmin) * (IO).wistep));

Definition at line 200 of file xmipp_image_over.h.

◆ OVERPIXEL

#define OVERPIXEL (   IO,
  y,
  x 
)
Value:
IMGPIXEL((IO), \
(int) ROUND(((u) * (IO).uistep)), \
(int) ROUND(((v) * (IO).vistep)))
#define ROUND(x)
Definition: xmipp_macros.h:210
doublereal * u
#define IMGPIXEL(I, i, j)

Speed up pixel access macro

This macro is a speeded up version of the pixel access routines for oversampled images.

OVERPIXEL(IO, 1.34, -0.56) = 1;

Definition at line 286 of file xmipp_image_over.h.