The Liquid Rescale library Manual
Next
The Liquid Rescale library Manual
Carlo
Baldassi
Copyright © 2007-2009 Carlo Baldassi
Table of Contents
1. Introduction
Copyright
About this document
Seam carving in brief
About enlarging
Overview of the library
Basic methods
2. LqR library API user manual
Signal handling
Generating the multi-size image
Carver object creation
Carver activation
Choosing the image type
Liquid rescaling
The resizing method
Flattening
Cancelling an action
Reading the multi-size image
Pixel by pixel
One line at a time
Resetting
Automatic feature detection
Foreword
Builtin energy functions
Custom energy functions
Reading out the energy
Adding a bias
Foreword
Adding a bias pixel by pixel
Using an array of floating-point values
Using another image
Operating on a specific area
Adding a rigidity mask
Foreword
Adding an individual rigidity coefficient to a pixel
Using an array of floating-point values
Using another image
Operating on a specific area
Tuning
Setting the enlargement step
Choosing the resize order
Choosing the side switch frequency
Using the cache
Dealing with the visibility maps (the seams)
Dumping the visibility map
Storing the visibility maps
Accessing the internally attached visibility maps
The visibility map objects
Importing a visibility map in a carver
Saving and loading visibility maps to/from files
Attaching extra images
Attaching a carver
Accessing attached carvers
Progress indicators
Creating and attaching a progress report object
Setting up progress hooks
Initial and ending progress messages
Progress update step
Releasing the memory
3. LqR library API reference
Types defined by the library
Carver objects
Visibiliy maps
Energy
Bias
Rigidity masks
Progress reports
4. References
A. API changes in new versions of the library
New symbols in version 0.4
New symbols in version 0.3
New symbols in version 0.2
Deprecated symbols
List of Tables
2.1.
Image types assigned by default
2.2.
Default progress messages
3.1.
Image types assigned by default
List of Examples
2.1.
A simple readout example
2.2.
A simple readout example - extended version
2.3.
Line-by-line readout example
2.4.
Line-by-line readout example - extended version
2.5.
Custom energy declaration
2.6.
Custom energy definition and setup
2.7.
Accessing visibility maps #1
2.8.
Accessing visibility maps #2
2.9.
Reading visibility maps data
2.10.
Accessing attached carvers #1
2.11.
Accessing attached carvers #2
2.12.
Setting progress hooks
2.13.
Progress hooks declaration