![](https://csdnimg.cn/release/download_crawler_static/31596675/bga.jpg)
53. /**
54. A function to get a pixel value from a 32-bit floating-point image.
55.
56. @param img an image
57. @param r row
58. @param c column
59. @return Returns the value of the pixel at (\a r, \a c) in \a img
60. */
61. static __inline float pixval32f( IplImage* img, int r, int c )
62. {
63. return ( (float*)(img->imageData + img->widthStep*r) )[c];
64. }
65.
66.
67. /**
68. A function to set a pixel value in a 32-bit floating-point image.
69.
70. @param img an image
71. @param r row
72. @param c column
73. @param val pixel value
74. */
75. static __inline void setpix32f( IplImage* img, int r, int c, float val )
76. {
77. ( (float*)(img->imageData + img->widthStep*r) )[c] = val;
78. }
79.
80.
81. /**
82. A function to get a pixel value from a 64-bit floating-point image.
83.
84. @param img an image
85. @param r row
86. @param c column
87. @return Returns the value of the pixel at (\a r, \a c) in \a img
88. */
89. static __inline double pixval64f( IplImage* img, int r, int c )
90. {
91. return (double)( ( (double*)(img->imageData + img->widthStep*r) )[c] );
92. }
93.
94.
95. /**