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
3
votes
3 answers

Precisely scale image

I am trying to precisely and predictably scale an image in C# to a different resolution, both up and down. When I open the resulting images with external tools such as Gimp, the results are not satisfying with my current settings. public Image…
just.me
  • 2,155
  • 5
  • 16
  • 25
3
votes
1 answer

How to add text to images with the CMYK ColorSpace in .NET 4

I am working on a project that at it's core involves adding text to an image, so as an example given a background image (B) and some text in a specified font, point size and font (A) the two are composited together to produce (C): The eventual…
Richard Slater
  • 6,313
  • 4
  • 53
  • 81
3
votes
0 answers

Calculating image size before sharing to email

In my application, I need to share JPEG images through email. If the image is too big, need to show a dialog to user to reduce the size with different options with estimated size, like Actual (Size) Large (Size) Medium (Size) And if user selects one…
coder
  • 312
  • 3
  • 12
3
votes
2 answers

Find distance from contour to a Point opencv C++

I would create a Matrix that has in the coloumn[i] the distances from a fixed Point (mass center(mc(i)) of a contour) to the Points of the contour[i]. This is the code where I find contours and mass centers: findContours(binMat, contours,…
3
votes
0 answers

How to display image from 2D integer array in Winforms application

I need to display a 2D array (UInt16[,]) as a 16 bit grayscale image within a Winforms application. The steps I need to take are (roughly): Build a Bitmap from the UInt16[,] array - note that I need to do this efficiently, as I am looking to…
Trekkie
  • 964
  • 1
  • 9
  • 32
3
votes
1 answer

Patient Orientation attribute: which value when the image doesn't depict body parts?

In DICOM General Image Module (C.7.6.1) Patient Orientation (0020,0020) is declared of type 2C (conditional). From DICOM standard documentation: Required if image does not require Image Orientation (Patient) (0020,0037) and Image Position…
Ghini Antonio
  • 2,992
  • 2
  • 25
  • 48
3
votes
1 answer

Is it possible to modify a WPF BitmapSource in memory 'unsafe'ly from another thread

I would like to do some processing of images in a WPF application. However, I would like to modify the pixels of a BitmapSource in memory at runtime. I'm currently managing to do this using 'unsafe' code against an old fashioned…
ConfusedNoob
  • 9,826
  • 14
  • 64
  • 85
3
votes
1 answer

Java Advanced Imaging: How to get the ImageLayout from a huge image?

I have a couple of huge images which can't be loaded into the memory in whole. I know that the images are tiled and all the methods in the class ImageReader give me plausible non zero return values for getTileGridXOffset(int),…
3
votes
1 answer

What's the simplest way to resize an image to a given bounded area?

I'd like to create a function, like: def generateThumbnail(self, width, height): """ Generates thumbnails for an image """ im = Image.open(self._file) im.thumbnail((width, height), Image.ANTIALIAS) im.save(self._path +…
ensnare
  • 40,069
  • 64
  • 158
  • 224
3
votes
2 answers

2D fit of a model to an image in Python

I want to fit a model (here a 2D Gaussian but it could be something else) with an image in Python. Trying to use scipy.optimize.curve_fit I have some questions. See below. Let's start with some functions : import numpy as np from scipy.optimize…
hadim
  • 636
  • 1
  • 7
  • 16
3
votes
0 answers

Python Pillow not producing true 1Bit Monochrome Image

In python, I'm using the following code to create a 1bpp image: import Image img = Image.open(filename) img = img.convert('1') pix = img.load() I found this code on Stack here: Can't format BMP image data to 1 bit per pixel in PIL This code…
Gernatch
  • 175
  • 3
  • 19
3
votes
1 answer

UWP Transparent png color overlay

I have an image in my UWP c# project, that is a transparent png with white foreground. I now want to change the white color from this png image into another color (like blueish). Example (note that the colored image does not have a transparent…
user3079834
  • 2,009
  • 2
  • 31
  • 63
3
votes
0 answers

C# Graphics.DrawImage() transparent png background

I'm developing an image editor application using C# with the help of the System.Drawing.Graphics class. The app must be able to operate on Windows and Linux as well. The scenario is simple, I have a background image (jpeg, 24bpp, not progressive),…
aniski
  • 1,263
  • 1
  • 16
  • 31
3
votes
1 answer

Using Multi Spec and R for batch Image Analysis

Is it possible to use R to enable a batch of images to be run through Multi Spec (or any other program - excluding ImageJ) instead of single image analysis? And if so how? I've attached images of exactly what I am looking for using the following…
Lewis
  • 33
  • 3
3
votes
0 answers

imwarp and transformPointsForward giving different results with the same warp

Trying to create an image panorama software I am creating a projective2d warp using 4 matching points on two different images to create a square.I then center both squares to zero and work out the difference between them using fitgeotrans i then…