MCPcopy Create free account
hub / github.com/creatale/node-dv / icvGetReal

Function icvGetReal

deps/opencv/modules/core/src/array.cpp:1572–1593  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1570
1571
1572static double icvGetReal( const void* data, int type )
1573{
1574 switch( type )
1575 {
1576 case CV_8U:
1577 return *(uchar*)data;
1578 case CV_8S:
1579 return *(char*)data;
1580 case CV_16U:
1581 return *(ushort*)data;
1582 case CV_16S:
1583 return *(short*)data;
1584 case CV_32S:
1585 return *(int*)data;
1586 case CV_32F:
1587 return *(float*)data;
1588 case CV_64F:
1589 return *(double*)data;
1590 }
1591
1592 return 0;
1593}
1594
1595
1596static void icvSetReal( double value, const void* data, int type )

Callers 4

cvGetReal1DFunction · 0.85
cvGetReal2DFunction · 0.85
cvGetReal3DFunction · 0.85
cvGetRealNDFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected