Questions tagged [rasterizing]

Rasterization (or rasterization) is the task of taking an image described in a vector graphics format (shapes) and converting it into a raster image (pixels or dots) for output on a video display or printer, or for storage in a bitmap file format.

In normal usage, the term refers to the popular rendering algorithm for displaying three-dimensional shapes on a computer. Rasterization is currently the most popular technique for producing real-time 3D computer graphics. Real-time applications need to respond immediately to user input, and generally need to produce frame rates of at least 30 frames per second to achieve smooth animation.

Definition

278 questions
2
votes
2 answers

How to capture data within dataframe when using st_rasterize?

I have a polygon: p1 <- rbind(c(-180,-20), c(-140,55), c(10, 0), c(-140,-60), c(-180,-20)) hole <- rbind(c(-150,-20), c(-100,-10), c(-110,20), c(-150,-20)) p1 <- list(p1, hole) I create a simple feature polygon object: library(sf) poly_sfc <-…
Anthony W
  • 1,289
  • 2
  • 15
  • 28
2
votes
1 answer

How can I prevent cairo from rasterizing my pattern fills?

Some time around 2011, I wrote a Pycairo script to generate a PDF that included several fills of custom vector patterns. Today I re-ran it (Python 3.5.2, Pycairo 1.10.0) and was surprised to see that all these patterns were rendered as…
Pont
  • 333
  • 3
  • 12
2
votes
4 answers

Algorithm for evenly arranging steps in 2 directions

I am currently programming the controller for a CNC machine, and therefore I need to get the amount of stepper motor steps in each direction when I get from point A to B. For example point A's coordinates are x=0 and y=0 and B's coordinates are x=15…
luca
  • 23
  • 6
2
votes
0 answers

How rasterizer on GPU is arranged?

During development of ray-tracer based on k-d tree acceleration structure I faced a problem. Sometimes during ray/triangle intersection test (using Möller–Trumbore algorithm) for two adjacent triangles ray miss both of them. It leads to flickering…
Tomilov Anatoliy
  • 15,657
  • 10
  • 64
  • 169
2
votes
0 answers

Ray tracing on GLSL

I'm looking for to simulate the reflection effect using ray tracing on GLSL, however I could not find good references, examples or tutorial related to this topic. When I got some interesting data, the method is limited for specific object's surfaces…
2
votes
1 answer

Rasterize() slow on large SpatialPolygonsDataFrame, alternatives?

I have a large (266,000 elements, 1.7Gb) SpatialPolygonsDataFrame that I am try to convert into 90m resolution RasterLayer (~100,000,000 cells) The SpatialPolygonsDataFrame has 12 variables of interest to me, thus I intend to make 12 RasterLayers At…
ctlamb
  • 131
  • 1
  • 4
  • 14
2
votes
1 answer

Rasterization and Secondary Reflections

I have worked to develop a GPU-based underwater imaging sonar simulation for real-time applications (see more details in my last paper). The mission part is the reverberation phenomenon, that can be represented by a multipath algorithm. This work…
2
votes
1 answer

Iterate over pixels along a rasterized circular arc

I want to iterate over pixels along a rasterized circular arc, given its radius, start and end angles in radians, eg: template void arc(float startRadians, float endRadians, int radius, Functor f); To be used like: arc(0.f, M_PI,…
Giovanni Funchal
  • 8,934
  • 13
  • 61
  • 110
2
votes
0 answers

Creating an editor for low-resolution vector graphics drawings

The goal is to create tiny 256x256 pixel vector drawings using line segments that require only one byte for each coordinate, so 32 bits total per line segment. The motivation is to create a game map and use the line segments for collision detection.…
2
votes
2 answers

How do I enable BIGTIFF=YES option when using gdal_rasterize?

I am using the Rasterize (write over existing raster) tool within QGIS - however same question would apply if you were calling gdal from command line or python. I am burning a vector feature into a raster with values based on a field in the…
Cate
  • 431
  • 1
  • 7
  • 22
2
votes
0 answers

Why is it hard for iOS to natively render SVGs?

I have read numerous posts online saying native rendering of SVGs on iOS is expensive. My question is why? SVGs are just images defined as a set of vector graphics which seem to be your typical “paths” and shape in an annotated xml format that…
AyBayBay
  • 1,726
  • 4
  • 18
  • 37
2
votes
1 answer

How do I make an elevation model from a 3d polygon?

I have a number of polygons in 3d from a geojson file, and I would like to make an elevation model. This means that I want a raster, where every pixel is the height of the polygon in this position. I tried looking at gdal_rasterize, but the…
Little geek
  • 592
  • 8
  • 22
2
votes
3 answers

Hilbert-Peano curve to scan image of arbitrary size

I have written an implementation of Hilbert-Peano space filling curve in Python (from a Matlab one) to flatten my 2D image: def hilbert_peano(n): if n<=0: x=0 y=0 else: [x0, y0] = hilbert_peano(n-1) x =…
2
votes
1 answer

Problems of clipping in 4D homogeneous space?

I am learning programmable rendering pipeline by implementing a tiny software renderer. I try to implement it in a 'hardware' style. However, I am not familiar with the GPU pipeline and got some problems of homogeneous clipping. According to this…
stanleyerror
  • 728
  • 1
  • 9
  • 23
2
votes
0 answers

DDA Algorithm and Bresenham Algorithm

I have been studying DDA and Bresenham algorithms for line drawing and am curious about one thing.In both the algorithms,we consider a pixel grid to be of unit size and perform further steps.My question is if I change my grid size to say 0.5*0.5…