Semantic segmentation for grayscale image

5 visualizzazioni (ultimi 30 giorni)
Zara Khan
Zara Khan il 27 Giu 2022
Commentato: Walter Roberson il 30 Giu 2022
How can implement semantic segmentation for gray scale image? How to train that network?
  2 Commenti
Walter Roberson
Walter Roberson il 27 Giu 2022
Yes. At worst case, repmat() the grayscale along the third dimension to make it an RGB image.
Zara Khan
Zara Khan il 28 Giu 2022
I have also RGB images. But how to implement the concept ? Means how to train that network?

Accedi per commentare.

Risposte (2)

Image Analyst
Image Analyst il 27 Giu 2022
Start here:
I'm working on a simplified version where you simply just locate your input images, and labeled images folder but it's not ready to share yet.
  2 Commenti
Zara Khan
Zara Khan il 28 Giu 2022
Have gone through this link. Is it applicable for any image?
clc; clear all; close all;
data = load('triangleSegmentationNetwork');
net = data.net;
net.Layers;
I = imread('E:\image1.png');
[C,scores] = semanticseg(I,net,'MiniBatchSize',32);
B = labeloverlay(I, C);
figure
imshow(B);
figure
imagesc(scores)
axis square
colorbar
BW = C == 'triangle';
figure
imshow(BW)
Not working
Image Analyst
Image Analyst il 28 Giu 2022
If the Mathworks demo isn't working then make sure your input is correct (whether color image or gray scale, and size of image, if that matters). If it is correct then call tech support and tell them the demo doesn't work.

Accedi per commentare.


Zara Khan
Zara Khan il 28 Giu 2022
It may be that my implementation is not right. I just checked. And asked whether I am doing the right thing
  12 Commenti
Zara Khan
Zara Khan il 30 Giu 2022
In the above example I can see the triangle. But in case of sign languages I am only getting white rectangle region. Apart from using this triangle method is there any way for semantic segmentation? How can only segment hand signs from background in this case?
Walter Roberson
Walter Roberson il 30 Giu 2022
The pre-trained Triangle Semantic Segmentation Network might simply be too weak for your purposes, especially since your sample sign images are not very triangular.

Accedi per commentare.

Categorie

Scopri di più su Image Data Workflows in Help Center e File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by