mexopencv
3.4.1
MEX interface for OpenCV library
|
#include <limits.h>
#include <stddef.h>
Go to the source code of this file.
Classes | |
struct | creal32_T |
struct | creal64_T |
struct | creal_T |
Macros | |
#define | tmwtypes_h |
#define | __TMWTYPES__ |
#define | LOGICAL_IS_A_TYPE |
#define | SPARSE_GENERALIZATION |
#define | FLT_MANT_DIG 24 |
#define | DBL_MANT_DIG 53 |
#define | TMW_NAME_LENGTH_MAX 64 |
Maximum length of a MATLAB identifier (function/variable/model) including the null-termination character. More... | |
Determine the number of bits for If one fails to be determined, set the number of bits to -1 | |
#define | TMW_BITS_PER_INT -1 |
#define | TMW_BITS_PER_LONG -1 |
#define | TMW_BITS_PER_SHRT -1 |
#define | TMW_BITS_PER_SCHAR -1 |
#define | TMW_CHAR_SIGNED 1 |
Format string modifiers for using | |
#define | FMT_SIZE_T "l" |
#define | FMT_PTRDIFF_T "l" |
Define Complex Structures | |
#define | CREAL32_T creal32_T |
#define | CREAL64_T creal64_T |
#define | CREAL_T creal_T |
Min and Max:
| |
#define | MAX_int8_T ((int8_T)(127)) |
127 More... | |
#define | MIN_int8_T ((int8_T)(-128)) |
-128 More... | |
#define | MAX_uint8_T ((uint8_T)(255)) |
255 More... | |
#define | MIN_uint8_T ((uint8_T)(0)) |
127 More... | |
#define | MAX_int16_T ((int16_T)(32767)) |
32767 More... | |
#define | MIN_int16_T ((int16_T)(-32768)) |
-32768 More... | |
#define | MAX_uint16_T ((uint16_T)(65535)) |
65535 More... | |
#define | MIN_uint16_T ((uint16_T)(0)) |
127 More... | |
#define | MAX_int32_T ((int32_T)(2147483647)) |
2147483647 More... | |
#define | MIN_int32_T ((int32_T)(-2147483647-1)) |
-2147483648 More... | |
#define | MAX_uint32_T ((uint32_T)(0xFFFFFFFFU)) |
4294967295 More... | |
#define | MIN_uint32_T ((uint32_T)(0)) |
127 More... | |
Conversion between 64-bit integers and | |
#define | uint64_to_double(u) ((double)(u)) |
#define | double_to_uint64(d) |
Typedefs | |
The | |
typedef unsigned char | uchar_T |
typedef unsigned short | ushort_T |
typedef unsigned long | ulong_T |
UTF-16 character type | |
typedef UINT16_T | CHAR16_T |
Fixed width word size data types:
It is common for one or more of the integer types to be the same size. For example, on many embedded processors, both shorts and ints are 16 bits. On processors used for workstations, it is quite common for both int and long to be 32 bits. When there is more than one choice for typdef'ing a portable type like The following is used to emulate smaller integer types when only larger types are available. For example, compilers for TI C3x/C4x DSPs define char and short to be 32 bits, so 8 and 16 bits are not directly available. This target is commonly used with RTW rapid prototyping. Other DSPs define char to be 16 bits, so 8 bits is not directly available. | |
#define | REAL32_T float |
#define | REAL64_T double |
typedef REAL32_T | real32_T |
typedef REAL64_T | real64_T |
General or logical data types where the word size is not guaranteed.
| |
#define | REAL_T real64_T |
#define | TIME_T real_T |
#define | BOOLEAN_T unsigned int |
#define | CHARACTER_T char |
#define | INTEGER_T int |
#define | UINTEGER_T unsigned |
#define | BYTE_T unsigned char |
typedef REAL_T | real_T |
typedef TIME_T | time_T |
typedef BOOLEAN_T | boolean_T |
typedef CHARACTER_T | char_T |
typedef INTEGER_T | int_T |
typedef UINTEGER_T | uint_T |
typedef BYTE_T | byte_T |
#define | _bool_T |
#define | false (0) |
#define | true (1) |
typedef boolean_T | bool |
#define | MWSIZE_MAX 2147483647UL |
unsigned pointer-width integer More... | |
#define | MWINDEX_MAX 2147483647UL |
unsigned pointer-width integer More... | |
#define | MWSINDEX_MAX 2147483647L |
unsigned pointer-width integer More... | |
#define | MWSINDEX_MIN -2147483647L |
unsigned pointer-width integer More... | |
#define | MWSIZE_MIN 0UL |
unsigned pointer-width integer More... | |
#define | MWINDEX_MIN 0UL |
unsigned pointer-width integer More... | |
typedef size_t | mwSize |
unsigned pointer-width integer More... | |
typedef size_t | mwIndex |
unsigned pointer-width integer More... | |
typedef ptrdiff_t | mwSignedIndex |
a signed pointer-width integer More... | |
Data types for use with MATLAB/SIMULINK and the Real-Time Workshop.
When compiling stand-alone model code, data types can be overridden via compiler switches.
Define NO_FLOATS
to eliminate reference to real_T
, etc.
When used with Real Time Workshop generated code, this header file can be used with a variety of compilers.
The compiler could be for an 8 bit embedded processor that only had 8 bits per integer and 16 bits per long. In that example, a 32 bit integer size is not even available. This header file should be robust to that.
For the case of an 8 bit processor, the preprocessor may be limited to 16 bit math like its target. That limitation would mean that 32 bit comparisons can't be done accurately. To increase robustness to this, comparisons are done against smaller values first. An inaccurate 32 bit comparison isn't attempted if the 16 bit comparison has already succeeded.
Limitations on preprocessor math can also be stricter than for the target. There are known cases where a compiler targeting processors with 64 bit longs can't do accurate preprocessor comparisons on more than 32 bits.
Definition in file tmwtypes.h.
#define __TMWTYPES__ |
Definition at line 49 of file tmwtypes.h.
#define _bool_T |
Definition at line 809 of file tmwtypes.h.
#define BOOLEAN_T unsigned int |
Definition at line 537 of file tmwtypes.h.
#define BYTE_T unsigned char |
Definition at line 562 of file tmwtypes.h.
#define CHARACTER_T char |
Definition at line 544 of file tmwtypes.h.
#define CREAL32_T creal32_T |
Definition at line 583 of file tmwtypes.h.
#define CREAL64_T creal64_T |
Definition at line 592 of file tmwtypes.h.
#define CREAL_T creal_T |
Definition at line 601 of file tmwtypes.h.
#define DBL_MANT_DIG 53 |
Definition at line 74 of file tmwtypes.h.
#define double_to_uint64 | ( | d | ) |
Definition at line 794 of file tmwtypes.h.
#define false (0) |
Definition at line 814 of file tmwtypes.h.
#define FLT_MANT_DIG 24 |
Definition at line 73 of file tmwtypes.h.
#define FMT_PTRDIFF_T "l" |
Definition at line 486 of file tmwtypes.h.
#define FMT_SIZE_T "l" |
Definition at line 472 of file tmwtypes.h.
#define INTEGER_T int |
Definition at line 550 of file tmwtypes.h.
#define LOGICAL_IS_A_TYPE |
Definition at line 59 of file tmwtypes.h.
#define MAX_int16_T ((int16_T)(32767)) |
32767
Definition at line 697 of file tmwtypes.h.
#define MAX_int32_T ((int32_T)(2147483647)) |
2147483647
Definition at line 702 of file tmwtypes.h.
#define MAX_int8_T ((int8_T)(127)) |
127
Definition at line 692 of file tmwtypes.h.
#define MAX_uint16_T ((uint16_T)(65535)) |
65535
Definition at line 699 of file tmwtypes.h.
#define MAX_uint32_T ((uint32_T)(0xFFFFFFFFU)) |
4294967295
Definition at line 704 of file tmwtypes.h.
#define MAX_uint8_T ((uint8_T)(255)) |
255
Definition at line 694 of file tmwtypes.h.
#define MIN_int16_T ((int16_T)(-32768)) |
-32768
Definition at line 698 of file tmwtypes.h.
#define MIN_int32_T ((int32_T)(-2147483647-1)) |
-2147483648
Definition at line 703 of file tmwtypes.h.
#define MIN_int8_T ((int8_T)(-128)) |
-128
Definition at line 693 of file tmwtypes.h.
#define MIN_uint16_T ((uint16_T)(0)) |
127
Definition at line 700 of file tmwtypes.h.
#define MIN_uint32_T ((uint32_T)(0)) |
127
Definition at line 705 of file tmwtypes.h.
#define MIN_uint8_T ((uint8_T)(0)) |
127
Definition at line 695 of file tmwtypes.h.
#define MWINDEX_MAX 2147483647UL |
unsigned pointer-width integer
Definition at line 869 of file tmwtypes.h.
#define MWINDEX_MIN 0UL |
unsigned pointer-width integer
Definition at line 874 of file tmwtypes.h.
#define MWSINDEX_MAX 2147483647L |
unsigned pointer-width integer
Definition at line 870 of file tmwtypes.h.
#define MWSINDEX_MIN -2147483647L |
unsigned pointer-width integer
Definition at line 871 of file tmwtypes.h.
#define MWSIZE_MAX 2147483647UL |
unsigned pointer-width integer
Definition at line 868 of file tmwtypes.h.
#define MWSIZE_MIN 0UL |
unsigned pointer-width integer
Definition at line 873 of file tmwtypes.h.
#define REAL32_T float |
Definition at line 342 of file tmwtypes.h.
#define REAL64_T double |
Definition at line 356 of file tmwtypes.h.
#define REAL_T real64_T |
Definition at line 511 of file tmwtypes.h.
#define SPARSE_GENERALIZATION |
Definition at line 60 of file tmwtypes.h.
#define TIME_T real_T |
Definition at line 524 of file tmwtypes.h.
#define TMW_BITS_PER_INT -1 |
Definition at line 120 of file tmwtypes.h.
#define TMW_BITS_PER_LONG -1 |
Definition at line 132 of file tmwtypes.h.
#define TMW_BITS_PER_SCHAR -1 |
Definition at line 156 of file tmwtypes.h.
#define TMW_BITS_PER_SHRT -1 |
Definition at line 144 of file tmwtypes.h.
#define TMW_CHAR_SIGNED 1 |
Definition at line 162 of file tmwtypes.h.
#define TMW_NAME_LENGTH_MAX 64 |
Maximum length of a MATLAB identifier (function/variable/model) including the null-termination character.
Definition at line 841 of file tmwtypes.h.
#define tmwtypes_h |
Definition at line 46 of file tmwtypes.h.
#define true (1) |
Definition at line 817 of file tmwtypes.h.
#define uint64_to_double | ( | u | ) | ((double)(u)) |
Definition at line 790 of file tmwtypes.h.
#define UINTEGER_T unsigned |
Definition at line 556 of file tmwtypes.h.
Definition at line 811 of file tmwtypes.h.
Definition at line 540 of file tmwtypes.h.
Definition at line 564 of file tmwtypes.h.
typedef UINT16_T CHAR16_T |
Definition at line 890 of file tmwtypes.h.
typedef CHARACTER_T char_T |
Definition at line 546 of file tmwtypes.h.
Definition at line 552 of file tmwtypes.h.
typedef size_t mwIndex |
unsigned pointer-width integer
Definition at line 857 of file tmwtypes.h.
typedef ptrdiff_t mwSignedIndex |
a signed pointer-width integer
Definition at line 858 of file tmwtypes.h.
typedef size_t mwSize |
unsigned pointer-width integer
Definition at line 856 of file tmwtypes.h.
Definition at line 349 of file tmwtypes.h.
Definition at line 363 of file tmwtypes.h.
Definition at line 519 of file tmwtypes.h.
Definition at line 528 of file tmwtypes.h.
typedef unsigned char uchar_T |
Definition at line 97 of file tmwtypes.h.
typedef UINTEGER_T uint_T |
Definition at line 558 of file tmwtypes.h.
typedef unsigned long ulong_T |
Definition at line 99 of file tmwtypes.h.
typedef unsigned short ushort_T |
Definition at line 98 of file tmwtypes.h.