#include <ref_image.H>
Inheritance diagram for RefImage:
Public Member Functions | |
RefImage (CVIEWptr &v, Cstr_ptr &rend_str=RSMOOTH_SHADE, GLenum format=GL_RGBA, GLenum type=GL_UNSIGNED_BYTE) | |
CVIEWptr & | view () const |
int | copy_rgb (Image &img) const |
void | read_FB () |
void | draw_FB () const |
virtual void | update () |
void | fill (uchar r, uchar g, uchar b, uchar a=255U) |
void | fill (uint fill_color) |
void | set (Cpoint2i &pix, uint rgba_color) |
void | set (Cpoint2i &pix, uchar r, uchar g, uchar b, uchar a=255U) |
void | set (int x, int y, uint rgba_color) |
void | set (int x, int y, uchar r, uchar g, uchar b, uchar a=255U) |
void | set (int x, int y, CCOLOR &c, double alpha=1) |
void | blend (int x, int y, CCOLOR &c, double alpha) |
COLOR | color (int x, int y) const |
COLOR | color (CNDCpt &ndc) const |
uint | red (uint id) const |
uint | red (CNDCpt &ndc) const |
uint | red (Cpoint2i &pix) const |
uint | red (int x, int y) const |
uint | green (uint id) const |
uint | green (CNDCpt &ndc) const |
uint | green (Cpoint2i &pix) const |
uint | green (int x, int y) const |
uint | blue (uint id) const |
uint | blue (CNDCpt &ndc) const |
uint | blue (Cpoint2i &pix) const |
uint | blue (int x, int y) const |
uint | alpha (uint id) const |
uint | alpha (CNDCpt &ndc) const |
uint | alpha (Cpoint2i &pix) const |
uint | alpha (int x, int y) const |
uint | grey (uint id) const |
uint | grey (CNDCpt &ndc) const |
uint | grey (Cpoint2i &pix) const |
uint | grey (int x, int y) const |
double | grey_d (uint id) const |
double | grey_d (CNDCpt &ndc) const |
double | grey_d (Cpoint2i &pix) const |
double | grey_d (int x, int y) const |
int | read_file (char *file) |
int | write_file (char *file) |
bool | find_val_in_box (uint v, Cpoint2i ¢er, uint rad=1) const |
bool | find_val_in_box (uint v, CNDCpt ¢er, uint rad=1) const |
bool | find_val_in_box (uint v, uint mask, Cpoint2i ¢er, uint rad=1, int nbr=256) const |
bool | find_val_in_box (uint v, uint mask, CNDCpt ¢er, uint rad=1, int nbr=256) const |
Array2d () | |
Array2d (const Array2d< GLuint > &arr) | |
void | clear (int clear_val=0) |
virtual bool | resize (uint new_w, uint new_h) |
GLuint & | val (uint id) const |
GLuint & | val (CNDCpt &ndc) const |
GLuint & | val (Cpoint2i &pix) const |
GLuint & | val (int x, int y) const |
uint | width () const |
uint | height () const |
uint | max () const |
CNDCvec & | ndc_offset () |
void | set_ndc_offset (CNDCvec &v) |
bool | uint_in_range (uint id) const |
bool | pix_in_range (Cpoint2i &pix) const |
uint | pix_to_uint (Cpoint2i &pix) const |
Point2i | uint_to_pix (uint id) const |
NDCpt | pix_to_ndc (Cpoint2i &pix) const |
Point2i | ndc_to_pix (CNDCpt &ndc) const |
NDCpt | uint_to_ndc (uint id) const |
uint | ndc_to_uint (CNDCpt &ndc) const |
Static Public Member Functions | |
static RefImage * | lookup (CVIEWptr &v=VIEW::peek()) |
Protected Member Functions | |
virtual void | draw_objects (CGELlist &) const |
void | allocate () |
Protected Attributes | |
VIEWptr | _view |
str_ptr | _rend_str |
GLenum | _format |
GLenum | _type |
RefImageClient::ref_img_t | _ref_img_type |
GLuint * | _values |
uint | _width |
uint | _height |
uint | _max |
double | _half_width |
double | _half_height |
double | _half_min_dim |
NDCvec | _ndc_offset |
Static Protected Attributes | |
static HASH | _hash |
Definition at line 155 of file ref_image.H.
|
Definition at line 180 of file ref_image.H. Referenced by lookup(). |
|
Definition at line 141 of file ref_image.H. References CoordSystem2d::_max, and Array2d< T >::_values. |
|
Definition at line 260 of file ref_image.H. References rgba_to_a(), and Array2d< GLuint >::val(). |
|
Definition at line 259 of file ref_image.H. References rgba_to_a(), and Array2d< GLuint >::val(). |
|
Definition at line 258 of file ref_image.H. References rgba_to_a(), and Array2d< GLuint >::val(). |
|
Definition at line 257 of file ref_image.H. References rgba_to_a(), and Array2d< GLuint >::val(). Referenced by debug_vis_ref_img(), and set(). |
|
Definition at line 111 of file ref_image.H. References CoordSystem2d::_height, CoordSystem2d::_max, Array2d< T >::_values, CoordSystem2d::_width, and Array2d< T >::resize(). |
|
Definition at line 110 of file ref_image.H. |
|
Definition at line 226 of file ref_image.H. |
|
Definition at line 255 of file ref_image.H. References rgba_to_b(), and Array2d< GLuint >::val(). |
|
Definition at line 254 of file ref_image.H. References rgba_to_b(), and Array2d< GLuint >::val(). |
|
Definition at line 253 of file ref_image.H. References rgba_to_b(), and Array2d< GLuint >::val(). |
|
Definition at line 252 of file ref_image.H. References rgba_to_b(), and Array2d< GLuint >::val(). Referenced by debug_vis_ref_img(). |
|
Definition at line 120 of file ref_image.H. References CoordSystem2d::_max, and Array2d< T >::_values. |
|
Definition at line 237 of file ref_image.H. References Color::rgba_to_color(), and Array2d< GLuint >::val(). |
|
Definition at line 233 of file ref_image.H. References Color::rgba_to_color(), and Array2d< GLuint >::val(). Referenced by blend(). |
|
Definition at line 158 of file ref_image.C. References CoordSystem2d::_height, CoordSystem2d::_max, CoordSystem2d::_width, Image::data(), err_msg(), Image::resize(), rgba_to_b(), rgba_to_g(), rgba_to_r(), and Array2d< GLuint >::val(). Referenced by AuxRefImage::update(). |
|
Definition at line 44 of file ref_image.C. References _format, CoordSystem2d::_height, _type, Array2d< GLuint >::_values, CoordSystem2d::_width, GL_BLEND, GL_ENABLE_BIT, GL_MODELVIEW, GL_PROJECTION, glDisable(), glDrawPixels(), glLoadIdentity(), glLoadMatrixd(), glMatrixMode(), glPopAttrib(), glPopMatrix(), glPushAttrib(), glPushMatrix(), glRasterPos2i(), and VIEW::peek(). |
|
Reimplemented in AuxRefImage, IDRefImage, and VisRefImage. Definition at line 230 of file ref_image.C. References _ref_img_type, RIC_list< T >::draw_ref_img(), GL_MODELVIEW, GL_PROJECTION, glLoadMatrixd(), glMatrixMode(), mlib::Mat4< M, P, V, L, Q >::matrix(), ARRAY< T >::num(), VIEW::peek(), and view(). Referenced by update(). |
|
Definition at line 133 of file ref_image.C. References CoordSystem2d::_max, and Array2d< GLuint >::val(). |
|
Definition at line 204 of file ref_image.H. References build_rgba(). |
|
Definition at line 291 of file ref_image.H. References find_val_in_box(), and CoordSystem2d::ndc_to_pix(). |
|
Definition at line 271 of file ref_image.C. References CoordSystem2d::_height, CoordSystem2d::_width, int(), CoordSystem2d::max(), min(), and Array2d< GLuint >::val(). |
|
Definition at line 286 of file ref_image.H. References find_val_in_box(), and CoordSystem2d::ndc_to_pix(). |
|
Definition at line 249 of file ref_image.C. References CoordSystem2d::_height, CoordSystem2d::_width, CoordSystem2d::max(), min(), and Array2d< GLuint >::val(). Referenced by find_val_in_box(). |
|
Definition at line 250 of file ref_image.H. References rgba_to_g(), and Array2d< GLuint >::val(). |
|
Definition at line 249 of file ref_image.H. References rgba_to_g(), and Array2d< GLuint >::val(). |
|
Definition at line 248 of file ref_image.H. References rgba_to_g(), and Array2d< GLuint >::val(). |
|
Definition at line 247 of file ref_image.H. References rgba_to_g(), and Array2d< GLuint >::val(). Referenced by debug_vis_ref_img(). |
|
Definition at line 267 of file ref_image.H. References rgba_to_grey(), and Array2d< GLuint >::val(). |
|
Definition at line 266 of file ref_image.H. References rgba_to_grey(), and Array2d< GLuint >::val(). |
|
Definition at line 265 of file ref_image.H. References rgba_to_grey(), and Array2d< GLuint >::val(). |
|
Definition at line 264 of file ref_image.H. References rgba_to_grey(), and Array2d< GLuint >::val(). |
|
Definition at line 274 of file ref_image.H. References rgba_to_grey_d(), and Array2d< GLuint >::val(). |
|
Definition at line 273 of file ref_image.H. References rgba_to_grey_d(), and Array2d< GLuint >::val(). |
|
Definition at line 272 of file ref_image.H. References rgba_to_grey_d(), and Array2d< GLuint >::val(). |
|
Definition at line 271 of file ref_image.H. References rgba_to_grey_d(), and Array2d< GLuint >::val(). |
|
Definition at line 47 of file ref_image.H. References CoordSystem2d::_height. |
|
Reimplemented in AuxRefImage, BufferRefImage, RefImage2, IDRefImage, and VisRefImage. Definition at line 24 of file ref_image.C. References _hash, HASH::add(), err_msg(), HASH::find(), and RefImage(). |
|
Definition at line 48 of file ref_image.H. References CoordSystem2d::_max. Referenced by find_val_in_box(), read_file(), and IDRefImage::search(). |
|
Definition at line 60 of file ref_image.H. References CoordSystem2d::_ndc_offset. |
|
Definition at line 86 of file ref_image.H. References CoordSystem2d::_half_height, CoordSystem2d::_half_min_dim, and CoordSystem2d::_half_width. Referenced by IDRefImage::find_all_neighbors(), IDRefImage::find_neighbor(), find_val_in_box(), IDRefImage::is_patch_sil_edge(), IDRefImage::is_patch_sil_edge_near(), IDRefImage::is_simplex_near(), and IDRefImage::search(). |
|
Definition at line 96 of file ref_image.H. References CoordSystem2d::_half_height, CoordSystem2d::_half_min_dim, CoordSystem2d::_half_width, CoordSystem2d::_height, CoordSystem2d::_width, and int(). Referenced by VisRefImage::debug(), IDRefImage::edge(), IDRefImage::face(), IDRefImage::simplex(), Array2d< GLuint >::val(), and IDRefImage::vert(). |
|
Definition at line 65 of file ref_image.H. References CoordSystem2d::_height, and CoordSystem2d::_width. Referenced by IDRefImage::find_all_neighbors(), IDRefImage::find_neighbor(), IDRefImage::is_patch_sil_edge(), IDRefImage::is_simplex_near(), and IDRefImage::near_pix(). |
|
Definition at line 82 of file ref_image.H. References CoordSystem2d::_half_height, CoordSystem2d::_half_min_dim, and CoordSystem2d::_half_width. |
|
Definition at line 73 of file ref_image.H. References CoordSystem2d::_height, and CoordSystem2d::_width. Referenced by IDRefImage::edge(), IDRefImage::face(), IDRefImage::simplex(), Array2d< GLuint >::val(), and IDRefImage::vert(). |
|
Definition at line 197 of file ref_image.H. References _format, CoordSystem2d::_height, _type, Array2d< GLuint >::_values, CoordSystem2d::_width, and glReadPixels(). |
|
Definition at line 71 of file ref_image.C. References Image::bpp(), build_rgba(), Image::data(), err_msg(), Image::height(), Image::load_file(), CoordSystem2d::max(), Array2d< GLuint >::resize(), Array2d< GLuint >::val(), and Image::width(). |
|
Definition at line 245 of file ref_image.H. References rgba_to_r(), and Array2d< GLuint >::val(). |
|
Definition at line 244 of file ref_image.H. References rgba_to_r(), and Array2d< GLuint >::val(). |
|
Definition at line 243 of file ref_image.H. References rgba_to_r(), and Array2d< GLuint >::val(). |
|
Definition at line 242 of file ref_image.H. References rgba_to_r(), and Array2d< GLuint >::val(). Referenced by debug_vis_ref_img(). |
|
Reimplemented from CoordSystem2d. Reimplemented in BufferRefImage, and VisRefImage. Definition at line 124 of file ref_image.H. References CoordSystem2d::_height, CoordSystem2d::_width, Array2d< T >::allocate(), and CoordSystem2d::resize(). Referenced by read_file(), VisRefImage::resize(), BufferRefImage::resize(), and AuxRefImage::update(). |
|
Definition at line 222 of file ref_image.H. References alpha(), Color::color_to_rgba(), and set(). |
|
Definition at line 217 of file ref_image.H. References build_rgba(), and set(). |
|
Definition at line 214 of file ref_image.H. References set(). |
|
Definition at line 211 of file ref_image.H. References build_rgba(), and set(). |
|
Definition at line 210 of file ref_image.H. References Array2d< GLuint >::val(). |
|
Definition at line 61 of file ref_image.H. References CoordSystem2d::_ndc_offset. |
|
Definition at line 64 of file ref_image.H. References CoordSystem2d::_max. |
|
Definition at line 92 of file ref_image.H. References CoordSystem2d::_half_height, CoordSystem2d::_half_min_dim, CoordSystem2d::_half_width, CoordSystem2d::_ndc_offset, and CoordSystem2d::_width. |
|
Definition at line 77 of file ref_image.H. References CoordSystem2d::_width. |
|
Reimplemented in AuxRefImage, BufferRefImage, IDRefImage, and VisRefImage. Definition at line 194 of file ref_image.C. References _format, CoordSystem2d::_height, _type, Array2d< GLuint >::_values, CoordSystem2d::_width, draw_objects(), GL_AMBIENT_AND_DIFFUSE, GL_BACK, GL_COLOR_BUFFER_BIT, GL_COLOR_MATERIAL, GL_DEPTH_BUFFER_BIT, GL_ENABLE_BIT, GL_FRONT_AND_BACK, GL_SMOOTH, glClear(), glClearColor(), glColorMaterial(), glDrawBuffer(), glEnable(), glPopAttrib(), glPushAttrib(), glReadBuffer(), glReadPixels(), glShadeModel(), glViewport(), VIEW::peek(), set_default_gl_state(), view(), and VIEW_SIZE. |
|
Definition at line 136 of file ref_image.H. References Array2d< T >::val(). |
|
Definition at line 135 of file ref_image.H. References CoordSystem2d::pix_to_uint(), and Array2d< T >::val(). |
|
Definition at line 134 of file ref_image.H. References CoordSystem2d::ndc_to_uint(), and Array2d< T >::val(). |
|
Definition at line 133 of file ref_image.H. References Array2d< T >::_values. Referenced by alpha(), blue(), color(), copy_rgb(), VisRefImage::debug(), fill(), find_val_in_box(), green(), grey(), grey_d(), read_file(), red(), set(), and IDRefImage::simplex(). |
|
Definition at line 190 of file ref_image.H. References _view. Referenced by VisRefImage::draw_objects(), IDRefImage::draw_objects(), draw_objects(), AuxRefImage::draw_objects(), VisRefImage::lookup(), and update(). |
|
Definition at line 46 of file ref_image.H. References CoordSystem2d::_width. |
|
Definition at line 141 of file ref_image.C. References _format, CoordSystem2d::_height, Array2d< GLuint >::_values, CoordSystem2d::_width, err_msg(), GL_RGB, GL_RGBA, and Image::write_png(). |
|
Definition at line 164 of file ref_image.H. Referenced by draw_FB(), read_FB(), IDRefImage::update(), update(), BufferRefImage::update(), AuxRefImage::update(), and write_file(). |
|
Definition at line 32 of file ref_image.H. Referenced by CoordSystem2d::ndc_to_pix(), CoordSystem2d::ndc_to_uint(), CoordSystem2d::pix_to_ndc(), CoordSystem2d::resize(), and CoordSystem2d::uint_to_ndc(). |
|
Definition at line 33 of file ref_image.H. Referenced by CoordSystem2d::ndc_to_pix(), CoordSystem2d::ndc_to_uint(), CoordSystem2d::pix_to_ndc(), CoordSystem2d::resize(), IDRefImage::search(), and CoordSystem2d::uint_to_ndc(). |
|
Definition at line 31 of file ref_image.H. Referenced by CoordSystem2d::ndc_to_pix(), CoordSystem2d::ndc_to_uint(), CoordSystem2d::pix_to_ndc(), CoordSystem2d::resize(), and CoordSystem2d::uint_to_ndc(). |
|
Reimplemented in AuxRefImage, BufferRefImage, RefImage2, and IDRefImage. Definition at line 168 of file ref_image.H. Referenced by lookup(). |
|
|
Definition at line 30 of file ref_image.H. Referenced by Array2d< GLuint >::allocate(), Array2d< GLuint >::Array2d(), Array2d< GLuint >::clear(), copy_rgb(), fill(), CoordSystem2d::max(), CoordSystem2d::resize(), and CoordSystem2d::uint_in_range(). |
|
Definition at line 35 of file ref_image.H. Referenced by CoordSystem2d::ndc_offset(), CoordSystem2d::set_ndc_offset(), and CoordSystem2d::uint_to_ndc(). |
|
Definition at line 166 of file ref_image.H. Referenced by draw_objects(), IDRefImage::IDRefImage(), and RefImage2::RefImage2(). |
|
Definition at line 158 of file ref_image.H. |
|
Definition at line 165 of file ref_image.H. Referenced by draw_FB(), read_FB(), IDRefImage::update(), update(), BufferRefImage::update(), and AuxRefImage::update(). |
|
Definition at line 139 of file ref_image.H. Referenced by draw_FB(), read_FB(), IDRefImage::update(), update(), BufferRefImage::update(), AuxRefImage::update(), and write_file(). |
|
Definition at line 157 of file ref_image.H. Referenced by VisRefImage::need_update(), BufferRefImage::need_update(), BufferRefImage::notify_view(), VisRefImage::observe(), BufferRefImage::observe(), VisRefImage::unobserve(), BufferRefImage::unobserve(), BufferRefImage::update(), AuxRefImage::update(), and view(). |
|