#include "all_imageio.h"
#include "portable_fileio.h"
#include "emcache.h"
#include "emdata.h"
#include "ctf.h"
#include "emassert.h"
#include "exception.h"
#include <boost/shared_ptr.hpp>
#include <sys/param.h>
Include dependency graph for emutil.cpp:
Go to the source code of this file.
Functions | |
static int | imgscore_cmp (const void *imgscore1, const void *imgscore2) |
Variables | |
static const int | ATTR_NAME_LEN = 128 |
static int imgscore_cmp | ( | const void * | imgscore1, | |
const void * | imgscore2 | |||
) | [static] |
Definition at line 1153 of file emutil.cpp.
References Assert.
Referenced by EMAN::ImageSort::sort().
01154 { 01155 Assert(imgscore1 != 0); 01156 Assert(imgscore2 != 0); 01157 01158 float c = ((ImageScore *)imgscore1)->score - ((ImageScore *)imgscore2)->score; 01159 if (c<0) { 01160 return 1; 01161 } 01162 else if (c>0) { 01163 return -1; 01164 } 01165 return 0; 01166 }
const int ATTR_NAME_LEN = 128 [static] |
Definition at line 60 of file emutil.cpp.