Example #1
0
void ColorTableCreator::imageTabSwitched(int) {

    if (imageTabs->currentWidget() == topImageViewer) {
        currentCamera = Camera::TOP;
    } else {
        currentCamera = Camera::BOTTOM;
    }

    loadLatestTable(); // seperate tables for the two cameras!
    this->updateThresholdedImage();
}
Example #2
0
void ColorTableCreator::imageTabSwitched(int)
{
    // Rewire the thresholded display's inPortal to get the right thing
    if (imageTabs->currentWidget() == &topDisplay) {
        currentCamera = Camera::TOP;
        thrDisplay.imageIn.wireTo(&topConverter.thrImage);
    } else {
        currentCamera = Camera::BOTTOM;
        thrDisplay.imageIn.wireTo(&bottomConverter.thrImage);
    }

    loadLatestTable();
    updateThresholdedImage();
}