classimage.html
来自「显著区域检测。求的图像中感兴趣区域的位置」· HTML 代码 · 共 931 行 · 第 1/5 页
HTML
931 行
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"><title>SaliencyToolbox: Image Class Reference</title><link href="doxygen.css" rel="stylesheet" type="text/css"><link href="tabs.css" rel="stylesheet" type="text/css"></head><body><!-- Generated by Doxygen 1.5.2 --><div class="tabs"> <ul> <li><a href="index.html"><span>Main Page</span></a></li> <li class="current"><a href="annotated.html"><span>Data Structures</span></a></li> <li><a href="files.html"><span>Files</span></a></li> </ul></div><div class="tabs"> <ul> <li><a href="annotated.html"><span>Data Structures</span></a></li> <li><a href="functions.html"><span>Data Fields</span></a></li> </ul></div><h1>Image Class Reference</h1><!-- doxytag: class="Image" -->Provides access and processing functions for an image. <a href="#_details">More...</a><p><code>#include <<a class="el" href="Image_8h-source.html">Image.h</a>></code><p><table border="0" cellpadding="0" cellspacing="0"><tr><td></td></tr><tr><td colspan="2"><br><h2>Iterators</h2></td></tr><tr><td colspan="2">There are const and non-const versions of iterators, which are returned by begin()/end() and beginw()/endw(), respectively. The "w" in beginw()/endw() is a mnemonic for "write" or "writeable". <br><br></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">typedef double * </td><td class="memItemRight" valign="bottom"><a class="el" href="classImage.html#01d14564f4b61f97d305e293716933cf">iterator</a></td></tr><tr><td class="mdescLeft"> </td><td class="mdescRight">Read/write iterator. <a href="#01d14564f4b61f97d305e293716933cf"></a><br></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">typedef const double * </td><td class="memItemRight" valign="bottom"><a class="el" href="classImage.html#f9f1ae298f5d8f8b44e4e34a72f61c2f">const_iterator</a></td></tr><tr><td class="mdescLeft"> </td><td class="mdescRight">Read-only iterator. <a href="#f9f1ae298f5d8f8b44e4e34a72f61c2f"></a><br></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classImage.html#f9f1ae298f5d8f8b44e4e34a72f61c2f">const_iterator</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classImage.html#e0666b33daa7ba55e3348d4fff02356f">begin</a> () const</td></tr><tr><td class="mdescLeft"> </td><td class="mdescRight">Returns a read-only iterator to the beginning of the <a class="el" href="classImage.html" title="Provides access and processing functions for an image.">Image</a> data. <a href="#e0666b33daa7ba55e3348d4fff02356f"></a><br></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classImage.html#f9f1ae298f5d8f8b44e4e34a72f61c2f">const_iterator</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classImage.html#d840a50d6451225149a4aed363b0cb91">end</a> () const</td></tr><tr><td class="mdescLeft"> </td><td class="mdescRight">Returns a read-only iterator to the one-past-the-end of the <a class="el" href="classImage.html" title="Provides access and processing functions for an image.">Image</a> data. <a href="#d840a50d6451225149a4aed363b0cb91"></a><br></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classImage.html#01d14564f4b61f97d305e293716933cf">iterator</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classImage.html#9987bf538358f25470af7d628e97694a">beginw</a> ()</td></tr><tr><td class="mdescLeft"> </td><td class="mdescRight">Returns a read/write iterator to the beginning of the <a class="el" href="classImage.html" title="Provides access and processing functions for an image.">Image</a> data. <a href="#9987bf538358f25470af7d628e97694a"></a><br></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classImage.html#01d14564f4b61f97d305e293716933cf">iterator</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classImage.html#6bd3897cec644d5fa71e3c10a0f8b393">endw</a> ()</td></tr><tr><td class="mdescLeft"> </td><td class="mdescRight">Returns a read/write iterator to the one-past-the-end of the <a class="el" href="classImage.html" title="Provides access and processing functions for an image.">Image</a> data. <a href="#6bd3897cec644d5fa71e3c10a0f8b393"></a><br></td></tr><tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr><tr><td colspan="2"><div class="groupHeader">Constructors and initialization routines</div></td></tr><tr><td colspan="2"><div class="groupText">An <a class="el" href="classImage.html" title="Provides access and processing functions for an image.">Image</a> can be constructed from an existing two-dimensional Matlab array, or created empty, or constructed uninitialzed. In this case, the <a class="el" href="classImage.html" title="Provides access and processing functions for an image.">Image</a> must be initialized before any operation with it is attempted. The copy constructor and assigment make true memory copies of the other image <br><br></div></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classImage.html#58edd1c45b4faeb5f789b0d036d02313">Image</a> ()</td></tr><tr><td class="mdescLeft"> </td><td class="mdescRight">Contructor for an uninitialized <a class="el" href="classImage.html" title="Provides access and processing functions for an image.">Image</a>. <a href="#58edd1c45b4faeb5f789b0d036d02313"></a><br></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classImage.html#aca6462d92a17a14c2563fb02d3a7625">Image</a> (const mxArray *arr)</td></tr><tr><td class="mdescLeft"> </td><td class="mdescRight">Constructor from a two-dimensional Matlab array. <a href="#aca6462d92a17a14c2563fb02d3a7625"></a><br></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classImage.html#5a3bc57bd7ba53f9ae55b1963b9ba0a1">Image</a> (const <a class="el" href="classImage.html">Image</a> &other)</td></tr><tr><td class="mdescLeft"> </td><td class="mdescRight">Copy constructor. <a href="#5a3bc57bd7ba53f9ae55b1963b9ba0a1"></a><br></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classImage.html#bf5d14b05a13f32132e32eceea378694">Image</a> (const int w, const int h)</td></tr><tr><td class="mdescLeft"> </td><td class="mdescRight">Constructs a new empty <a class="el" href="classImage.html" title="Provides access and processing functions for an image.">Image</a> with width w and height h. <a href="#bf5d14b05a13f32132e32eceea378694"></a><br></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classImage.html">Image</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classImage.html#8b435b87e91840724e41597a71deecb4">operator=</a> (const <a class="el" href="classImage.html">Image</a> other)</td></tr><tr><td class="mdescLeft"> </td><td class="mdescRight">Copy assigment operator. <a href="#8b435b87e91840724e41597a71deecb4"></a><br></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classImage.html#6da101e823ef20810d8fb08e8a856584">initialize</a> (const mxArray *arr)</td></tr><tr><td class="mdescLeft"> </td><td class="mdescRight">Initializes from a two-dimensional Matlab array. <a href="#6da101e823ef20810d8fb08e8a856584"></a><br></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classImage.html#9f4178e641f723db59e55000249fed46">initialize</a> (const int w, const int h)</td></tr><tr><td class="mdescLeft"> </td><td class="mdescRight">Initializes a new empty image with width w and height h. <a href="#9f4178e641f723db59e55000249fed46"></a><br></td></tr><tr><td colspan="2"><div class="groupHeader">Access functions.</div></td></tr><tr><td colspan="2"><div class="groupText"><br><br></div></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="classImage.html#36bcae4838228d574738249a87dc4464">getWidth</a> () const</td></tr><tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the width of the <a class="el" href="classImage.html" title="Provides access and processing functions for an image.">Image</a>. <a href="#36bcae4838228d574738249a87dc4464"></a><br></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="classImage.html#1cd7587f88b6932b5269051d1ba08ff9">getHeight</a> () const</td></tr><tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the height of the <a class="el" href="classImage.html" title="Provides access and processing functions for an image.">Image</a>. <a href="#1cd7587f88b6932b5269051d1ba08ff9"></a><br></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="classImage.html#9e8efb4cb518bc0ab1253ce8d5ab2783">getSize</a> () const</td></tr><tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the number of pixels in the <a class="el" href="classImage.html" title="Provides access and processing functions for an image.">Image</a>. <a href="#9e8efb4cb518bc0ab1253ce8d5ab2783"></a><br></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classImage.html#b87bf4b103cb5a9cf090f8729f362335">isInitialized</a> () const</td></tr><tr><td class="mdescLeft"> </td><td class="mdescRight">Returns whether the <a class="el" href="classImage.html" title="Provides access and processing functions for an image.">Image</a> is initialized. <a href="#b87bf4b103cb5a9cf090f8729f362335"></a><br></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">mxArray * </td><td class="memItemRight" valign="bottom"><a class="el" href="classImage.html#eef0da5d895782bbb9ce3a17b538cf1b">getArray</a> ()</td></tr><tr><td class="mdescLeft"> </td><td class="mdescRight">Returns a pointer to the underlying Matlab array. <a href="#eef0da5d895782bbb9ce3a17b538cf1b"></a><br></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">const mxArray * </td><td class="memItemRight" valign="bottom"><a class="el" href="classImage.html#35612d5fc9961d1096fcafbccabe5d0e">getConstArray</a> () const</td></tr><tr><td class="mdescLeft"> </td><td class="mdescRight">Returns a constant pointer to the underlying Matlab array. <a href="#35612d5fc9961d1096fcafbccabe5d0e"></a><br></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classImage.html#c48ef479772ddafdfe71ab179ac77019">coordsOK</a> (int x, int y) const</td></tr><tr><td class="mdescLeft"> </td><td class="mdescRight">Check if the coordinates are within the bounds of the <a class="el" href="classImage.html" title="Provides access and processing functions for an image.">Image</a>. <a href="#c48ef479772ddafdfe71ab179ac77019"></a><br></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="classImage.html#dc33e09c67dba8139626448f4dfcfdba">getVal</a> (int index) const</td></tr><tr><td class="mdescLeft"> </td><td class="mdescRight">Returns a pixel value by index. <a href="#dc33e09c67dba8139626448f4dfcfdba"></a><br></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="classImage.html#0356285c876ac4e8473bb7a3a5321cd0">getVal</a> (int x, int y) const</td></tr><tr><td class="mdescLeft"> </td><td class="mdescRight">Returns a pixel value by coordinates. <a href="#0356285c876ac4e8473bb7a3a5321cd0"></a><br></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classImage.html#085cb560bd1ea0e54726baf7f42a9580">setVal</a> (int index, double val)</td></tr><tr><td class="mdescLeft"> </td><td class="mdescRight">Sets a pixel value by index. <a href="#085cb560bd1ea0e54726baf7f42a9580"></a><br></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classImage.html#ed735294341ad4aaebf581edb9ceef98">setVal</a> (int x, int y, double val)</td></tr><tr><td class="mdescLeft"> </td><td class="mdescRight">Sets a pixel value by coordinates. <a href="#ed735294341ad4aaebf581edb9ceef98"></a><br></td></tr><tr><td colspan="2"><div class="groupHeader">Computation functions.</div></td></tr><tr><td colspan="2"><div class="groupText"><br><br></div></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classImage.html#e6b29adaa2f021be2f6945b146fac6fc">clamp</a> (const double bottom, const double top)</td></tr><tr><td class="mdescLeft"> </td><td class="mdescRight">Clamp the image between bottom and top. <a href="#e6b29adaa2f021be2f6945b146fac6fc"></a><br></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classImage.html#746983fe94bf13fe2bf84ba84f5c4dd9">clampBottom</a> (const double bottom)</td></tr><tr><td class="mdescLeft"> </td><td class="mdescRight">Clamp the image only at the bottom. <a href="#746983fe94bf13fe2bf84ba84f5c4dd9"></a><br></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classImage.html#8974e2bbdc9e778403feee80564a07a7">clampTop</a> (const double top)</td></tr><tr><td class="mdescLeft"> </td><td class="mdescRight">Clamp the image only at the top. <a href="#8974e2bbdc9e778403feee80564a07a7"></a><br></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classImage.html#7a7cd0a9881bb7462b124d5d864c712c">getLocalMaxima</a> (const double thresh, int *lm_num, double *lm_sum)</td></tr><tr><td class="mdescLeft"> </td><td class="mdescRight">Count and sum all local maxima above a threshold. <a href="#7a7cd0a9881bb7462b124d5d864c712c"></a><br></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classImage.html">Image</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classImage.html#1744e77216dece6f8150ddba16f57b1f">operator *=</a> (const double factor)</td></tr><tr><td class="mdescLeft"> </td><td class="mdescRight">Multiply all values by a scalar factor. <a href="#1744e77216dece6f8150ddba16f57b1f"></a><br></td></tr><tr><td colspan="2"><br><h2>Protected Attributes</h2></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classImage.html#29d83cb67120560cbc1cd81477486b96">itsInitialized</a></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">mxArray * </td><td class="memItemRight" valign="bottom"><a class="el" href="classImage.html#f42c9d03363de26f252ff8aaba4a0680">itsArray</a></td></tr></table><hr><a name="_details"></a><h2>Detailed Description</h2>Provides access and processing functions for an image. <p>An <a class="el" href="classImage.html" title="Provides access and processing functions for an image.">Image</a> is an object-oriented abstraction of a two-dimensional Matlab array. The pixels are double values. <p><p>Definition at line <a class="el" href="Image_8h-source.html#l00019">19</a> of file <a class="el" href="Image_8h-source.html">Image.h</a>.<hr><h2>Member Typedef Documentation</h2><a class="anchor" name="01d14564f4b61f97d305e293716933cf"></a><!-- doxytag: member="Image::iterator" ref="01d14564f4b61f97d305e293716933cf" args="" --><div class="memitem"><div class="memproto"> <table class="memname"> <tr> <td class="memname">typedef double* <a class="el" href="classImage.html#01d14564f4b61f97d305e293716933cf">Image::iterator</a> </td> </tr> </table></div><div class="memdoc"><p>Read/write iterator. <p><p>Definition at line <a class="el" href="Image_8h-source.html#l00130">130</a> of file <a class="el" href="Image_8h-source.html">Image.h</a>.</div></div><p><a class="anchor" name="f9f1ae298f5d8f8b44e4e34a72f61c2f"></a><!-- doxytag: member="Image::const_iterator" ref="f9f1ae298f5d8f8b44e4e34a72f61c2f" args="" --><div class="memitem"><div class="memproto"> <table class="memname"> <tr> <td class="memname">typedef const double* <a class="el" href="classImage.html#f9f1ae298f5d8f8b44e4e34a72f61c2f">Image::const_iterator</a> </td> </tr> </table></div><div class="memdoc"><p>Read-only iterator. <p><p>Definition at line <a class="el" href="Image_8h-source.html#l00133">133</a> of file <a class="el" href="Image_8h-source.html">Image.h</a>.</div></div><p><hr><h2>Constructor & Destructor Documentation</h2><a class="anchor" name="58edd1c45b4faeb5f789b0d036d02313"></a><!-- doxytag: member="Image::Image" ref="58edd1c45b4faeb5f789b0d036d02313" args="()" --><div class="memitem"><div class="memproto"> <table class="memname"> <tr> <td class="memname">Image::Image </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td width="100%"></td> </tr>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?