Exemple #1
0
        public IEnumerable <TrackData> GetBySamples(int numberOfSamples, TrackDBFilter filterOptions)
        {
            switch (filterOptions)
            {
            case TrackDBFilter.All:
                return(db.ToList());

            case TrackDBFilter.EyeBothFound:

                IEnumerable <TrackData> qBothEyesFound =
                    from td in db
                    where td.LeftROI.Width != 0 && td.RightROI.Width != 0
                    select td;

                return(qBothEyesFound);

            case TrackDBFilter.EyeLeftFound:

                IEnumerable <TrackData> qLeftEyeFound =
                    from td in db
                    where td.LeftROI.Width != 0
                    select td;

                return(qLeftEyeFound);

            case TrackDBFilter.EyeRightFound:

                IEnumerable <TrackData> qRightEyeFound =
                    from td in db
                    where td.RightROI.Width != 0
                    select td;

                return(qRightEyeFound);
            }

            return(db.ToList());
        }
Exemple #2
0
 public List <TrackData> GetByTime(int milliseconds, TrackDBFilter filterOptions)
 {
     return(db.ToList());
 }
Exemple #3
0
 public List<TrackData> GetByTime(int milliseconds, TrackDBFilter filterOptions)
 {
     return db.ToList();
 }
Exemple #4
0
        public IEnumerable<TrackData> GetBySamples(int numberOfSamples, TrackDBFilter filterOptions)
        {
            switch (filterOptions)
            {
                case TrackDBFilter.All:
                    return db.ToList();

                case TrackDBFilter.EyeBothFound:

                    IEnumerable<TrackData> qBothEyesFound =
                        from td in db
                        where td.LeftROI.Width != 0 && td.RightROI.Width != 0
                        select td;

                    return qBothEyesFound;

                case TrackDBFilter.EyeLeftFound:

                    IEnumerable<TrackData> qLeftEyeFound =
                        from td in db
                        where td.LeftROI.Width != 0
                        select td;

                    return qLeftEyeFound;

                case TrackDBFilter.EyeRightFound:

                    IEnumerable<TrackData> qRightEyeFound =
                        from td in db
                        where td.RightROI.Width != 0
                        select td;

                    return qRightEyeFound;
            }

            return db.ToList();
        }