Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
ChessTrack
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Aylen Ricca
ChessTrack
Commits
462f2df5
Commit
462f2df5
authored
10 years ago
by
Aylen Ricca
Browse files
Options
Downloads
Patches
Plain Diff
rm unused class
parent
a6f924d1
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ProyectoAndroid/ChessTrack/src/uy/edu/fing/chesstrack/modulovision/imgproc/SustraccionDeFondo.java
+0
-44
0 additions, 44 deletions
...g/chesstrack/modulovision/imgproc/SustraccionDeFondo.java
with
0 additions
and
44 deletions
ProyectoAndroid/ChessTrack/src/uy/edu/fing/chesstrack/modulovision/imgproc/SustraccionDeFondo.java
deleted
100644 → 0
+
0
−
44
View file @
a6f924d1
package
uy.edu.fing.chesstrack.modulovision.imgproc
;
import
org.opencv.core.Mat
;
import
org.opencv.imgproc.Imgproc
;
import
org.opencv.video.BackgroundSubtractorMOG2
;
public
class
SustraccionDeFondo
implements
ImgProcInterface
{
private
Mat
fMaskMOG
=
null
;
private
final
BackgroundSubtractorMOG2
pMOG
;
private
static
final
String
TAG
=
"CHESSTRACK::SustraccionDeFondo"
;
public
SustraccionDeFondo
(){
pMOG
=
new
BackgroundSubtractorMOG2
();
//fMaskMOG = new Mat();
}
@Override
public
Mat
procesarImagen
(
Mat
inputFrame
)
{
Imgproc
.
cvtColor
(
inputFrame
,
inputFrame
,
Imgproc
.
COLOR_RGBA2RGB
);
fMaskMOG
=
new
Mat
(
inputFrame
.
size
(),
inputFrame
.
channels
());
pMOG
.
apply
(
inputFrame
,
fMaskMOG
);
//Mat frame = inputFrame.submat(Calibracion.getInstance().getRectPOI());
//fMaskMOG = new Mat(frame.size(),frame.channels());
//pMOG.apply(frame, fMaskMOG);
//Imgproc.resize(inputFrame, frame, frame.size());
//Log.i(TAG, "Size frame= " + frame.size());
//Log.i(TAG, "Size fMaskMOG= " + fMaskMOG.size());
//Rect aux = Calibracion.getInstance().getRectPOI();
//frame.copyTo(frame,fMaskMOG);
//Mat subMat = inputFrame.submat(0,frame.rows(),0,frame.cols());
//frame.copyTo(subMat);
//Mat frame = new Mat();
//inputFrame.copyTo(frame,fMaskMOG);
return
fMaskMOG
;
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment