Questions tagged [imaging]

Anything related to digital imaging, i.e. the theory, the technology and the techniques about acquiring, representing, processing and rendering digital images. This is a term with a rather broad meaning: consider using a more specific tag if it applies to your use case (e.g. use [image-processing] tag if the question is specifically about processing and not rendering).

Anything related to digital imaging, i.e. the theory, the technology and the techniques about acquiring, representing, processing and rendering digital images. This is a term with a rather broad meaning: consider using a more specific tag if it applies to your use case (e.g. use tag if the question is specifically about processing but not about rendering).

468 questions
15
votes
4 answers

add local image file in R presentation

I'm trying to include one imaging file (.png) using R markdown for R presentation. I followed the suggestion from: How to import local image using knitr for markdown but by using ![title](my.png), I get this error: Error: unexpected '[' in…
ponyhd
  • 491
  • 1
  • 4
  • 19
15
votes
2 answers

Easiest way of saving wpf Image control to a file

I have a Image control inside my wpf application, which has a large image inside of it, but the control itself is only 60x150, this means it only shows a certain portion of this image. What is the easiest way of saving the visible portion to a…
Meh
  • 607
  • 1
  • 9
  • 19
15
votes
3 answers

How do you convert a byte array to a Bitmap instance (.NET)?

I am working with cameras (in this case monochrome) in VB.NET. The API of the cameras is in C++ and the manufacturer provides wrappers. As is typical in these cases, the image is returned as a Byte array. In my particular case it's 8 bits per pixel…
darda
  • 3,597
  • 6
  • 36
  • 49
12
votes
1 answer

How to save an image in its original format?

How can I save an Image with its original encoding? It seems that the only way to save an Image is by using a BitmapEncoder but I don't know how I can get the correct format from the image. Example: Clipboard.GetImage() returns a InteropBitmap which…
Patrick Klug
  • 14,056
  • 13
  • 71
  • 118
11
votes
5 answers

Generate image file with low bit depths?

bpp = bits per pixel, so 32bpp means 8/8/8/8 for R/G/B/A. Like .NET has an enum for these "System.Drawing.Imaging.PixelFormat". Now once I have a Bitmap or Image object with my graphics, how would I save it to a file / what format would I use? What…
Robin Rodricks
  • 110,798
  • 141
  • 398
  • 607
11
votes
1 answer

Unsupported Pixel Format of source or template image. AForge Imaging

I am getting the following Exception at ProcessImage(bitmap1, bitmap2); Unsupported Pixel Format of source or template image and this is my code: public static double FindComparisonRatioBetweenImages( System.Drawing.Image one,…
Charlie
  • 4,827
  • 2
  • 31
  • 55
11
votes
4 answers

How can I get the depth of a jpg file?

I want to retrieve the bit depth for a jpeg file using Python. Using the Python Imaging Library: import Image data = Image.open('file.jpg') print data.depth However, this gives me a depth of 8 for an obviously 24-bit image. Am I doing something…
needthehelp
  • 113
  • 1
  • 1
  • 5
11
votes
5 answers

"IOError: decoder zip not available" : Ubuntu Python PIL

I am trying to get the sample heatmap.py running from: http://jjguy.com/heatmap/ #image.py import heatmap import random if __name__ == "__main__": pts = [] for x in range(400): pts.append((random.random(), random.random() )) …
cmacdona101
  • 175
  • 1
  • 2
  • 11
11
votes
4 answers

Image comparison algorithm that ignores brightness

I am looking for an algorithm that I can use to compare two images and determine if there is something significantly different between the two. By "significant", I mean, if you took two photos of a room and a large spider was clearly on the wall in…
Johann
  • 27,536
  • 39
  • 165
  • 279
10
votes
2 answers

Disable direct access to images

I am making a little family photo album, with the intention to maybe open it to other people to store images later. I upload the images to ~\images\, then resize them 3 times (Normal view ... thumbnail and a tiny version) and move them to…
Craig
  • 18,074
  • 38
  • 147
  • 248
10
votes
1 answer

WICConvertBitmapSource BGR to Gray unexpected pixel format conversion

I am using WICConvertBitmapSource function to convert pixel format from BGR to Gray and I'm getting unexpected pixel values. ... pIDecoder->GetFrame( 0, &pIDecoderFrame ); pIDecoderFrame->GetPixelFormat( &pixelFormat ); //…
cubiii
  • 359
  • 3
  • 11
10
votes
4 answers

OCR engines designed for screen-reading

Are there any OCR engines designed for identifying text in screen-captured images rather than scanned text? I have a project where I need to retrieve and identify text in an application, and none of the OCR engines I've tried so far have faired well…
Erik Forbes
  • 35,357
  • 27
  • 98
  • 122
10
votes
9 answers

Python imaging alternatives

I have python code that needs to do just a couple simple things to photographs: crop, resize, and overlay a watermark. I've used PIL, and the resample/resize results are TERRIBLE. I've used imagemagick, and the interface and commands were designed…
Paul McMillan
  • 19,693
  • 9
  • 57
  • 71
9
votes
5 answers

Imaging Question: How to determine image quality?

I'm looking for ways to determine the quality of a photography (jpg). The first thing that came into my mind was to compare the file-size to the amount of pixel stored within. Are there any other ways, for example to check the amount of noise in a…
Mats
  • 14,902
  • 33
  • 78
  • 110
9
votes
2 answers

Is there a Python library to create thumbnails for various document file formats?

I'd like to generate thumbnails from various "document" file formats such as odt, doc(x) and ppt(x) but also mp4, psd, tiff (and possibly others) from a Python application. As far as I know for each of these formats there is at least one open source…
Felix Schwarz
  • 2,938
  • 4
  • 28
  • 41
1
2
3
31 32