can FEM be used in image segmentation?

0

I'm looking for how to use FEM to segment a given image. It should be noted that the image is grayscale.

The main problem is that I still know how to make MATLAB (I'm starting to use it) to triangulate (because it's the simplest) of the image, I'm aware that there is a mesh function, but it's not what What do I need?

The idea behind this is to determine a method that optimizes the energy function of an image

%%%%
I=double(imread('*******.jpg'));
[Tx,Ty] = gradient(I);
[h,w] = size(I);

g = (sqrt(Tx.^2+Ty.^2)).^(1.6);

en1 = 0.5*sum(sum(Tx.^2+Ty.^2)); 
en2 = 0.5*sum(sum(g.*(T-I).^2));
alpha = en1/sqrt(en1^2+en2^2);
en = (alpha*en1 + sqrt(1-alpha^2)*en2)/(h*w) %<-function to optimizate with FEM

B = I>T;
figure(1),imagesc(B),colormap(gray)
%%%%

In theory this improves image characteristics (such as the preservation of textures).

    
asked by Ramramcr 30.05.2018 в 18:08
source

0 answers