Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: point cloud generation
Date: Wed, 31 Dec 2008 03:54:01 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 28
Message-ID: <gjeqcp$6kj$1@fred.mathworks.com>
References: <gjemqe$2bq$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-03-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1230695641 6803 172.30.248.38 (31 Dec 2008 03:54:01 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Wed, 31 Dec 2008 03:54:01 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1343420
Xref: news.mathworks.com comp.soft-sys.matlab:509288


"maya" <mayaeapen@googlenews.com> wrote in message <gjemqe$2bq$1@fred.mathworks.com>...
> can anybody suggest a method to to fiind the co-ordinates of the points on CT slices
> (CT slices contain the intensity values of the points)
---------------------------------------------------------------------------------
maya:
This will find coordinates of a certain value (88 in this example)
clc;
close all;
% Read in a slice image from MATLAB demo images.
sliceImage = imread('mri.tif');
% Display it.
subplot(1,2,1);
imshow(sliceImage);

% Let's look for values of 88;
valueToLookFor = 88;
[rows columns] = find(sliceImage == valueToLookFor);
% Every index from 1 to length(rows) gives the row and column
% of a pixel that has value of 100 if you look in the rows() array and the columns()
% array in the same index for each.

% Binarize the image and display those values with 100.
binarizedImage = (sliceImage == valueToLookFor);
subplot(1,2,2);
imshow(binarizedImage);

Regards,
ImageAnalyst