Openholo  v4.2
Open Source Digital Holographic Library
Openholo.cpp File Reference
#include "Openholo.h"
#include <omp.h>
#include <limits.h>
#include "sys.h"
#include "ImgCodecOhc.h"
#include "ImgControl.h"
Include dependency graph for Openholo.cpp:

Go to the source code of this file.

Functions

 if (infile==nullptr)
 
 if (hf.signature[0] !='B'||hf.signature[1] !='M') return false
 
 fclose (infile)
 

Variables

FILE * infile = fopen(fname, "rb")
 
fileheader hf
 
bitmapinfoheader hInfo
 
size_t nRead = fread(&hf, sizeof(fileheader), 1, infile)
 
 w = hInfo.width
 
 h = hInfo.height
 
 bytesperpixel = hInfo.bitsperpixel >> 3
 
return true
 

Function Documentation

◆ fclose()

fclose ( infile  )

◆ if() [1/2]

if ( infile  = = nullptr)

Definition at line 419 of file Openholo.cpp.

◆ if() [2/2]

if ( hf.signature !  [0] = 'B'||hf.signature[1] !='M')

Variable Documentation

◆ bytesperpixel

bytesperpixel = hInfo.bitsperpixel >> 3

Definition at line 431 of file Openholo.cpp.

◆ h

h = hInfo.height

Definition at line 430 of file Openholo.cpp.

◆ hf

Definition at line 422 of file Openholo.cpp.

◆ hInfo

Definition at line 423 of file Openholo.cpp.

◆ infile

FILE* infile = fopen(fname, "rb")

Definition at line 417 of file Openholo.cpp.

◆ nRead

nRead = fread(&hf, sizeof(fileheader), 1, infile)

Definition at line 424 of file Openholo.cpp.

◆ true

return true

Definition at line 434 of file Openholo.cpp.

◆ w

w = hInfo.width

Definition at line 429 of file Openholo.cpp.