DSPRelated.com

Converting image from grayscale to RGB

Started by sajjad_strong in Matlab DSP12 years ago 4 replies

Hi I am trying to write a Matlab program and having hard time figuring out how to convert back an image which have been converted to gray...

Hi I am trying to write a Matlab program and having hard time figuring out how to convert back an image which have been converted to gray scale to RGB for instance : IRG = imread('someimage.bmp'); X = rgb2gray(IRG); after doing my operations on X how can I convert it back to RGB I'll really appreciate it if anyone can help me


Fast Fourier Transform

Started by k.al...@surrey.ac.uk in Matlab DSP17 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...


Wavelet compression

Started by Pavel Havranek in Matlab DSP22 years ago

Hi all, I work with MATLAB R11 on image compression by wavelets. I need compress ratio about 150 to 1 but MATLAB has worse result...

Hi all, I work with MATLAB R11 on image compression by wavelets. I need compress ratio about 150 to 1 but MATLAB has worse result after compresion as commercial product (LuraTech). I need compress image 176x176 to 256 numbers (char) but I don't know which coeficient I must save. I ca


Digitial image correlation for strain measurement

Started by Madhusudhanan Balasubramanian in Matlab DSP20 years ago

Hello, I'm using the suggested newton-raphson iterative scheme for solving the 6 deformation parameters for strain measurement...

Hello, I'm using the suggested newton-raphson iterative scheme for solving the 6 deformation parameters for strain measurement using digital image correlation. However my results do not converge so well. Does anyone have any experience in DIC for strain measurement?


MatLab interfaced with Camera ---> nubie

Started by pakigenius786 in Matlab DSP21 years ago 1 reply

Can i interface a camera with MatLab. Take the video, strip it down so its something called a "binary image" and feed it back...

Can i interface a camera with MatLab. Take the video, strip it down so its something called a "binary image" and feed it back wireless to a microcontroller (PIC). what is a binary image and how do i use it? Thank you VERY MUCH. all help is greatly appreciated. Mohamm


simple images in GUI

Started by nlauzier in Matlab DSP21 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


TIFF Files / Matlab

Started by Daljit Dave Singh in Matlab DSP20 years ago

Friends, I am working on TIFF files, and when I open them on Windows using IMAGE, and SGI Unix using XV, I get 2 layers of images ...

Friends, I am working on TIFF files, and when I open them on Windows using IMAGE, and SGI Unix using XV, I get 2 layers of images ovelapping. Wondeing if some one knows, how to open without overlaping, thanks, Dave TIFF: Tagged Image File Format Other keywords, CATSCAN,


Image Format (RGB)

Started by moacirponti in Matlab DSP21 years ago

Hi. I'm working on a project that includes multiespectral images (from a tomography scanner). The objective is identify...

Hi. I'm working on a project that includes multiespectral images (from a tomography scanner). The objective is identify materials in that images, using pattern recognition techniques. My PROBLEM: Matlab have an image format that handle 3 spectros (RGB), but my project ha


Using MATLAB in C++

Started by Vikram Rana in Matlab DSP17 years ago

Hi all, I am working on image processing in C++.And I am suppose to access the array made by imread command of MATLAB i.e. if...

Hi all, I am working on image processing in C++.And I am suppose to access the array made by imread command of MATLAB i.e. if I=imread('filename'); this gives I array the values so i am to read the image in Matlab and then process in C++ and then save back the file using MATLAB. so my main processing in a way is in C++ for optmising. Now i want to kno the steps i can do tha...


Organisation of spatial frequencies in FFT2 matrix

Started by Anonymous in Matlab DSP19 years ago

Dear all, My questions relate to the filtering of the 2-d Fourier transform of a square image for a certain range of spatial...

Dear all, My questions relate to the filtering of the 2-d Fourier transform of a square image for a certain range of spatial frequencies, using Matlab. The image is Fourier analysed using FFT2 and is arranged with the zero-frequency component in the middle of the spectrum us


Image Processing Help required! Passing of data from VB.net to Matlab

Started by chanfan_main in Matlab DSP16 years ago 1 reply

Hi !! I'm a student and would like to seek help on passing of data from VB.net to a Matlab program. I'm required to draw an unfilled...

Hi !! I'm a student and would like to seek help on passing of data from VB.net to a Matlab program. I'm required to draw an unfilled ellipse on an image using VB.net and passing this coordinates occupied by the unfilled ellipse onto matlab program that reads the same image as well as reading the coordinates of the unfilled ellipse. May i know how can i go about doing that? How do ...


RE: Re Image Processing

Started by Anonymous in Matlab DSP23 years ago

Presuming that "im" is an image, "if (double(im(x1,y1)) ==1)" just accesses the pixel at x1, y1, "double" converts that value...

Presuming that "im" is an image, "if (double(im(x1,y1)) ==1)" just accesses the pixel at x1, y1, "double" converts that value to double precision floating point, and then the if statement checks to see if the pixel value was 1. Most Matlab


how to find centroid of an object in an image???

Started by DXT_77 in Matlab DSP21 years ago 1 reply

hi every body, i have an image which has a picture of a ball in it and i want to find the centroid of that ball so when i...

hi every body, i have an image which has a picture of a ball in it and i want to find the centroid of that ball so when i display it on a 2dplot i know the exact pixel coord and then i can find it's real coord. the problem is i don't know how how to find or the formula f


Read series of image files

Started by Wiseto Agung in Matlab DSP23 years ago

Dear all, I'd like to read several image files, e.g images1.bmp, images2.bmp, ... , imagesN.bmp. How can I read it...

Dear all, I'd like to read several image files, e.g images1.bmp, images2.bmp, ... , imagesN.bmp. How can I read it automatically using "for" loop ? Any suggestion is welcomed. Thank you very much, Seto


Display value/matrix in GUI

Started by sven...@hotmail.com in Matlab DSP19 years ago 1 reply

Hello, I have made a GUI, in which i open an image and perform some operations on the image. I also calculated some values (MSE,SNR...) and an...

Hello, I have made a GUI, in which i open an image and perform some operations on the image. I also calculated some values (MSE,SNR...) and an 8x8 matrix. How can i display these values and the matrix on my GUI ?? Thx in advance, Sven.


Downsample Matrix

Started by maxfoxchina in Matlab DSP21 years ago 1 reply

Hey folks, i do have a question about downsampling on matlab. There is an image of 400 x 400 points and i do need a matrix...

Hey folks, i do have a question about downsampling on matlab. There is an image of 400 x 400 points and i do need a matrix which downsamples the image to 200 x 200 points. I dont want to use the functions of matlab to resize it, just want to compute it by myself, or bett


Problems with using bwlabels with a coin counter

Started by matthew joyce in Matlab DSP18 years ago

Thanks to those who helped me with inverting the black and white image > > I = imread('H:\image\simple.png'); J = rgb2gray(I); figure,...

Thanks to those who helped me with inverting the black and white image > > I = imread('H:\image\simple.png'); J = rgb2gray(I); figure, imshow(I), figure, imshow(J); level = graythresh(J); BW = im2bw(J,level); BW=~BW; imshow(BW) > > BW1 = imfill(BW,'holes'); imshow(BW1) The next step that I want to do is use the bwlabel function. The problem that im having with it though is that I do


matlab error in my code

Started by VEDHANAYAKI LAKSHMANAN in Matlab DSP17 years ago 1 reply

hi, I am doing image stabilization project.I am using the following code to display last frame.while running i am getting the error...

hi, I am doing image stabilization project.I am using the following code to display last frame.while running i am getting the error is: Assignment has more non-singleton rhs dimensions than non-singleton subscripts.How should i debug the code. % play orig movie movie(H1,mov,1,movInfo.FramesPerSecond,[25 25 0 0]); % convert from indexed image seq to grayscale double [0,255] M = uint8(zero...


Particle analysis

Started by sandhya nageswaren in Matlab DSP16 years ago 1 reply

Hi all, I am a newbie in MATLAB. I am trying to do particle analysis on an image in MATLAB.I work with nanocrystals of varying sizes and...

Hi all, I am a newbie in MATLAB. I am trying to do particle analysis on an image in MATLAB.I work with nanocrystals of varying sizes and contrast. Basically what I am trying to do is count the number of cells in the image by setting thresholds and make measurements like area, perimeter, radius. The challenge with this work is that the nano crystals change both in contrast and circularity fr...


som toolbox

Started by barnali789 in Matlab DSP20 years ago

hi i need to implement self organizing neural neural networks with SOM toolbox, which i have downloaded (toolbox). I am...

hi i need to implement self organizing neural neural networks with SOM toolbox, which i have downloaded (toolbox). I am working with jpg MRI images. How do I pass my image data to the toolbox? which functions do i use to read my image data in the toolbox so that I can g