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
4
votes
1 answer

Efficiently displaying and zooming/panning large images in WPF

I'm currently working on an application with the need to display large engineering drawings that can be 8800x6800 or larger. The requirements state that the user should be able to pan and zoom the image. Ideally, they'd like to be able to annotate…
Steve Platz
  • 2,215
  • 5
  • 28
  • 27
4
votes
2 answers

Storage Commitment Service: why I really need a what is the real purpose?

I'm wondering why I really need of commitment after a c-store command; I can understand the commit is a sort of assurance about the fact the message was actually taken in charge by the storage and the storage takes the responsibility of it, but I…
Ghini Antonio
  • 2,992
  • 2
  • 25
  • 48
4
votes
3 answers

PIL will not import the _imaging C module: "*** The _imaging C module is not installed"

A bit of background from the PIL setup.py build: -------------------------------------------------------------------- PIL 1.1.7 SETUP SUMMARY -------------------------------------------------------------------- version 1.1.7 platform …
J.P.
  • 141
  • 1
  • 1
  • 7
4
votes
2 answers

Graphics.Drawstring looks nice in PictureBox but horrible in a Bitmap

I am trying to use DrawString to write text as an image and then rotate it 90 degrees. It works fine with both a bitmap or directly on a PictureBox, but the big difference is in the quality. The PictureBox text drawn has great quality and looks…
Dan
  • 905
  • 4
  • 10
  • 16
4
votes
1 answer

Create a Bigtiff (>4GB) File with Bitmiracle Libtiff.net

First I want to thank Bitmiracle for this great lib. Even while creating very big files, the memory footprint is very low. A few days ago I ran into a problem where I wanted to create a tiff file bigger than 4GB. I created the tiled tiff file…
Andreas
  • 3,843
  • 3
  • 40
  • 53
4
votes
1 answer

How to convert a image file loaded in memory to a ID2D1Bitmap in C++

I'm trying to convert a image file (a png, but could be anything) that I just extracted into memory from a compressed file to a ID2D1Bitmap to draw using Direct 2D. I tried to look for some documentation, but I can only find methods that receive…
Guilherme Amorim
  • 445
  • 5
  • 15
4
votes
3 answers

Converting a GUID to System.Drawing.Imaging.ImageFormat

I store information about images in a database - also their ImageFormat (jpeg, png etc). Console.WriteLine(System.Drawing.Imaging.ImageFormat.Jpeg.Guid); Outputs: b96b3cae-0728-11d3-9d7b-0000f81ef32e I want to store this in the database as a…
Kjensen
  • 12,447
  • 36
  • 109
  • 171
4
votes
1 answer

Thin line removal in binary images using OpenCV

I'm currently using OpenCV for detecting blobs in a binary image. I'd like to erase small lines without changing the big objects. Here's an example: The original image is And I want to convert it into the following "Opening" didn't work, because…
4
votes
1 answer

Printing an Bitmap File

I wrote code to capture a screenshot and save it to a bitmap file in WPF. Now I want to send the bitmap to a printer scaled to the pagesize of the printer. How can I do this in WPF and C#?
sebastianmehler
  • 1,033
  • 1
  • 11
  • 23
4
votes
1 answer

C# & WPF - Cropping an image by using rectangle object

I currently have a Image in my project, onto which I have placed a rectangle (which moves when you press arrow keys). What I aim to do is to let the user move this rectangle to show which area of the image is to be the result after cropping. See…
Meh
  • 607
  • 1
  • 9
  • 19
3
votes
1 answer

Text Alignment With Perl Pango

I used Pango with Perl and It succeed rendering a right to left text perfectly (This mission is a nightmare ): The code : #!/usr/bin/perl -wT use strict; use warnings; use Pango; use Encode; my $surface = Cairo::ImageSurface->create('argb32', 400,…
user1129665
3
votes
3 answers

Image.FromStream: Parameter not valid

I am trying to create an image from a byte array. The byte array is created by a fingerprint scanner (cf CaptureFrame method). fwidth is 256 and fheight is 255. When I run the code below, I get System.ArgumentException: Parameter is not…
blueshift
  • 831
  • 2
  • 12
  • 24
3
votes
1 answer

(Python) Set a specific palette in an image using PIL or PyPNG

I have a bunch of images that I am working on separately, that fit back together after being worked on. I'd like to compress them to a 8 bit image in order to save size. I'm currently doing this with PIL by calling: image = image.convert('P',…
NightFalcon
  • 102
  • 1
  • 9
3
votes
1 answer

What's the formula for the combined transparency of two overlaid transparent images?

If I want to display one uniformly semi-transparent image, and then 'fade out' this image, gradually replacing it with another of the same transparency, while maintaining the combined transparency at a constant level during the transition, how do I…
mackenir
  • 10,801
  • 16
  • 68
  • 100
3
votes
1 answer

Why is the blurry image getting a better variance of laplacian score?

The following code finds the best-focus image within a set most of the time, but there are some images where it returns a higher value for the image that is way more blurry to my eye. I am using OpenCV 3.4.2 on Linux and/or Mac. import…
Eric Hansen
  • 187
  • 1
  • 1
  • 10