Straightening Image from RF data
Mostrar comentarios más antiguos
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 comentarios
Image Analyst
el 1 de Sept. de 2012
Editada: Image Analyst
el 1 de Sept. de 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?
Respuesta aceptada
Más respuestas (1)
Darshan
el 3 de Abr. de 2013
0 votos
Categorías
Más información sobre Image Processing and Computer Vision en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!