COSIMA: HELFERLEIN
COSIMA: SMALL HELPERS


Alle relevanten hier erwähnten Dateien befinden sich nach dem Entpacken des COSIMA-Archivs im Unterverzeichnis helpers.

After unzipping the COSIMA archiv, all here mentioned files are located within the subdirectory helpers.

Cosima im Doppelpass: Erst die Korrekturparameter berechnen, dann Bild für Bild das Scheinfester festlegen

Mit dem Start des Batchprozesses cosima_twopass.bat werden in einem ersten Durchlauf zuerst alle Korrekturparameter berechnet und diese Korrekturparameter in der Datei cosima_files.txt zwischengespeichert. Bilder werden in diesem ersten Durchgang nicht erzeugt. Im zweiten Durchgang werden diese Korrekturparameter ausgelesen und sofort verwendet. Hierbei wird dann auch interaktiv das Scheinfenster gesetzt. Diese Methode hat den Vorteil, dass beim interaktiven Setzen der Scheinfenster zwischen zwei Bildern keine zeitintensiven Berechnungsvorgänge mehr abgewartet weden müssen. Funktioniert nur in der lizenzierten Version.

Cosima with two-pass run: First compute the correction parameters, then adjust the stereo window image by image

With the start of the batch file cosima_twopass.bat, during a first run all correction parameters are computed and stored into the database cosima_files.txt. Images will not be created during this first run. With the second run, these parameters were read out and used at once. Simultaneously the stereo window will be adjusted interactively. The advantage of this method is, that no timewasting computing processes have to be awaited between the window setting of two images. Does only operate with the licensed version.

Prozesspriorität herabsetzen

Um Cosima im Hintergrund arbeiten lassen, wird das Programm mit Hilfe des Batchfiles cosima_nice.bat gestartet.

Decrease process priority

To decrease the process priority, you only have to start the program with the batch file cosima_nice.bat.

Stereobilder splitten

Bereits fertig montierte Stereobilder können mit der ini-Datei cosima_split.ini gesplittet werden. Die wesentlichen Parameter sind:
  • InputMode = 4 (nimm einfach jedes Bild!)
  • ImageType = jpg (oder abändern!)
  • StereoImageInput = 1 (Inputbilder sind schon montiert!)
  • EstimateGeometry = 0 (keine Korrektur!)
  • LeftRightOutput = 2 (man will ja Einzelbilder!)
  • StereoOutput = 0 (das braucht man nicht mehr!)
  • AnaglyphOutput = 0 (das braucht man auch nicht!)
  • InterpolationMode = 0 (nur Pixel kopieren)
  • ConvertByIrfan = 1 (wird meistens zutreffen!)

Split stereo images

It is easy possible to split already mounted stereo images afterwards, using the ini-file cosima_split.ini. The main parameters are:
  • InputMode = 4 (simple take every image!)
  • ImageType = jpg (or change to your needs!)
  • StereoImageInput = 1 (input images are already mounted!)
  • EstimateGeometry = 0 (no correction!)
  • LeftRightOutput = 2 (you aim to have single images!)
  • StereoOutput = 0 (this you already have!)
  • AnaglyphOutput = 0 (you won't need this!)
  • InterpolationMode = 0 (only copy pixels.!)
  • ConvertByIrfan = 1 (propaply needed!)

Stereobilder wieder zusammensetzen

Natürlich kann man gesplittete Einzelbilder auch wieder zusammensetzen. Die ini Datei dafür ist: cosima_combine.ini. Die wesentlichen Parameter dafür sind:
  • InputMode = 4 (nimm einfach alle Bilder!)
  • ImageType = jpg (oder abändern!)
  • StereoImageInput = 2 (Inputbilder jetzt Einzelbilder!)
  • EstimateGeometry = 0 (keine Korrektur!)
  • LeftRightOutput = 0 (das braucht man nicht mehr!)
  • StereoOutput = 2 (man will ja Stereobilder!)
  • AnaglyphOutput = 0 (das braucht man nicht!)
  • InterpolationMode = 0 (nur Pixel kopieren)
  • ConvertByIrfan = 1 (wird meistens zutreffen!)

Combine stereo images

Of course, you also can combine the splitted images. Use for that the ini-file cosima_combine.ini. The main parameters are:
  • InputMode = 4 (simple take every image!)
  • ImageType = jpg (or change to your needs!)
  • StereoImageInput = 2 (input images now single images!)
  • EstimateGeometry = 0 (no correction!)
  • LeftRightOutput = 0 (this you already have!)
  • StereoOutput = 2 (you aim to have mounted stereos!)
  • AnaglyphOutput = 0 (you won't need this!)
  • InterpolationMode = 0 (only copy pixels!)
  • ConvertByIrfan = 1 (propaply needed!)

Rechtes Bild drehen

Öffnet ein side-by-side montiertes Bild, spiegelt die rechte Seite (für den Ekeren Viewer) und setzt es wieder zusammen: cosima_reverse.ini.
  • InputMode = 4 (nimm einfach alle Bilder!)
  • ImageType = jpg (oder abändern!)
  • StereoImageInput = 1 (Inputbilder sind schon montiert!)
  • EstimateGeometry = 0 (keine Korrektur!)
  • AutoOutputContrast = 0 (keine Korrektur!)
  • LeftRightOutput = 0 (das braucht man nicht mehr!)
  • StereoOutput = 2 (man will ja Stereobilder!)
  • AnaglyphOutput = 0 (das braucht man nicht!)
  • InterpolationMode = 0 (nur Pixel kopieren)
  • MirrorOutput = 2 (rechtes Bild spiegeln!)
  • CroppOutput = 0 (keine Aktion)
  • ConvertByIrfan = 1 (wird meistens zutreffen!)

Rotate right image

This file opens a side-by-side mounted image, mirrors the right side (for the Ekeren viewer) and remounts it: cosima_reverse.ini.
  • InputMode = 4 (simple take every image!)
  • ImageType = jpg (or change to your needs!)
  • StereoImageInput = 1 (input images are already mounted!)
  • EstimateGeometry = 0 (no correction!)
  • AutoOutputContrast = 0 (no correction!)
  • LeftRightOutput = 0 (you won't need this!)
  • StereoOutput = 2 (you aim to have mounted stereos!)
  • AnaglyphOutput = 0 (you won't need this!)
  • InterpolationMode = 0 (only copy pixels)
  • MirrorOutput = 2 (mirror rigth image!)
  • CroppOutput = 0 (no action)
  • ConvertByIrfan = 1 (propaply needed!)

Slideshow.exe: Bilderschau mit IrvanView

Mit IrvanView und einem weiteren Hilfsprogramm (wav.exe) kann man sehr einfach eine vollautomatische Slideshow mit Sounduntermalung erzeugen. Die Standzeiten der Bilder werden in Millisekunden angegeben. Natürlich ist das keine Konkurrenz zu professionellen Tools, dafür aber absolut simpel und umsonst! Die notwendigen Schritte sind:
  • Installation von IrfanView und Wav. Die genauen Links sind in der Datei slideshow.txt vermerkt. Die Datei wav.exe ist auch im Cosima-Archiv enthalten, da sie nur wenige KiloByte groß ist.
  • Anpassung der ini-Datei slideshow.ini. Dort werden die Pfade der Programme IrfanView und Wav gesetzt. Wav.exe am besten einfach im Verzeichnis belassen.
  • Eine Liste der anzuzeigenden Bilder erzeugen und hinter jedem Filenamen die Standzeit in Millisekunden angeben. Diese Datei wird images.txt genannt.
  • Alle Bilder, eine Sounddatei (wav oder mp3), die Liste images.txt sowie die anderen 5 mitgelieferten Hilfsdateien (slideshow.exe, slideshow.ini, black.gif, i_view32.ini. und wav.exe) in ein beliebiges Verzeichnis kopieren.
  • In diesem Verzeichnis jetzt die Slideshow starten mit slideshow n,. wobei n die Anzahl der Wiederholungen ist. Ohne die Angabe von n wird die Slideshow unendlich oft wiederholt.
  • Wenn die Datei images.txt fehlt, werden einfach alle gefundenen Bilder der Reihe nach angezeigt. Die Standzeit für diesen Fall ist immer gleich und kann in der Datei slideshow.ini vorgegeben werden (DefaultDelay=6000ms).
  • Es werden alle Sounds der Reihe nach abgespielt. Falls die Sounds insgesamt zu lang sind, werden sie am Ende des letzten Bildes abgebrochen. Mit jeder neuen Wiederholung der Slideshow beginnt auch der Sound neu.
  • Details sind in der Datei slideshow.txt erläutert.

Slideshow.exe: Viewing images with IrfanView

One can produce very simply a fully automatic slideshow including sound using IrvanView and a further help program (wav.exe). The delay times of the images can be indicated in milliseconds. Of course, this no competition to professional tools, but is however absolutely simple and free! The necessary steps are:
  • Installation of IrfanView and Wav. The accurate links are noted in the file slideshow.txt. The file wav.exe is also contained in the Cosima archive, because it's size is only a few kilobytes.
  • Adjustment of the ini-file slideshow.ini. There the paths of the programs IrfanView and Wav are to be set. Simply leave Wav.exe best in the current directory.
  • Create a list of the images, which are to be shown and write the delay time of each image behind the file names in milliseconds. This file has to be named images.txt.
  • Copy all images, the sound file (wav or mp3), the file images.txt as well as the other five provided auxiliary files (slideshow.exe, slideshow.ini, black.gif, i_view32.ini and wav.exe) into a directory of your choice.
  • Start now the slideshow typing slideshow n, whereby n is the number of repetitions. Without the indication of n the Slideshow is repeated infinitely often.
  • If the file images.txt is missing, simply all found images are shown one after the other. In this case the delay time given in the slideshow.ini is used for all images (DefaultDelay=6000ms).
  • All sounds are played in sequence. If the sounds are too long altogether, they are broken off at the end of the last image. With each new repetition of the Slideshow also the sound starts again.
  • Details are explained in the file slideshow.txt.


© Gerhard P. Herbig, Juni 2005,     back to cosima homepage