/*
* Copyright (C) 2014 Tamás Szeleczki <sztforums@gmail.com>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package astro.detect.bgs;
import astro.util.ImgShow;
import org.opencv.core.Mat;
/**
* @author Tamás Szeleczki <sztforums@gmail.com>
* @see <a href="http://szelinet.hu/thesis/">BSc Thesis in Engineering Information Technology</a>
*/
public abstract class BGS {
protected ImgShow showWindow;
private boolean showFg = false;
public abstract void process( Mat frame );
public abstract boolean isMoving();
public boolean isShowFg() {
return this.showFg;
}
public void setShowFg(boolean isShowFg) {
if( this.showFg != isShowFg ) {
this.showFg = isShowFg;
if( this.showFg || this.showWindow == null )
this.showWindow = new ImgShow();
else
this.showWindow = null;
}
}
}