![]() |
Templates -- Meow
1.1.2
不能,也不應該先編譯成obj-file的templates
|
二維點陣資料 More...
#include "Bitmap.h"
Public Member Functions | |
Bitmap () | |
constructor, 產生一個空的Bitmap More... | |
Bitmap (Bitmap const &b) | |
constructor, 複製一個bitmap More... | |
Bitmap (size_t h, size_t w, Pixel const &p) | |
constructor, 指定寬高, 預設Pixel More... | |
~Bitmap () | |
destructor More... | |
Bitmap & | copyFrom (Bitmap const &b) |
複製 More... | |
Bitmap & | referenceFrom (Bitmap const &b) |
reference More... | |
void | reset (size_t h, size_t w, Pixel const &p) |
全部重設 More... | |
void | clear () |
清除資料, 寬高階規零 More... | |
size_t | height () const |
回傳高度 More... | |
size_t | width () const |
回傳寬度 More... | |
size_t | size () const |
回傳高度乘以寬度 More... | |
size_t | height (size_t h2, Pixel const &p) |
修改高度 More... | |
size_t | width (size_t w2, Pixel const &p) |
修改寬度 More... | |
size_t | size (size_t h2, size_t w2, Pixel const &p) |
修改寬高 More... | |
Pixel | pixel (size_t y, size_t x) const |
取得 (y, x) 的pixel More... | |
Pixel | pixel (size_t y, size_t x, Pixel const &p) |
修改 (y, x) 的pixel More... | |
void | pixels (ssize_t yFirst, ssize_t yLast, ssize_t xFirst, ssize_t xLast, Pixel const &p) |
區塊修改 More... | |
Bitmap | gaussian (double radiusY, double radiusX) const |
回傳高斯模糊 More... | |
Bitmap< Pixel > & | gaussianed (double radiusY, double radiusX) |
把自己高斯模糊 More... | |
Bitmap< Pixel > | gradianceX (double radiusY, double radiusX) const |
回傳對x偏微分 More... | |
Bitmap< Pixel > & | gradiancedX (double radiusY, double radiusX) |
把自己對x偏微分 More... | |
Bitmap< Pixel > | gradianceY (double radiusY, double radiusX) const |
回傳對y偏微分 More... | |
Bitmap< Pixel > & | gradiancedY (double radiusY, double radiusX) |
把自己對y偏微分 More... | |
Bitmap & | operator= (Bitmap const &b) |
same as copyFrom(b) More... | |
Pixel | operator() (size_t y, size_t x) const |
same as pixel(y, x) More... | |
Pixel const & | operator() (size_t y, size_t x, Pixel const &p) const |
same as pixel(y, x, p) More... | |
bool | write (FILE *f, bool bin, unsigned int fg) const |
將資料寫入檔案 More... | |
bool | read (FILE *f, bool bin, unsigned int fg) |
將資料讀入 More... | |
ObjBase * | create () const |
new一個自己 More... | |
ObjBase * | copyFrom (ObjBase const *b) |
複製資料 More... | |
char const * | ctype () const |
回傳class的type More... | |
std::string | type () const |
回傳class的type More... | |
![]() | |
virtual | ~ObjBase () |
Additional Inherited Members | |
![]() | |
static char const * | ctypeBase () |
用C-style string回傳base的type name More... | |
static std::string | typeBase () |
用std::string回傳base的type name More... | |
![]() | |
ObjBase () | |
二維點陣資料
|
inline |
constructor, 產生一個空的Bitmap
|
inline |
constructor, 複製一個bitmap
|
inline |
constructor, 指定寬高, 預設Pixel
[in] | h | 高 |
[in] | w | 寬 |
[in] | p | 預設pixel |
|
inline |
destructor
|
inline |
清除資料, 寬高階規零
|
inline |
複製
|
inlinevirtual |
複製資料
輸入型別是 \c ObjBase \c const* 這裡假設實體其實是 \c Bitmap. 事實上這個method就只是幫忙轉型然後呼叫原本的\c copyFrom
[in] | b | 資料來源 |
Reimplemented from meow::ObjBase.
|
inlinevirtual |
|
inlinevirtual |
|
inline |
回傳高斯模糊
[in] | radiusY | 高斯模糊的Y軸方向的sigma |
[in] | radiusX | 高斯模糊的X軸方向的sigma |
Bitmap
, 是自己被高斯模糊後的結果
|
inline |
把自己高斯模糊
[in] | radiusY | 高斯模糊的Y軸方向的sigma |
[in] | radiusX | 高斯模糊的X軸方向的sigma |
|
inline |
把自己對x偏微分
[in] | radiusY | 高斯模糊的Y軸方向的sigma |
[in] | radiusX | 高斯模糊的X軸方向的sigma |
|
inline |
把自己對y偏微分
[in] | radiusY | 高斯模糊的Y軸方向的sigma |
[in] | radiusX | 高斯模糊的X軸方向的sigma |
|
inline |
回傳對x偏微分
[in] | radiusY | 高斯模糊的Y軸方向的sigma |
[in] | radiusX | 高斯模糊的X軸方向的sigma |
Bitmap
, 是自己被偏微分後的結果
|
inline |
回傳對y偏微分
[in] | radiusY | 高斯模糊的Y軸方向的sigma |
[in] | radiusX | 高斯模糊的X軸方向的sigma |
Bitmap
, 是自己被偏微分後的結果
|
inline |
回傳高度
|
inline |
修改高度
[in] | h2 | 新的高 |
[in] | p | 如果高有變大, 則新長出來的地方用此 pixel填補 |
|
inline |
same as pixel(y, x)
|
inline |
same as pixel(y, x, p)
|
inline |
same as copyFrom(b)
|
inline |
取得 (y, x) 的pixel
[in] | y | |
[in] | x |
|
inline |
修改 (y, x) 的pixel
[in] | y | |
[in] | x | |
[in] | p | 指定的顏色 |
|
inline |
區塊修改
一口氣將一個矩形區塊修改成指定的顏色
[in] | yFirst | y軸方向最小值(含) |
[in] | yLast | y軸方向最大值(含) |
[in] | xFirst | x軸方向最小值(含) |
[in] | xLast | x軸方向最大值(含) |
[in] | p | 指定的顏色 |
|
inlinevirtual |
|
inline |
reference
|
inline |
全部重設
[in] | h | 高 |
[in] | w | 寬 |
[in] | p | 預設pixel |
|
inline |
回傳高度乘以寬度
|
inline |
修改寬高
[in] | h2 | 新的高 |
[in] | w2 | 新的寬 |
[in] | p | 如果寬or高有變大, 則新長出來的地方用此 pixel填補 |
|
inlinevirtual |
|
inline |
回傳寬度
|
inline |
修改寬度
[in] | w2 | 新的寬 |
[in] | p | 如果寬有變大, 則新長出來的地方用此 pixel填補 |
|
inlinevirtual |