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
8
votes
2 answers

Determine image overall lightness

I need to overlay some texts on an image; this text should be lighter or darker based on the overall image lightness. How to compute the overall (perceived) lightness of an image? Found something interesting for single pixel: Formula to determine…
ʞᴉɯ
  • 5,376
  • 7
  • 52
  • 89
8
votes
1 answer

How to draw centered text onto a jpg using system.drawing in c#

I am using the following code to draw text onto a jpg image but it requires x/y coordinate percision on where to place the text. var bmp = new Bitmap("C:\\testing\\Given.jpg"); var gra = Graphics.FromImage(bmp); var text = "The Berman's"; var font…
Brian David Berman
  • 7,514
  • 26
  • 77
  • 144
8
votes
1 answer

Android page/edge detect and transform page. Convert to B/W tiff

Probably not looking for solution, but looking for guidance on this. This is to implement "document scanner" in our Android app. I need to do precisely this: Take image with camera (no problem) Detect page edges/corners (???) Allow user to…
katit
  • 17,375
  • 35
  • 128
  • 256
8
votes
1 answer

Android ImageReader get NV21 format?

I do not have a background in imaging or graphics, so please bear with me :) I am using JavaCV in one of my projects. In the examples, a Frame is constructed which has a buffer of a certain size. When using the public void onPreviewFrame(byte[]…
Gooey
  • 4,740
  • 10
  • 42
  • 76
7
votes
1 answer

Using pixel fonts in PIL

I am creating images using PIL that contain numerous exactly placed text strings. My first attempt was to convert pixel fonts into the pil-compatible format as described here. For example, I download the Silkscreen font and convert it: otf2bdf -p…
Vince
  • 3,325
  • 2
  • 23
  • 41
7
votes
3 answers

How to overlay segmented image on top of main image in python

I have an image in RGB and another segmented image in which the pixels have 3 values(segmented image). I want to overlay the segmented image on top of the main image as the segmented areas make contours over the main image such as image below. Here…
user1993
  • 97
  • 1
  • 3
  • 9
7
votes
2 answers

OpenCV grouping white pixels

I've done the hard work, turning my iSight camera on my MacBook into an infrared camera, converted it, set the threshold etc.. and now have an image that looks something like this: alt text My problem is now; I need to know how many blobs are on my…
tommed
  • 1,521
  • 2
  • 19
  • 33
7
votes
3 answers

How to implement pan/zoom on gigapixel bitmaps?

In my project, I'm using (uncompressed 16-bit grayscale) gigapixel images which come from a high resolution scanner for measurement purposes. Since these bitmaps can not be loaded in memory (mainly due to memory fragmentation) I'm using tiles (and…
Adriaan
  • 3,282
  • 1
  • 23
  • 31
7
votes
1 answer

Merge png images into single image in WPF

I'm looking for a way to Merge some PNG tile images into a big image. So I search and found some links. This is not answered properly. This is not tiling, it's good for overlaying images and this is not using WPF. So I'm making this…
Hossein Narimani Rad
  • 31,361
  • 18
  • 86
  • 116
6
votes
1 answer

How do you specify the specific Group 3 tiff compression?

Group 3 compress has 2 variations (Group 3 1D and Group 3 2D). When saving an image in Tiff format, there is only one option for Group 3 in the EncoderValue enumeration. Is there a separate parameter that controls this?
Adrian
6
votes
9 answers

Quick creation of fresh OS install for software testing

What do you recommend for quickly creating images for testing a software product (that needs hardware access - full USB port access)? Does virtualization cover this? I need to be able to quickly re-image the system to test from scratch again, and…
Abdullah Jibaly
  • 53,220
  • 42
  • 124
  • 197
6
votes
5 answers

Save WPF image with Shader effects applied

I have a WPF Image control with attached blur effect. Is there a way to save the image (with blur) without using RenderTargetBitmap? Thank you. UPDATE: I'm using now new custom effect which derives from System.Windows.Media.Effects.ShaderEffect. I…
Valentin V
  • 24,971
  • 33
  • 103
  • 152
6
votes
3 answers

Using PIL to detect a scan of a blank page

So I often run huge double-sided scan jobs on an unintelligent Canon multifunction, which leaves me with a huge folder of JPEGs. Am I insane to consider using PIL to analyze a folder of images to detect scans of blank pages and flag them for…
6
votes
1 answer

How to identify non-photograph or 'uninteresting' images using Python Imaging Library (PIL)

I have thousands of images and I need to weed out the ones which are not photographs, or otherwise 'interesting'. An 'uninteresting' image, for example, may be all one color, or mostly one color, or a simple icon/logo. The solution doesn't have to…
Danphe
  • 61
  • 3
6
votes
3 answers

C# TWAIN interaction

I'm trying to set up a C# application which uses TWAIN example from code project This works fine except that I need to cast Form to IMessageFilter and call IMessageFilter.PreFilterMessage() to catch TWAIN callbacks. Also I need to start this…
Valentin V
  • 24,971
  • 33
  • 103
  • 152
1 2
3
31 32