Getting only red pixels out from an image?

Started by icearie55 in Matlab DSP14 years ago

Hi all, let's say i got an image after the rgb2hsv conversion. So, using hue as angle definition after normalised as 1,v and s as 1 ...

Hi all, let's say i got an image after the rgb2hsv conversion. So, using hue as angle definition after normalised as 1,v and s as 1 how should i go about coding ,in pixels, to find red pixels only in an image let's say for i =1, for j = 1, what should i equate to to get all the red pixels out from the image?


image processing

Started by Nidur SINGH in Matlab DSP14 years ago

hi all. I have one question for people who are working in Image processing area.Is there facilty available in matlab to segment the 3D image...

hi all. I have one question for people who are working in Image processing area.Is there facilty available in matlab to segment the 3D image toget the section views like MRI scan images. plz confirm it as soonas possible bye to all Nidur


image bands in matlab

Started by nourhan_breem in Matlab DSP12 years ago

hello if anyone can help me in specify image bands using matlab, plzzz replay as soon as possible this is my image registration algorithm...

hello if anyone can help me in specify image bands using matlab, plzzz replay as soon as possible this is my image registration algorithm in which step 8 is related to image band 1. Apply FFT to images I1 and I2 ? F1(x, h) and F2(x, h); 2. Compute the absolute values of F1(x, h) and F2(x, h); 3. Apply a high pass filter to the absolute values to remove low freque...


Re: Batch Image Processing

Started by cole...@gmail.com in Matlab DSP10 years ago

What if the my images numbering is this format DSC_001, DSC_002,......DSC_500? how do I write alter the code to suit this? skeleton of the code...

What if the my images numbering is this format DSC_001, DSC_002,......DSC_500? how do I write alter the code to suit this? skeleton of the code shud b something like this for i = 1 : 500 fname = [pic num2str(i)]; image = imread(fname,'bmp'); % do contrast enhancement% imwrite(image,fname,'bmp'); end > > Hi, > > I have a specific problem in Image Processing. I have an i


Entropy of image

Started by Prateek Shrivastava in Matlab DSP16 years ago 1 reply

Hi all, In the calculation of the entropy of an image, ENTROPY = - SIGMA(p log p ) j j 2 j how can we define the parameter...

Hi all, In the calculation of the entropy of an image, ENTROPY = - SIGMA(p log p ) j j 2 j how can we define the parameter 'probability' for an image? Regards, Prateek.


Image procesing

Started by cesar acosta in Matlab DSP11 years ago

HI, I want to "filter" an image and only left a color, in other words, i want to supress all color that arent the color choosen. I have...

HI, I want to "filter" an image and only left a color, in other words, i want to supress all color that arent the color choosen. I have read the both demo of image segmentation but i really dont understand it. Any ideas ?? Thanks in anvance. Regars, Cesar Acosta


image filter

Started by kianogo in Matlab DSP15 years ago

Anyone can help with designing exponentially increasing or decreasing image filter? the filtered image looks right but the...

Anyone can help with designing exponentially increasing or decreasing image filter? the filtered image looks right but the amplitudes are wrong !! s=10.*rand(8); %signal [f1 f2] = freqspace(8,'meshgrid'); r = sqrt(f1.^2 + f2.^2); F=exp(r.*30); FS=S.*F;


Measure intensity of grayscale image

Started by Syed Nabi Hossain in Matlab DSP11 years ago

Hi, I am using MATLAB R2007a. I am trying to find the number of pixels and each pixel intensity in a given image in simulink. I want to...

Hi, I am using MATLAB R2007a. I am trying to find the number of pixels and each pixel intensity in a given image in simulink. I want to find this for the entire Image. Waiting for the reply as soon as Possible. Thanks in Advance, Syed


Image Segmentation by Quadtree Decomposition

Started by albakrif in Matlab DSP14 years ago

Dear all I'm working on image analysis using quadtree decomp, but I don't know how I can reconstruct the image after applying the...

Dear all I'm working on image analysis using quadtree decomp, but I don't know how I can reconstruct the image after applying the command S = qtdecomp(I,threshold,[mindim maxdim]) Plz if any one can help me with the appropriate command.


Divide image into sub-images

Started by John Adedapo Ojo in Matlab DSP10 years ago 1 reply

Hi all, I am working on image pre-processing. So, in trying to implement a method described in a journal paper, I tried to divide an image into...

Hi all, I am working on image pre-processing. So, in trying to implement a method described in a journal paper, I tried to divide an image into subimages and perform some preprocessing. the challenge was that the pixel info are not being copied into the new sub-images, they are just plain. Please help


code for grey level co-occurrence matrix(GLCM)

Started by raghav_bme in Matlab DSP13 years ago

hai friends, i need matlab code for getting GLCM of an image and also calculate the different features from it like entropy, inertia,...

hai friends, i need matlab code for getting GLCM of an image and also calculate the different features from it like entropy, inertia, homogenity etc., by using this i want to segment the medical image i.e., the mri image of head. with regards: raghav


Dividing an Image into smaller equal parts

Started by knenny2000 in Matlab DSP14 years ago

Hi all, I am trying to divide a 250x250 image into 25 equal parts each having 50x50 pixels. To divide the image into small parts is not...

Hi all, I am trying to divide a 250x250 image into 25 equal parts each having 50x50 pixels. To divide the image into small parts is not difficult, however when the number of smaller parts of the image gets large it gets quite complicated. Do you know of anything which makes it easier? Thanks Kenny


mrf based segmentation

Started by sonali mehra in Matlab DSP13 years ago

hi all, i am working on image compression, i have encountered a problem while implementing mrf for image segmentation. Could anyone of u...

hi all, i am working on image compression, i have encountered a problem while implementing mrf for image segmentation. Could anyone of u help me by suggesting any link or code source for image segmentation using Markov Random Fields. Please help me. Thanks in advance sonali


Using kmeans for an image - urgent help needed

Started by sure...@gmail.com in Matlab DSP12 years ago

hi, I am a beginner to Matlab. need help in using kmeans in matlab. I have an image. lets take Lena.jpg img=imread('Lena.jpg'); [h s...

hi, I am a beginner to Matlab. need help in using kmeans in matlab. I have an image. lets take Lena.jpg img=imread('Lena.jpg'); [h s v]=rgb2hsv(img); //here i get h=Hue, s=Saturation and v=intensity of the image now, how can i call kmeans function for h , s,v separately, what parameters to be passed. here h is 512*512 matrix. and how can i construct the clustered/segmented image...


how can i takt wavelet transform from an image and then inverse(transform) it ?

Started by ali_khodaie2002 in Matlab DSP10 years ago 1 reply

hi my dear freinds around the world, i wanted to transform(dwt) an image(barbara)and inverse it.it is my first time i have worked with dwt.these...

hi my dear freinds around the world, i wanted to transform(dwt) an image(barbara)and inverse it.it is my first time i have worked with dwt.these are my codes: X=((imread('barbara.bmp'))); [cA,cH,cV,cD] = dwt2(X,'haar'); Y = idwt2(cA,cH,cV,cD,'haar'); figure,imshow(Y) but the resulting image isn`t like the first image . what `s wrong with my codes? thanks in advance.


Batch Image Processing

Started by roopireddy in Matlab DSP15 years ago 3 replies

Hi, I have a specific problem in Image Processing. I have an image in BMP format and I perform contrast enhancement on this...

Hi, I have a specific problem in Image Processing. I have an image in BMP format and I perform contrast enhancement on this image and write it in jpeg format. But, the problem is I have to perform this operation on 500 images. Can I write a matlab script file to perform batch


image processing

Started by Anonymous in Matlab DSP18 years ago

hello, i've a little problem!! i would like to extract from an image with some objects, the center of inertia of each object... ...

hello, i've a little problem!! i would like to extract from an image with some objects, the center of inertia of each object... i don't have the image processing toolbox so i can't use the blob descriptors and the blob m files... HELP ME PLEAZ Thx by advance


How to obtain the result faster when dealing with array?

Started by vin_ng_2000 in Matlab DSP16 years ago

I find that it is very time-consuming when using for loop to access the array. Here is my problem: I have to construct a 3D...

I find that it is very time-consuming when using for loop to access the array. Here is my problem: I have to construct a 3D array by comparing two image files. I have to compare the pixel (r, c) in the left image and (r, c-d) in the right image, where d is 0 to 20.


viewing a file as an image..??...

Started by Khubaib in Matlab DSP17 years ago 3 replies

Dear members..i am an electrical engg.. And doing an image processing project. The problem is that i want to view a Y pixels file...

Dear members..i am an electrical engg.. And doing an image processing project. The problem is that i want to view a Y pixels file (.Y file) as an image. So, that a print of it can be taken..Is there any command in matlab that can take a file ( having pixel values in it), and pr


Fit image on pushbutton

Started by sjoh...@condor.cnbc.cmu.edu in Matlab DSP13 years ago

Hi, I am using CData property of pushbutton to insert image on a button control. Is there anyway to stretch or shrink the image to fit...

Hi, I am using CData property of pushbutton to insert image on a button control. Is there anyway to stretch or shrink the image to fit the pushbutton dimensions? In my application, the size of the pushbutton may vary based on other factors. Thanks, Sindy