How to plot a graph of a line of pixels of an image showing black to white intensity across it.
4 次查看(过去 30 天)
显示 更早的评论
Hi, I am completely new to Matlab and quickly need to use it to analyse an image I have. The image is black and white from a photo of 256 by 256 pixels and contains a beam. I would like to be able to specify a line of pixels across the image and plot a graph of the variation of white to black as I go along these pixels which should show a curve where my black beam is on a white(ish) background.
This image is obtained from a fourier transform (fft1) which makes the image greyscale (I think). I was told that typing 'plot(fft1(1,1:255))' is a good place to start from but it doesn't seem to plot a useful curve.
I have been told this is easy to do although I haven't found any relevant information, Any help would be much appreciated! Thanks, Graham
0 个评论
采纳的回答
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!