color-depth

Kinect Depth and Image Frames Alignment

人走茶凉 提交于 2019-11-29 04:17:10
I am playing around with new Kinect SDK v1.0.3.190. (other related questions in stackoverflow are on previous sdk of kinect) I get depth and color streams from Kinect. As the depth and RGB streams are captured with different sensors there is a misalignment between two frames as can be seen below. Only RGB Only Depth Depth & RGB I need to align them and there is a function named MapDepthToColorImagePoint exactly for this purpose. However it doesn't seem to work. here is a equally blended (depth and mapped color) result below which is created with the following code Parallel.For(0, this

Reducing color depth in an image is not reducin the file size?

和自甴很熟 提交于 2019-11-28 10:53:10
问题 I use this code to reduce the depth of an image: public void ApplyDecreaseColourDepth(int offset) { int A, R, G, B; Color pixelColor; for (int y = 0; y < bitmapImage.Height; y++) { for (int x = 0; x < bitmapImage.Width; x++) { pixelColor = bitmapImage.GetPixel(x, y); A = pixelColor.A; R = ((pixelColor.R + (offset / 2)) - ((pixelColor.R + (offset / 2)) % offset) - 1); if (R < 0) { R = 0; } G = ((pixelColor.G + (offset / 2)) - ((pixelColor.G + (offset / 2)) % offset) - 1); if (G < 0) { G = 0; }

How to capture depth data from camera in iOS 11 and Swift 4?

余生长醉 提交于 2019-11-28 07:49:02
I'm trying to get depth data from the camera in iOS 11 with AVDepthData, tho when I setup a photoOutput with the AVCapturePhotoCaptureDelegate the photo.depthData is nil. So I tried setting up the AVCaptureDepthDataOutputDelegate with a AVCaptureDepthDataOutput, tho I don't know how to capture the depth photo? Has anyone ever got an image from AVDepthData? Edit: Here's the code I tried: // delegates: AVCapturePhotoCaptureDelegate & AVCaptureDepthDataOutputDelegate @IBOutlet var image_view: UIImageView! @IBOutlet var capture_button: UIButton! var captureSession: AVCaptureSession? var

Kinect Depth and Image Frames Alignment

ⅰ亾dé卋堺 提交于 2019-11-27 18:17:34
问题 I am playing around with new Kinect SDK v1.0.3.190. (other related questions in stackoverflow are on previous sdk of kinect) I get depth and color streams from Kinect. As the depth and RGB streams are captured with different sensors there is a misalignment between two frames as can be seen below. Only RGB Only Depth Depth & RGB I need to align them and there is a function named MapDepthToColorImagePoint exactly for this purpose. However it doesn't seem to work. here is a equally blended

How can I check the color depth of a Bitmap?

☆樱花仙子☆ 提交于 2019-11-27 04:53:52
I'm working on an application that prints a folder of image files, including JPEG and TIFF. The TIFF images are usually Black and White (1bpp). After loading the image, I want to determine if the image is Color or B&W or Grayscale so I can send the image to the right printer (color printer or black and white printer). I'm using the Bitmap constructor image = new Bitmap(filename); to load the image. EDIT: The answer to check the pixel depth is great for B&W. Any ideas on checking if the image is grayscale without iterating through every pixel? The proper way to check this is: For JPEG files you

How can I check the color depth of a Bitmap?

生来就可爱ヽ(ⅴ<●) 提交于 2019-11-26 11:24:56
问题 I\'m working on an application that prints a folder of image files, including JPEG and TIFF. The TIFF images are usually Black and White (1bpp). After loading the image, I want to determine if the image is Color or B&W or Grayscale so I can send the image to the right printer (color printer or black and white printer). I\'m using the Bitmap constructor image = new Bitmap(filename); to load the image. EDIT: The answer to check the pixel depth is great for B&W. Any ideas on checking if the