The Classification Window is the user's interface to assign lookup values for the color table. More...
#include <classification_window.h>
Public Slots | |
void | on_actionNew_triggered () |
void | on_actionOpen_triggered () |
void | on_actionSave_As_triggered () |
void | on_actionSave_triggered () |
void | on_addRadio_clicked () |
void | on_bigImage_clicked (int x, int y, int button) |
void | on_bigImage_mouseXY (int x, int y) |
void | on_blueButton_clicked () |
void | on_colorCombo_currentIndexChanged (int index) |
void | on_deleteRadio_clicked () |
void | on_greenButton_clicked () |
void | on_orangeButton_clicked () |
void | on_pinkButton_clicked () |
void | on_rawImage_clicked (int x, int y, int button) |
void | on_segImage_clicked (int x, int y, int button) |
void | on_whiteButton_clicked () |
void | on_yellowButton_clicked () |
Public Member Functions | |
void | changeImage (sensor_msgs::ImageConstPtr image) |
Get an updated image from the main window. | |
ClassificationWindow (QWidget *parent=0) | |
void | closeEvent (QCloseEvent *event) |
Close function has been overloaded to terminate the entire program if this window is terminated. | |
void | drawRgbImage (ImageWidget *widget) |
Function to draw an RgbImage onto an ImageWidget screen. | |
void | drawSegImage (ImageWidget *widget) |
Function to draw an RgbImage onto an ImageWidget screen. | |
void | loadDataDirectory (std::string basePath) |
loads the base path of the data directory, allowing classWindow to get the default color table directory | |
bool | openColorTable () |
Opens the color table specified by colorTableFilename. | |
void | openDefaultColorTable () |
Opens up the default color table - helpful during startup. | |
void | redrawImages (bool useTempColorTable=false) |
Redraw all the images in the 3 image widgets. | |
void | segmentImage (bool useTempColorTable) |
Obtains seg image by segmenting the raw image using specified color table. | |
void | setColor (int color) |
Sets currentColor if the user indicates a different color. | |
void | updateStatus () |
Update the status bar based on current action. | |
Private Attributes | |
ClickMode | clickMode |
ColorTable | colorTable |
The actual color table that the user is editing. | |
std::string | colorTableFilename |
Color | currentColor |
std::string | dataDirectory |
Image | imageSelected |
RgbImage | rgbImage |
std::string | segColorNames [NUM_COLORS] |
QRgb | segColors [NUM_COLORS] |
SegImage | segImage |
ColorTable | tempColorTable |
Temp color table for user to visualize the pixels once before saving. | |
Ui::ClassificationWindow | ui |
The Classification Window is the user's interface to assign lookup values for the color table.
Definition at line 43 of file classification_window.h.
color_table::ClassificationWindow::ClassificationWindow | ( | QWidget * | parent = 0 | ) |
Definition at line 27 of file classification_window.cpp.
void color_table::ClassificationWindow::changeImage | ( | sensor_msgs::ImageConstPtr | image | ) |
Get an updated image from the main window.
Definition at line 160 of file classification_window.cpp.
void color_table::ClassificationWindow::closeEvent | ( | QCloseEvent * | event | ) |
Close function has been overloaded to terminate the entire program if this window is terminated.
Definition at line 214 of file classification_window.cpp.
void color_table::ClassificationWindow::drawRgbImage | ( | ImageWidget * | widget | ) |
Function to draw an RgbImage onto an ImageWidget screen.
Definition at line 126 of file classification_window.cpp.
void color_table::ClassificationWindow::drawSegImage | ( | ImageWidget * | widget | ) |
Function to draw an RgbImage onto an ImageWidget screen.
Definition at line 143 of file classification_window.cpp.
void color_table::ClassificationWindow::loadDataDirectory | ( | std::string | basePath | ) |
loads the base path of the data directory, allowing classWindow to get the default color table directory
Definition at line 244 of file classification_window.cpp.
void color_table::ClassificationWindow::on_actionNew_triggered | ( | ) | [slot] |
Definition at line 338 of file classification_window.cpp.
void color_table::ClassificationWindow::on_actionOpen_triggered | ( | ) | [slot] |
Definition at line 344 of file classification_window.cpp.
void color_table::ClassificationWindow::on_actionSave_As_triggered | ( | ) | [slot] |
Definition at line 384 of file classification_window.cpp.
void color_table::ClassificationWindow::on_actionSave_triggered | ( | ) | [slot] |
Definition at line 366 of file classification_window.cpp.
void color_table::ClassificationWindow::on_addRadio_clicked | ( | ) | [slot] |
Definition at line 300 of file classification_window.cpp.
void color_table::ClassificationWindow::on_bigImage_clicked | ( | int | x, |
int | y, | ||
int | button | ||
) | [slot] |
Definition at line 248 of file classification_window.cpp.
void color_table::ClassificationWindow::on_bigImage_mouseXY | ( | int | x, |
int | y | ||
) | [slot] |
Definition at line 286 of file classification_window.cpp.
void color_table::ClassificationWindow::on_blueButton_clicked | ( | ) | [slot] |
Definition at line 318 of file classification_window.cpp.
void color_table::ClassificationWindow::on_colorCombo_currentIndexChanged | ( | int | index | ) | [slot] |
Definition at line 334 of file classification_window.cpp.
void color_table::ClassificationWindow::on_deleteRadio_clicked | ( | ) | [slot] |
Definition at line 305 of file classification_window.cpp.
void color_table::ClassificationWindow::on_greenButton_clicked | ( | ) | [slot] |
Definition at line 322 of file classification_window.cpp.
void color_table::ClassificationWindow::on_orangeButton_clicked | ( | ) | [slot] |
Definition at line 310 of file classification_window.cpp.
void color_table::ClassificationWindow::on_pinkButton_clicked | ( | ) | [slot] |
Definition at line 314 of file classification_window.cpp.
void color_table::ClassificationWindow::on_rawImage_clicked | ( | int | x, |
int | y, | ||
int | button | ||
) | [slot] |
Definition at line 290 of file classification_window.cpp.
void color_table::ClassificationWindow::on_segImage_clicked | ( | int | x, |
int | y, | ||
int | button | ||
) | [slot] |
Definition at line 295 of file classification_window.cpp.
void color_table::ClassificationWindow::on_whiteButton_clicked | ( | ) | [slot] |
Definition at line 326 of file classification_window.cpp.
void color_table::ClassificationWindow::on_yellowButton_clicked | ( | ) | [slot] |
Definition at line 330 of file classification_window.cpp.
Opens the color table specified by colorTableFilename.
Definition at line 221 of file classification_window.cpp.
Opens up the default color table - helpful during startup.
Definition at line 235 of file classification_window.cpp.
void color_table::ClassificationWindow::redrawImages | ( | bool | useTempColorTable = false | ) |
Redraw all the images in the 3 image widgets.
Definition at line 195 of file classification_window.cpp.
void color_table::ClassificationWindow::segmentImage | ( | bool | useTempColorTable | ) |
Obtains seg image by segmenting the raw image using specified color table.
Definition at line 177 of file classification_window.cpp.
void color_table::ClassificationWindow::setColor | ( | int | color | ) |
Sets currentColor if the user indicates a different color.
Definition at line 64 of file classification_window.cpp.
Update the status bar based on current action.
Definition at line 103 of file classification_window.cpp.
Definition at line 146 of file classification_window.h.
The actual color table that the user is editing.
Definition at line 139 of file classification_window.h.
std::string color_table::ClassificationWindow::colorTableFilename [private] |
Definition at line 134 of file classification_window.h.
Definition at line 147 of file classification_window.h.
std::string color_table::ClassificationWindow::dataDirectory [private] |
Definition at line 135 of file classification_window.h.
Definition at line 145 of file classification_window.h.
Definition at line 137 of file classification_window.h.
std::string color_table::ClassificationWindow::segColorNames[NUM_COLORS] [private] |
Definition at line 143 of file classification_window.h.
QRgb color_table::ClassificationWindow::segColors[NUM_COLORS] [private] |
Definition at line 142 of file classification_window.h.
Definition at line 138 of file classification_window.h.
Temp color table for user to visualize the pixels once before saving.
Definition at line 140 of file classification_window.h.
Ui::ClassificationWindow color_table::ClassificationWindow::ui [private] |
Definition at line 133 of file classification_window.h.