imaging

Deference of YCrCb and YUV

非 Y 不嫁゛ 提交于 2021-02-10 14:28:43
问题 I was working on a image format converter, and I was trying to convert YcbCr to RGB. For the testing purpouse I was Looking for YcbCr formated image. Googling it always gives result of YUV, rather yCrCb. Are those formats same? is there any way to download (or convert) YCbCr Image ? 来源: https://stackoverflow.com/questions/29091813/deference-of-ycrcb-and-yuv

Deference of YCrCb and YUV

荒凉一梦 提交于 2021-02-10 14:28:02
问题 I was working on a image format converter, and I was trying to convert YcbCr to RGB. For the testing purpouse I was Looking for YcbCr formated image. Googling it always gives result of YUV, rather yCrCb. Are those formats same? is there any way to download (or convert) YCbCr Image ? 来源: https://stackoverflow.com/questions/29091813/deference-of-ycrcb-and-yuv

How Do I Change the Axis SimpleITK::ImageSeriesWriter Using?

不想你离开。 提交于 2021-01-29 05:57:06
问题 The SimpleITK::ImageSeriesWriter default to slice given 3D volume along Z-axis and write slices of 2D images in XY view. How do I change the axis so that the output is in XZ or YZ view? In another word, if the default Z axis slices are in Axial view, how do I get the slices of Coronal and Sagittal view? I tried the GitHub:FNNDSC/med2image's output xyz function. But the images array are blindly written, so sometimes the X and Y are transposed, or one of the axis are reversed(flipped). So I

Image Processing: What are occlusions?

岁酱吖の 提交于 2020-05-09 17:37:05
问题 I'm developing an image processing project and I come across the word occlusion in many scientific papers, what do occlusions mean in the context of image processing? The dictionary is only giving a general definition. Can anyone describe them using an image as a context? 回答1: Occlusion means that there is something you want to see, but can't due to some property of your sensor setup, or some event. Exactly how it manifests itself or how you deal with the problem will vary due to the problem

Memory Leak when Updating WPF Canvas Background

孤街浪徒 提交于 2020-05-01 06:03:36
问题 I'm sure the solution to this is simple but I'm left scratching my head so maybe someone can shed some light here. What I am doing is when my program starts I load an input file into a private variable (_bmpSource) and display it in a Canvas by creating an ImageBrush and setting the canvas's background. On a button click I modify the image by rotating it, and then display it by again setting the canvas's background property. It appears that I am mismanaging memory because the rotate/display

Memory Leak when Updating WPF Canvas Background

两盒软妹~` 提交于 2020-05-01 05:58:35
问题 I'm sure the solution to this is simple but I'm left scratching my head so maybe someone can shed some light here. What I am doing is when my program starts I load an input file into a private variable (_bmpSource) and display it in a Canvas by creating an ImageBrush and setting the canvas's background. On a button click I modify the image by rotating it, and then display it by again setting the canvas's background property. It appears that I am mismanaging memory because the rotate/display

Python PIL - Draw Circle [duplicate]

*爱你&永不变心* 提交于 2020-01-29 04:37:03
问题 This question already has answers here : Python PIL: How to draw an ellipse in the middle of an image? (2 answers) Closed 6 years ago . I am trying to draw a simple circle and save this to a file using the Python Imaging Library: import Image, ImageDraw image = Image.new('RGBA', (200, 200)) draw = ImageDraw.Draw(image) draw.ellipse((20, 180, 180, 20), fill = 'blue', outline ='blue') draw.point((100, 100), 'red') image.save('test.png') The point draw.point appears on the image, but the ellipse

How to implement an image or pdf viewer?

我与影子孤独终老i 提交于 2020-01-25 13:15:21
问题 for learning purposes I would like to know how to implement an image (and/or) pdf viewer on my own. I'm interested in the general approach to implement such a thing. I already read about the different formats on the net (tiff/pdf) so I found out that these files have a special format which describes where I have to look for a header, where the footer is and where the image information (in decrypted form) is. Because I think such a viewer works sth. like: opening the file reading different

Generate image file with low bit depths?

冷暖自知 提交于 2020-01-21 06:27:10
问题 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 image file format (JPEG/GIF/PNG) supports low bit-depths like 16bpp or 8bpp (instead of the usual 32bpp or 24bpp) 回答1: Try this: ImageCodecInfo pngCodec = ImageCodecInfo.GetImageEncoders().Where(codec => codec.FormatID.Equals(ImageFormat.Png.Guid))

Mapping values from a joint histogram back into the image spaces

十年热恋 提交于 2020-01-15 12:25:30
问题 I have two 8 bit grayscale images which are 166 by 256 pixels in dimension. I computed the joint histogram between them and found a few interesting clusters for which I want to map back the values in image space to locate where this corresponds. So for two images A and B (to which the values have already been accessed via numpy arrays) import numpy as np import matplotlib.pyplot as plt rows, cols = A.shape[0], B.shape[1] N = 256 # bins #### Numpy's method #H,xedge,yedge = np.histogram2d(A, B,