convert uint16 image (data) to uint8 image (data)

Started by icemare2000 in Matlab DSP13 years ago 3 replies

Hello! I want to convert uint16 data to uint8 data. I try with uint8 function but it returns only 255. Ok i understand, what is more than 255...

Hello! I want to convert uint16 data to uint8 data. I try with uint8 function but it returns only 255. Ok i understand, what is more than 255 in original image (uint16) rounds to 255. Is there any function that does also rescaling data from range [0 65535] to [0 255]. Thank you!!! Marko


code for sum and difference hisograms of an image

Started by veera raghav in Matlab DSP14 years ago

hai friends, can any one from our gruop help me in writing code for "Sum and difference histograms of an image" , so that i can caluculate...

hai friends, can any one from our gruop help me in writing code for "Sum and difference histograms of an image" , so that i can caluculate the features like ENTROPY, CONTRAST, HOMOGENITY,CORRELATION etc., And also please let me known whether this approach is better when compared with CO-OCCURRENCE MATRIX. with regars: Raghav


magnitude of FFT of an image

Started by gandhi mathi in Matlab DSP18 years ago

Hai, how can I get the magnitude of the FFT of an image. gandhi

Hai, how can I get the magnitude of the FFT of an image. gandhi


Hi

Started by bakoguz in Matlab DSP19 years ago

I have a problem of for loops. I saw the messages about them but it did not help me. I want to filter my matrix(actually an...

I have a problem of for loops. I saw the messages about them but it did not help me. I want to filter my matrix(actually an image) by a filter and I want to convolve(2D) my filter with my image. If I use for loops, I need two of them, but the execution is too slow. Can


Boundary Detection using MATLAB

Started by adityanadkarni02 in Matlab DSP17 years ago

Does anyone have any experience on detecting a boundary of a 2D image using MATLAB and/or obtaining the co-ordinates of points...

Does anyone have any experience on detecting a boundary of a 2D image using MATLAB and/or obtaining the co-ordinates of points along the boundary of a 2D image ? Please let me know. Thank You, Aditya


Image Processing Toolbox - Image transformation

Started by mitchisu in Matlab DSP15 years ago

I am using the cpselect function in order to identify certain points in two images. I then try to transform these images with...

I am using the cpselect function in order to identify certain points in two images. I then try to transform these images with a linear conformal mapping. My trouble is this: the two images are slightly shifted in the x and y dir. When using the tool box I can only seem


rows and columns of an image

Started by matlaborioso in Matlab DSP17 years ago 1 reply

Dears Matlab users. Hi: I want to know how could I know the number of rows and colums of an image. I mean, I select with some...

Dears Matlab users. Hi: I want to know how could I know the number of rows and colums of an image. I mean, I select with some function the element (x,y) of a matrix and I want to know the values of x and y (the row and the column that these values represents). What is the func


Intensity Profile

Started by "ambika.shyam" in Matlab DSP12 years ago 1 reply

Hi Everybody, I am a newbie to Matlab ..I am facing problem while plotting the intensity profile for the entire image.... Can...

Hi Everybody, I am a newbie to Matlab ..I am facing problem while plotting the intensity profile for the entire image.... Can anybody suggest me the fuction which supports to retrieve the intensity values for each pixel in the Image.. Thanks in Advancce...I need this help very urgently... With Regards, Ambika.S


simple images in GUI

Started by nlauzier in Matlab DSP17 years ago 1 reply

Hi! I need to put a logo in a GUI, but I don't want to make any image processing stuff on it. I've use the imread and the image...

Hi! I need to put a logo in a GUI, but I don't want to make any image processing stuff on it. I've use the imread and the image commands but it takes a lot of time since matlab convert the picture in a matrix. Is there a way to "fastload" the picture in the GUI? I


Image Registration..

Started by karthikkalathi in Matlab DSP16 years ago

Hai everybody, I am trying to register two color images(one is the reference and the other is the rotated as well as shifted and...

Hai everybody, I am trying to register two color images(one is the reference and the other is the rotated as well as shifted and scaled) using Log polar transform.Here is the algorithm: I first converted the color to gray scale image Then applied fourier transform


iptregistry.dll ??

Started by Parminder in Matlab DSP16 years ago

hi I have been working ona video watermarking code, in which i have used some image processing functions of image processing...

hi I have been working ona video watermarking code, in which i have used some image processing functions of image processing toolbox. Everything works fine as a matlab .m file, but if I compile the program into a .C executable file., then it gives the follwing er


Image segmentation and tracking .... HELP!!! anyone got a clue?

Started by skms125 in Matlab DSP10 years ago 1 reply

HI, I would appreciate some help.... I am trying to write a program in MATLAB that will segment moving objects, for example cars, from a...

HI, I would appreciate some help.... I am trying to write a program in MATLAB that will segment moving objects, for example cars, from a series of images (extracting each frame from a video) and that superimposes on each object its bounding box. Has any one got an idea? The images are RGB. and the bounding boxes must be seen on the RGB image not binary or grayscale.


Creating a symbolic 2D from spline format

Started by in Matlab DSP17 years ago

Perhaps any of you has been dealing with this issue that has stopped me for some time. I have built a spline approximation to...

Perhaps any of you has been dealing with this issue that has stopped me for some time. I have built a spline approximation to an image, thus giving me a surface representation. I must do operations with this spline-approximated image and its gradient (sum, prod), in order to i


Fast Fourier Transform

Started by k.al...@surrey.ac.uk in Matlab DSP13 years ago 1 reply

HI All, Could you please let me know how I can calculate FFT to biary image? The image is Interfile file, that is raw data, in short integer...

HI All, Could you please let me know how I can calculate FFT to biary image? The image is Interfile file, that is raw data, in short integer coded on 2 bytes. The matric size is 128*128. Please help me as I am not familiar with MatLab. Khalid Alzimami Department of Physics School of Electronics & Physical Sciences University of Surrey Guildford, Surrey, GU2 7XH UK tel. +4...


Hilbert transform of 2D image

Started by basanta4 in Matlab DSP14 years ago

Hi I am trying to Hilbert transform a 2D image using the function "hilbert.m". But it is not working as the imaginary part is always coming...

Hi I am trying to Hilbert transform a 2D image using the function "hilbert.m". But it is not working as the imaginary part is always coming zero. Can any body help me in this regard?


MAT files conversion

Started by junejonoman in Matlab DSP16 years ago 1 reply

Dear All Does anyone know how to convert a .MAT file into an image file The basic problem is that I am using the wavelet toolbox...

Dear All Does anyone know how to convert a .MAT file into an image file The basic problem is that I am using the wavelet toolbox which saves the image compression results in a Mat file so I need to convert it into some standard form to see the result another does anyone


Please help on image analysis [1 Attachment]

Started by ravi shastri in Matlab DSP10 years ago

Hai every one , this sis Ravi shastri iam doing my m.Tech project on image analysis to determine the particle size, i facing some errors in my...

Hai every one , this sis Ravi shastri iam doing my m.Tech project on image analysis to determine the particle size, i facing some errors in my code.here i want to do the calculations using matlab and that resut should be enter in Excel sheet. please any on help me regrading. if some one helps me iam very greatful to them . the code is clear all; clc; close all; str_path = ''; str...


Bitwise Operation on Char type of Array and an Image

Started by msnustian in Matlab DSP13 years ago

hi all, Can anyone tell me how can i perform bitwise opertions like 'bitand' with following input i) image of bmp type ii) text...

hi all, Can anyone tell me how can i perform bitwise opertions like 'bitand' with following input i) image of bmp type ii) text array I really need a help. Thanks in advance, nustian.


How to normalize an image to zero mean and unit variance

Started by verylijing in Matlab DSP12 years ago

Good everyone, I am working on face recognition. I need your help on how to normalize an image to zero mean and unit variance in MATLAB. In...

Good everyone, I am working on face recognition. I need your help on how to normalize an image to zero mean and unit variance in MATLAB. In addition, I will also appreciate simple explanation on it. Thank you very much. Lijing


fft2 filtered image recover

Started by p3dr0s4 in Matlab DSP16 years ago 1 reply

Hi I need your help, can anyone tell me how I could recover the original image from a filtered one knowing the filter impulse...

Hi I need your help, can anyone tell me how I could recover the original image from a filtered one knowing the filter impulse response and using the fft2 matlab function. regards Pedro Pedrosa