- visualsurveillancesystem-exe.zip
- AForge.dll
- AForge.Imaging.dll
- AForge.Math.dll
- AForge.Video.dll
- AForge.Video.VFW.dll
- config.xml
- Core.dll
- dshow.dll
- plugins
- Output
- SimpleFileOutputSystemExample.dll
- Tracking
- SimpleTrackingSystemExample.dll
- Utils.dll
- VideoSource.dll
- VisualSurveillanceSystem.exe
- dshow.zip
- dshow
- visualsurveillancesystem-source.zip
- _ReSharper.VisualSurveillanceSystem
- 3d975191-54b0-44b0-8a34-53ec9f815498.ReflectionCache
- 79724821-43a1-4f69-b7d3-398094814dfb.ReflectionCache
- 85b999f1-4145-4d1d-b826-4de7c35c7570.ReflectionCache
- ac70d28a-5e5f-4e6e-914c-a4abf26657d3.ReflectionCache
- b6a6f38b-208d-4487-8786-5ff0c4c8dbbd.ReflectionCache
- CachesImage.bin
- d0e76f30-667c-4633-ba44-b7e14a06dad2.ReflectionCache
- dbb91a09-003b-478d-a903-81f91cc7f5f4.ReflectionCache
- f90f367f-834d-4153-910f-5f7fc9fa493e.ReflectionCache
- ReflectionCache.xml
- WordIndex.New
- .format
- 0
- 5a1ee1b9.dat
- 5
- 52d4fccd.dat
- 8
- 165cdb1e.dat
- Core
- bin
- Debug
- Release
- ClassDiagram1.cd
- ClassifyObjects
- Core.csproj
- Exceptions
- ImageProcess
- Misc
- MotionSegmentation
- obj
- OutputSystem
- Properties
- TrackingSystem
- TrackObjects
- FileOutputSystem
- SimpleTrackingSystemExample
- Utils
- VideoSource
- VisualSurveillanceSystem.resharper
- VisualSurveillanceSystem.resharper.user
- VisualSurveillanceSystem.sln
- VisualSurveillanceSystem
- images.zip
- background.jpg
- configureMenu.jpg
- configureWindow.jpg
- delegate.jpg
- framework.jpg
- IImage.jpg
- IOutputSystem.jpg
- Isurveillance.jpg
- main.jpg
- plugins.jpg
- structure.jpg
- tracking.jpg
- tracking.png
|
using System;
using System.Collections.Generic;
using System.IO;
using Zoombut.VisualSurveillanceLaboratory.Misc;
using Zoombut.VisualSurveillanceLaboratory.OutputSystem;
namespace Zoombut.FileOutputSystem
{
public class FileOutput : IOutput
{
private TextWriter writer;
private Int32 time = 1;
/// <summary>
/// Initializes a new instance of the <see cref="FileOutput"/> class.
/// </summary>
/// <param name="path">A path at which to write the file.Can not be null.If path already exists file will be opened.</param>
public FileOutput(String path)
{
writer =
new StreamWriter(File.Open(path, FileMode.OpenOrCreate, FileAccess.Write));
}
#region IOutput Members
/// <summary>
/// Outputs the specified blobs.
/// </summary>
/// <param name="blobs">The blobs to output.</param>
/// <exception cref="IOException">Error while trying to output the blobs.</exception>
/// <exception cref="ObjectDisposedException">Output object is already closed.</exception>
public void Output(ICollection<ExtendedBlob> blobs)
{
foreach (ExtendedBlob blob in blobs)
{
writer.WriteLine("{0},{1},{2},{3}", blob.Id, blob.Location.X, blob.Location.Y, time);
time++;
}
writer.Flush();
}
/// <summary>
/// Closes the output.
/// </summary>
/// ///
/// <exception cref="IOException">Error while trying to close.</exception>
public void Close()
{
writer.Close();
}
#endregion
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
A computer science master student at Bar Ilan University under the supervision of Dr. Gal Kaminka.
Dealing mainly with trajectory mining.