Rescale Depth RGB image between zeros and one?
Show older comments
Dear All, I have 1000 d-rgb images (unit16) and each image has different size. I want to normalize the image by resizing them to [0 1] interval. Could you please tell me if there is a function or an efficient algorithm which can do such operation. I transfer the image to double and single, but the scaled images become since 0 and 0.05 intervals. Bye the way the scale of d-rgb image is different from image to others which scaled from zero to greater than 3000.
Accepted Answer
More Answers (1)
Image Analyst
on 12 Dec 2014
1 vote
You can't resize the images to 0-1. How many pixels would that be? You need at least a 2 row by 2 column array to have an image. You can have, say 1000 pixels across or tall, and if you want you can define a spatial calibration factor such that 1000 pixels equals one unit of whatever distance measuring unit you want, such as meters.
Also explain what a "d-rgb" image is, as opposed to just a normal RGB full color image.
3 Comments
Image Analyst
on 12 Dec 2014
From the answer you accepted, it looks like you actually didn't want to resize your image like you said. You want to change the intensity range , not the size . To do that you can use the function mat2gray(). It scales an array with any range of values to the range 0-1. I also added the "kinect" tag for you.
Salem
on 12 Dec 2014
Categories
Find more on Kinect For Windows Sensor in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!