#include <tcl.h>
#include <tk.h>
#include <sadie.h>
#include "tclsadie.h"
Go to the source code of this file.
Functions | |
int | Sadie_NewFunctions_SineWaveCmd (ClientData client_data, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[]) |
Synthesize an image with a horizontal sine wave pattern. | |
int | Sadie_NewFunctions_ChirpCmd (ClientData client_data, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[]) |
Synthesize a two-dimensional chirp test pattern. | |
int | Sadie_NewFunctions_SineStarCmd (ClientData client_data, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[]) |
Synthesize a radially-symmetrical sine test pattern. | |
int | Sadie_NewFunctions_CheckerboardCmd (ClientData client_data, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[]) |
Synthesize a test pattern of alternating black and white rectangles. | |
int | Sadie_NewFunctions_GrayScaleCmd (ClientData client_data, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[]) |
Synthesize a uniform horizontal gradient image. | |
int | Sadie_NewFunctions_FunctionCmd (ClientData client_data, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[]) |
Synthesize a windowing function image. | |
int | Sadie_NewFunctions_RandomCmd (ClientData client_data, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[]) |
Synthesize an image filled with random noise. | |
int | Sadie_NewFunctions_Init (Tcl_Interp *interp) |
Make the commands defined in this file accessible to the Tcl interpreter. |
It is often useful to synthesize an image by a simple algorithm rather than by importing some kind of sensor data, not only for having test patterns to check the results of applying sequences of image processing operations, or simulated noise for modeling processes of image degradation, but also to act as masks or windows for operations such as Fourier transforms. The SADIE library includes sever operations for synthesizing all these types of image, and we define the Tcl/Tk interface to them here.
Definition in file Sadie_NewFunctions.c.
|
Synthesize a test pattern of alternating black and white rectangles. The SADIE library function CHECKER synthesizes an image tiled with regularly alternating black and white rectangles of the specified size, starting from the top left corner. The Tcl data should conform to the patterns:
Definition at line 203 of file Sadie_NewFunctions.c. References GetSadieUintFromObj2(), and SetSadieImageObj2(). Referenced by Sadie_NewFunctions_Init(). |
|
Synthesize a two-dimensional chirp test pattern. The SADIE library function CHIRP synthesizes a two-dimensional sinusoidal pattern with the frequency of the sinusoid increasing with distance from the center of the pattern. The pattern itself is periodic, with the specified period in pixel units being the interval between pattern centers. The Tcl data should conform to the patterns:
Definition at line 118 of file Sadie_NewFunctions.c. References GetSadieDoubleFromObj2(), GetSadieUintFromObj2(), and SetSadieImageObj2(). Referenced by Sadie_NewFunctions_Init(). |
|
Synthesize a windowing function image.
FUNCTION in the SADIE library sythesizes images with values determined by one of a family of functions intended to be useful for windowing and similar operations. They generally have radial symmetry about the image center (except for the similarly centered box function), modified by different scale factors for the horizontal and vertical axes, and values scaled to range from
The Tcl data should conform to the patterns:
Definition at line 312 of file Sadie_NewFunctions.c. References GetSadieDoubleFromObj2(), GetSadieIntFromObj2(), GetSadieUintFromObj2(), and SetSadieImageObj2(). Referenced by Sadie_NewFunctions_Init(). |
|
Synthesize a uniform horizontal gradient image. The SADIE library function GRAYSCAL synthesizes an image of the specified size filled with a uniform horizontal gradient from a starting greylevel to an ending greylevel (imposing a limitation that the start must be darker than the end). The Tcl data should conform to the patterns:
Definition at line 249 of file Sadie_NewFunctions.c. References GetSadiePixelFromObj2(), GetSadieUintFromObj2(), and SetSadieImageObj2(). Referenced by Sadie_NewFunctions_Init(). |
|
Make the commands defined in this file accessible to the Tcl interpreter.
Definition at line 396 of file Sadie_NewFunctions.c. References Sadie_NewFunctions_CheckerboardCmd(), Sadie_NewFunctions_ChirpCmd(), Sadie_NewFunctions_FunctionCmd(), Sadie_NewFunctions_GrayScaleCmd(), Sadie_NewFunctions_RandomCmd(), Sadie_NewFunctions_SineStarCmd(), and Sadie_NewFunctions_SineWaveCmd(). Referenced by Tcl_AppInit(). |
|
Synthesize an image filled with random noise.
The SADIE library function RANDOM synthesizes an image of the specified size filled with noise generated as random numbers from either a uniform or a Gaussian distribution, depending on whether a type parameter equals
Definition at line 363 of file Sadie_NewFunctions.c. References GetSadieDoubleFromObj2(), GetSadieIntFromObj2(), GetSadieUintFromObj2(), and SetSadieImageObj2(). Referenced by Sadie_NewFunctions_Init(). |
|
Synthesize a radially-symmetrical sine test pattern. The SADIE library function SINESTAR synthesizes a two-dimensional sine test pattern that uses polar coordinates with an origin in at the center of the image. For each concentric circle, it sets the image intensity to the sine of the angle scaled by a frequency factor in hertz (cycles round the circle). The Tcl data should conform to the patterns:
Definition at line 161 of file Sadie_NewFunctions.c. References GetSadieDoubleFromObj2(), GetSadieUintFromObj2(), and SetSadieImageObj2(). Referenced by Sadie_NewFunctions_Init(). |
|
Synthesize an image with a horizontal sine wave pattern.
The SADIE library function SINEWAVE scales a sine function so that its maxima are at the value
Definition at line 73 of file Sadie_NewFunctions.c. References GetSadieDoubleFromObj2(), GetSadieUintFromObj2(), and SetSadieImageObj2(). Referenced by Sadie_NewFunctions_Init(). |