Skip to content

solreau/image-traversal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CSC3022F assignment 2

Provided with a very large input image (for example, 16K x 16K “image moscaic” from an astronomy sky survey) we want to produce a video that captures the movement of a much smaller window across this large image.

The command line options for your program is extractor [options], where is the large image you read in and [options] is a list of the following parameters: -t # x1 y1 x2 y2 (begin & end origin pixel coords, for frame trajectory) -s # (size of small frame in pixels) -w # write frames with

Data

All pgm images are read from the root directory so you can drop any pgm file in the root directory and it should work

Usage

In the root directory run the following to create object and executable files:

make

After succesfull compilation, you can navigate to the location of the 'extractor' target executable with the following command:

cd build/executables

In the executables directory, there should be a single driver file called extractor.

To execute with arguments simply run your own arguments like the following:

./extractor myLargeImage.pgm -t 0 10 5000 5000 -s 640 480 -w invert invseq -w none sequence2

Alternatively, a run command has been set up in the Makefile.

Here you can add your own filename and arguments to run the program

Simply run the following in the root directory:

make run

To clean the build directory (object files and executables) & the output images, run:

make clean

To get info about the file structure run

make info

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors