Straightening Image from RF data
Show older comments
I have created an image in matlab from a set of data which I obtained experimentally. The issue I have is the tissue which I imaged is curved as it floats in water, this is seen the image I have.
I wrote a code to threshold the image so that it straightnes out but it does not seem to solve the problem. The thresholding just pushes the image on to the top and does not seem to do well.
Could you please give me some tips to solve this problem. The image screen shot and the thresholding technique I am using is shown below:
section = input('Size of each tissue section (mm): ');
sectionrows = (section*(rsize))/(newdepth);
sectionrows=round(sectionrows);
nsections = (sectionrows);
nsections =round(nsections);
reducedrsize = ceil(rsize/nsections);
remainder = mod(rsize,nsections);
Row = zeros(reducedrsize,colsize);
threshold =0.02;
newimage = zeros(rsize,colsize);
for j= 1:colsize
k = find(hil1(:,j)>threshold);
rowindex = min(k);
newimage(1:rsize-rowindex+1,j) = hil1(rowindex:end,j);
for i = 1:reducedrsize-1
Row(i,j)=max(hil1((i-1)*nsections+1:(i*nsections),j));
end
end
Sorry I cant seem to load the image here.
2 Comments
Image Analyst
on 1 Sep 2012
Edited: Image Analyst
on 1 Sep 2012
That's no good. We'd first have to do color segmentation. Just simply upload the pure gray scale image. I don't want pseudocoloring, tick marks, etc. Nothing except your original monochrome image.
Anyway, WHY does it need to be straightened? I bet you could make the measurements you need even though the tissue is curved. What do you want to measure? Length, area, intensity, or something else?
Accepted Answer
More Answers (1)
Darshan
on 3 Apr 2013
0 votes
Categories
Find more on Image Processing and Computer Vision in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!