Top Banner
The iiuf Java Package Part II Simon Schubiger and Oliver Hitz DIUF, University of Fribourg
20

The iiuf Java Package Part II Simon Schubiger and Oliver Hitz DIUF, University of Fribourg.

Dec 21, 2015

Download

Documents

Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: The iiuf Java Package Part II Simon Schubiger and Oliver Hitz DIUF, University of Fribourg.

The iiuf Java PackagePart II

Simon Schubiger and Oliver Hitz

DIUF, University of Fribourg

Page 2: The iiuf Java Package Part II Simon Schubiger and Oliver Hitz DIUF, University of Fribourg.

CVS

XML

Imaging

Utilities

Outline

Introduction CVS: Concurrent Versions System XML/DOM Java Imaging Utilities Conclusion

Page 3: The iiuf Java Package Part II Simon Schubiger and Oliver Hitz DIUF, University of Fribourg.

CVS

XML

Imaging

Utilities

Introduction

Goal: Share common source with minimal overhead through CVS.

21.02.2001: 1413 Classes 906 Source files 127141 lines of code

Page 4: The iiuf Java Package Part II Simon Schubiger and Oliver Hitz DIUF, University of Fribourg.

CVS

XML

Imaging

Utilities

Concurrent Versions System

Same source code, multiple developers Source code history management

No more manual versioning (file1, file2, file3...) Who made a given change? When? Why? What

other changes at the same time? Different development branches Remote access

Low bandwidth

Page 5: The iiuf Java Package Part II Simon Schubiger and Oliver Hitz DIUF, University of Fribourg.

CVS

XML

Imaging

Utilities

CVS Overview

One central file repository Every developer works on a local copy of the

files By default, no locking of files (contrary to RCS) Conflicts are resolved manually

Website: http://www.cvshome.org

Page 6: The iiuf Java Package Part II Simon Schubiger and Oliver Hitz DIUF, University of Fribourg.

CVS

XML

Imaging

Utilities

Repository Structure

/home/iiufdev/cvsroot java

iiufeduorg

rtsp grabx

Page 7: The iiuf Java Package Part II Simon Schubiger and Oliver Hitz DIUF, University of Fribourg.

CVS

XML

Imaging

Utilities

Unix Setup

Become a member of the group "iiufdev" (for file access privileges)

Setup CVSROOT: setenv CVSROOT

:pserver:<user>@iiuf00:/home/iiufdev/cvsroot Login to CVS:

cvs login Get a local copy of a project:

cvs checkout <directory>

Page 8: The iiuf Java Package Part II Simon Schubiger and Oliver Hitz DIUF, University of Fribourg.

CVS

XML

Imaging

Utilities

Common Tasks

Bring the local copy up to date: cvs update [filename(s)]

Add a file to the repository: cvs add <filename>

Commit changes: cvs commit [filename(s)]

Page 9: The iiuf Java Package Part II Simon Schubiger and Oliver Hitz DIUF, University of Fribourg.

CVS

XML

Imaging

Utilities

Common Tasks

View revision history of a file: cvs log [filename(s)]

View changes made to the local version: cvs diff [filename(s)]

Get an older version: cvs update -r <revision> [filename(s)]

Page 10: The iiuf Java Package Part II Simon Schubiger and Oliver Hitz DIUF, University of Fribourg.

CVS

XML

Imaging

Utilities

Conflicts

Problem: two developers change the same file at the same time

Conflicts occur at "commit" time Different portion in the source code:

changes are merged automatically Same portion:

user is asked to resolve the conflict manually, corresponding source code region is marked

Page 11: The iiuf Java Package Part II Simon Schubiger and Oliver Hitz DIUF, University of Fribourg.

CVS

XML

Imaging

Utilities

Other Clients

jCVS - Java CVS Client (http://www.jcvs.org)

Page 12: The iiuf Java Package Part II Simon Schubiger and Oliver Hitz DIUF, University of Fribourg.

CVS

XML

Imaging

Utilities

Other Clients

MacCVS & WinCVS (http://www.cvsgui.org)

Page 13: The iiuf Java Package Part II Simon Schubiger and Oliver Hitz DIUF, University of Fribourg.

CVS

XML

Imaging

Utilities

XML & DOM

DOM: object representation of XML data

wrapper for different XML parsers

iiuf.dom.DOMUtils provides access to elements within a DOM

structure

Page 14: The iiuf Java Package Part II Simon Schubiger and Oliver Hitz DIUF, University of Fribourg.

CVS

XML

Imaging

Utilities

Imaging

JAI: Java Advanced Imaging 100+ different image processing operations,

some native implementations add, subtract, composite... rotate, scale, warp... load/save on TIFF, GIF, JPEG... complex images, (I)FFT... extreme, histogram, mean... convolve, edge extract...

Page 15: The iiuf Java Package Part II Simon Schubiger and Oliver Hitz DIUF, University of Fribourg.

CVS

XML

Imaging

Utilities

Imaging

iiuf.jai provides extensions and utilities for JAI: DisplayImagePanel ImageViewer sample application

Page 16: The iiuf Java Package Part II Simon Schubiger and Oliver Hitz DIUF, University of Fribourg.

CVS

XML

Imaging

Utilities

Document Imaging

Document analysis operators for JAI: RLSA Connected components analysis Projection profiles

iiuf.das.ocr: Ready to use Java interface to the ScanWorX OCR program

Page 17: The iiuf Java Package Part II Simon Schubiger and Oliver Hitz DIUF, University of Fribourg.

CVS

XML

Imaging

Utilities

iiuf.log.Log

Replacement for System.out.println()-style debugging

Single debugging console for distributed applications

Output sent using the Syslog protocol to a standalone application on a specific machine

Also handles exceptions

Page 18: The iiuf Java Package Part II Simon Schubiger and Oliver Hitz DIUF, University of Fribourg.

CVS

XML

Imaging

Utilities

iiuf.log.Log

Servers List Overview

Page 19: The iiuf Java Package Part II Simon Schubiger and Oliver Hitz DIUF, University of Fribourg.

CVS

XML

Imaging

Utilities

iiuf.net.winnetou

Simple web server Extensible through plugins

Page 20: The iiuf Java Package Part II Simon Schubiger and Oliver Hitz DIUF, University of Fribourg.

CVS

XML

Imaging

Utilities

Conclusion

Use it and contribute!

Documentation: http://www-iiuf.unifr.ch/iiufdev/doc

3rd-party libraries: /home/iiufdev/distr