Straightening Image from RF data
이전 댓글 표시
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
Image Analyst
2012년 9월 1일
편집: Image Analyst
2012년 9월 1일
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?
채택된 답변
추가 답변 (1개)
Darshan
2013년 4월 3일
0 개 추천
카테고리
도움말 센터 및 File Exchange에서 Image Processing and Computer Vision에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!