2,051 research outputs found
Importing Vector Graphics: The grImport Package for R
This article describes an approach to importing vector-based graphical images into statistical software as implemented in a package called grImport for the R statistical computing environment. This approach assumes that an original image can be transformed into a PostScript format (i.e., the original image is in a standard vector graphics format such as PostScript, PDF, or SVG). The grImport package consists of three components: a function for converting PostScript files to an R-specific XML format; a function for reading the XML format into special Picture objects in R; and functions for manipulating and drawing Picture objects. Several examples and applications are presented, including annotating a statistical plot with an imported logo and using imported images as plotting symbols.
A programme to determine the exact interior of any connected digital picture
Region filling is one of the most important and fundamental operations in
computer graphics and image processing. Many filling algorithms and their
implementations are based on the Euclidean geometry, which are then translated
into computational models moving carelessly from the continuous to the finite
discrete space of the computer. The consequences of this approach is that most
implementations fail when tested for challenging degenerate and nearly
degenerate regions. We present a correct integer-only procedure that works for
all connected digital pictures. It finds all possible interior points, which
are then displayed and stored in a locating matrix. Namely, we present a
filling and locating procedure that can be used in computer graphics and image
processing applications
The Footprint Database and Web Services of the Herschel Space Observatory
Data from the Herschel Space Observatory is freely available to the public
but no uniformly processed catalogue of the observations has been published so
far. To date, the Herschel Science Archive does not contain the exact sky
coverage (footprint) of individual observations and supports search for
measurements based on bounding circles only. Drawing on previous experience in
implementing footprint databases, we built the Herschel Footprint Database and
Web Services for the Herschel Space Observatory to provide efficient search
capabilities for typical astronomical queries. The database was designed with
the following main goals in mind: (a) provide a unified data model for
meta-data of all instruments and observational modes, (b) quickly find
observations covering a selected object and its neighbourhood, (c) quickly find
every observation in a larger area of the sky, (d) allow for finding solar
system objects crossing observation fields. As a first step, we developed a
unified data model of observations of all three Herschel instruments for all
pointing and instrument modes. Then, using telescope pointing information and
observational meta-data, we compiled a database of footprints. As opposed to
methods using pixellation of the sphere, we represent sky coverage in an exact
geometric form allowing for precise area calculations. For easier handling of
Herschel observation footprints with rather complex shapes, two algorithms were
implemented to reduce the outline. Furthermore, a new visualisation tool to
plot footprints with various spherical projections was developed. Indexing of
the footprints using Hierarchical Triangular Mesh makes it possible to quickly
find observations based on sky coverage, time and meta-data. The database is
accessible via a web site (http://herschel.vo.elte.hu) and also as a set of
REST web service functions.Comment: Accepted for publication in Experimental Astronom
A New polygon based algorithm for filling regions
[[abstract]]Region filling is a fundamental operation in computer graphics and image processing. There are broadly two classes of region filling: polygon based and pixel based. The conventional polygon based region filling algorithm typically uses data structures of records and fields. Using these data structures, the region filling process slows down because of the time-consuming operations of records and fields. This paper proposes a new polygon based region filling algorithm by using the proposed data structures of triples. This results in use of more efficient triple operations involving arrays and elements to fill a region. Using data structures of triples, the y-coordinate modification problem that occurs in the conventional algorithm simply disappears. In addition, contrary to the conventional approach, which uses troublesome geometrical considerations in deciding the even number of elements in each linked list, the proposed triple model uses a simple criterion to meet the even number requirement. Most important of all is the fact that the proposed criterion is independent of the polygon geometry. The experimental results strongly support superiority of the proposed algorithm. It is verified that the proposed algorithm is both theoretically and experimentally better than the conventional algorithm.[[notice]]補æ£å®Œ
A Method of Rendering CSG-Type Solids Using a Hybrid of Conventional Rendering Methods and Ray Tracing Techniques
This thesis describes a fast, efficient and innovative algorithm for producing shaded, still images of complex objects, built using constructive solid geometry ( CSG ) techniques. The algorithm uses a hybrid of conventional rendering methods and ray tracing techniques. A description of existing modelling and rendering methods is given in chapters 1, 2 and 3, with emphasis on the data structures and rendering techniques selected for incorporation in the hybrid method. Chapter 4 gives a general description of the hybrid method. This method processes data in the screen coordinate system and generates images in scan-line order. Scan lines are divided into spans (or segments) using the bounding rectangles of primitives calculated in screen coordinates. Conventional rendering methods and ray tracing techniques are used interchangeably along each scan-line. The method used is detennined by the number of primitives associated with a particular span. Conventional rendering methods are used when only one primitive is associated with a span, ray tracing techniques are used for hidden surface removal when two or more primitives are involved. In the latter case each pixel in the span is evaluated by accessing the polygon that is visible within each primitive associated with the span. The depth values (i. e. z-coordinates derived from the 3-dimensional definition) of the polygons involved are deduced for the pixel's position using linear interpolation. These values are used to determine the visible polygon. The CSG tree is accessed from the bottom upwards via an ordered index that enables the 'visible' primitives on any particular scan-line to be efficiently located. Within each primitive an ordered path through the data structure provides the polygons potentially visible on a particular scan-line. Lists of the active primitives and paths to potentially visible polygons are maintained throughout the rendering step and enable span coherence and scan-line coherence to be fully utilised. The results of tests with a range of typical objects and scenes are provided in chapter 5. These results show that the hybrid algorithm is significantly faster than full ray tracing algorithms
Importing Vector Graphics: The grImport Package for R
This article describes an approach to importing vector-based graphical images intostatistical software as implemented in a package called grImport for the R statistical com-puting environment. This approach assumes that an original image can be transformedinto a PostScript format (i.e., the opriginal image is in a standard vector graphics formatsuch as PostScript, PDF, or SVG). The grImport package consists of three components: afunction for converting PostScript les to an R-specic XML format; a function for read-ing the XML format into special Picture objects in R; and functions for manipulatingand drawing Picture objects. Several examples and applications are presented, includingannotating a statistical plot with an imported logo and using imported images as plottingsymbols
Recommended from our members
Recognition by directed attention to recursively partitioned images
A learning/recognition model (and instantiating program) is described which recursively combines the learning paradigms of conceptual clustering (Michalski, 1980) and learning-from-examples to resolve the ambiguities of real-world recognition. The model is based on neuropsychological and psychological evidence that the visual system is analytic, hierarchical, and composed of a parallel/serial dichotomy (many, see conclusions by Crick, 1984). Emulating the experimental evidence, parallel processes in the model decompose the image into components and cluster the constituents in much the same way as the image processing technique known as moment analysis (Alt, 1962). Serial, attentive mechanisms then reassemble the decompositions by investigating spatial relationships between components. The use of attentive mechanisms extends the moment analysis technique to handle alterations in structure and solves the contention problem created by combining the two learning paradigms. The contention results from a disagreement between the teacher and the model on what constitutes the salient features at the highest level of the symbol. There are four cases ZBT must handle, two of which result from the disagreement with the teacher. The parallel/serial dichotomy represents a vertical/horizontal tradeoff between the invariant and variant features of a domain. The resultant learned hierarchy allows ZBT to recognize structural differences while avoiding problems of exponential growth
- …