Questions tagged [raster-graphics]

Use this tag for question about raster graphics (bitmap image)

raster graphics or bitmap image is a dot matrix data structure, representing a generally rectangular grid of pixels, or points of color, viewable via a monitor, paper, or other display medium. Raster images are stored in image files with varying formats

Wiki: https://en.wikipedia.org/wiki/Raster_graphics

32 questions
2
votes
1 answer

Vector background images vs raster background images

I currently use a repeating pattern of raster images on one of my websites, which isn't so complex that it couldn't be converted to vector, but hasn't, as of yet, been scaled up to look decent on HiDPI/Retina displays. I'm considering converting…
Jules
  • 14,200
  • 13
  • 56
  • 101
1
vote
1 answer

How and when does viewport change happen in OpenGL? (glViewport)

I have a question about computer graphics pipeline. In OpenGL, we usually use glViewport function in reshape callback. I heard glViewport is related to viewport transformation. In our vertex shader, we usually calculate our vertices and make these…
1
vote
1 answer

scale bar and north arrow in rasterVis plot in R

I am using rasterVis package in R for plotting raster data (mostly satellite data in tif format). I will be grateful, if I could get some advice on adding scalebar and north arrow. Any in built-functions available in this package? Thanks in advance.
Rakhesh
  • 11
  • 2
1
vote
1 answer

Change names of stacked raster data in plot rasterVis package in R

I have the next code: list_data <- list.files(pattern="*NDVI",full.names=T) stack my data using: data <- stack(list_data) and the names of layers is: > names(data) [1] "Max_NDVI_2000" "Max_NDVI_2001" "Max_NDVI_2002" [4] "Max_NDVI_2003"…
rral
  • 554
  • 3
  • 20
1
vote
0 answers

How do I fit a vector curve outline envelope to an offscreen bitmap?

I am writing a drawing program that is vector-based but should have drawing tools that behave more like raster-based tools. For example - when you draw with a graphics tablet pen, the resultant vector stroke, with pressure differences and all, is…
OurManFlint
  • 79
  • 2
  • 9
1
vote
0 answers

Optimizing render of content in Html5 canvas

Im Developing a open-source library which uses the Html5 canvas's graphic context to render a hierarchy of views. However i would like to make some performance optimizing allowing faster rendering of content that is fully opaque. How could i…
Raweden
  • 319
  • 2
  • 5
0
votes
1 answer

What image synthesis techniques does the term "rendering" apply to?

I am a little (much) confused about the term "rendering". My understanding is that it should apply to every process of creating an image - of whatever type, i.e. raster image/vector image/magical other ways of storing images - from some geometric…
0
votes
4 answers

Merging rasters

I am trying to implement a painting tool with layer support. For each layer I create a WritableRaster. To display the canvas, the layers have to be merged. What's the most efficient way to do this? I could use a bufferedImage, set the raster and…
Chris
  • 460
  • 10
  • 22
0
votes
0 answers

Java, zoom operations for raster and vector data

I would kindly ask you for help with the code involving zoom operations with raster and vector data (represented by the line). Sorry for a complete code, which is slightly longer: public class ZoomOperations extends JPanel { private…
justik
  • 4,145
  • 6
  • 32
  • 53
0
votes
1 answer

how to overlay a raster image on leaflet, on demand?

I am using a lat&long coordinates I receive in input by the user to visualize a map with leaflet.js. As I do that, I compute a heatmap in the background (e.g. population density map in the 5km-wide area surrounding the chosen coordinates). How do I…
Effe Pelosa
  • 163
  • 1
  • 3
  • 13
0
votes
0 answers

Rasterize 3D line

I am trying to find an algorithm for 3D line segment rasterization. Bresenham's algorithm seems like it's almost what I want but it doesn't compute any Z values. Does anyone know if there is a way to extend Bresenham's algorithm or maybe a different…
0
votes
1 answer

What algorithm can I use to distinguish between closed and open raster polygons?

Imagine I have two point arrays. One of them is an open polygon, which looks like this. Xes are black dots and points ('.') - white ones. The second point array contains a closed polygon: I need the name of an algorithm, which allows me to…
Glory to Russia
  • 17,289
  • 56
  • 182
  • 325
0
votes
0 answers

main title in densityplot into grid.arrange raster stack data

I am using the function densityplot() and grid.arrange(), this is the example: library(rasterVis) library(gridExtra) library(raster) f <- system.file("external/test.grd", package="raster") r <-…
rral
  • 554
  • 3
  • 20
0
votes
1 answer

Convert CAD to raster

How do printers convert the vectorial CAD graphics to dots in paper? I have a 50mmx50mm with 4095x4095 points "printing" system and I'd like to print some CAD files to it? Should I use the existing printing system? Or convert the CAD file to…
Leonardo Marques
  • 3,721
  • 7
  • 36
  • 50
0
votes
1 answer

Shapes-tool creating a vector mask every time, cannot seem to fix in CS3?

Every time I create a shape using the shape tool, it places a vector mask on top of this. I don't know how I enabled this but it does not do it on my laptop version, only my desktop. I can seem to disable this problem I am having. Even reinstalling…
Bryan Harrington
  • 991
  • 2
  • 17
  • 31