Тёмный

Threshold Selection for Image using Matlab | Global Thresholding Algorithm 

Knowledge Amplifier
Подписаться 28 тыс.
Просмотров 10 тыс.
50% 1

An automated procedure for selecting Threshold has been employed in this video.
Gonzalez and Woods proposed this iterative algorithm for this thresholding purpose.
Code for Global Thresholding:
Code is posted in the comment section.
There is inbuilt function in MATLAB for determining the global threshold value , check this MathWorks documentation link for detail explanation:
www.mathworks....
#ImageProcessing #MATLAB #ComputerVision

Опубликовано:

 

11 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 18   
@KnowledgeAmplifier1
@KnowledgeAmplifier1 4 года назад
Code: clc clear all close all warning off; x=imread('eight.tif'); imshow(x); title('Original Grayscale Image'); figure; x=im2double(x); d=im2bw(x); imshow(d); title('Global Thresholding using MATLAB'); Id =x; T = 0.5*(min(min(Id))+max(max(Id))); deltaT = 0.001; % convergence criterion done = false; while ~done g = Id >= T; Tnext = 0.5*(mean(Id(g)) + mean(Id(~g))); done = abs(T - Tnext) < deltaT; T = Tnext; end figure; d=im2bw(x,T); imshow(d); title('Global Thresholding using own code');
@zenonisha505
@zenonisha505 3 года назад
Tnext = 0.5*(mean(Id(g)) + mean(Id(~g))) something wrong in this line sir its not run on matlab 2020b could you please reply for this
@maismudhafertaheralmosawi1727
@maismudhafertaheralmosawi1727 3 года назад
thanks so much
@KnowledgeAmplifier1
@KnowledgeAmplifier1 3 года назад
@@maismudhafertaheralmosawi1727 welcome , Happy Learning :-)
@vaswatibiswas9798
@vaswatibiswas9798 2 года назад
Can you please tell me is it possible to convert the binary image to RGB image again after performing the thresholding? if yes then how can we do that?
@yasashewavidana9925
@yasashewavidana9925 4 года назад
very helpful video. However, how should we do it for the 3D array.could you advice me how we should do thresholding for the 3D array?
@kaaviyailangovan7721
@kaaviyailangovan7721 2 года назад
can a hsv image be thresholded?if yes can you pls explain how
@KnowledgeAmplifier1
@KnowledgeAmplifier1 2 года назад
Hello Kaaviya Ilangovan, here are some videos where I have explained thresholding based on HSV dimension -- Colour Detection Using Matlab from Scratch ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-dMa5-q_o9xw.html Color Image Processing (Segmentation) using Morphological Operation ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-VN3Fe2KFfk8.html Hope this will be helpful! Happy Learning :-)
@keremkalyoncuoglu5288
@keremkalyoncuoglu5288 Год назад
can you open the translation please
@nurizyannabilah5580
@nurizyannabilah5580 Год назад
how about double threshold sir?
@KnowledgeAmplifier1
@KnowledgeAmplifier1 Год назад
Hello NUR IZYAN Nabilah, you can refer this video for Double Thresholding ,ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-9yi1qwwLUIY.html&feature=shares.. Happy Learning
@nurizyannabilah5580
@nurizyannabilah5580 Год назад
@@KnowledgeAmplifier1 thank you Sir 😁
@KnowledgeAmplifier1
@KnowledgeAmplifier1 Год назад
@@nurizyannabilah5580 No Problem! Happy Learning
@nurizyannabilah5580
@nurizyannabilah5580 Год назад
@@KnowledgeAmplifier1 how to determine delta value?
@subhamdash496
@subhamdash496 Год назад
its showing ---> Error using >= Array dimensions must match for binary array op.
@KnowledgeAmplifier1
@KnowledgeAmplifier1 Год назад
Subham Dash, you are doing some operation between 2 images which don't have same size seems , are you facing this error in this code or some other code ? because here only one image is used..
@subhamdash496
@subhamdash496 Год назад
Error in this code only
@subhamdash496
@subhamdash496 Год назад
clc clear all close all warning off; x=imread('grayscale.jpg'); imshow(x); title('Original Grayscale Image'); figure; x=im2double(x); d=im2bw(x); imshow(d); title('Global Thresholding using MATLAB'); Id =x; T = 0.5*(min(min(Id))+max(max(Id))); deltaT = 0.001; % convergence criterion done = false; while ~done g = Id >= T; Tnext = 0.5*(mean(Id(g)) + mean(Id(~g))); done = abs(T - Tnext) < deltaT; T = Tnext; end figure; d=im2bw(x,T); imshow(d); title('Global Thresholding using own code'); this was the code i wrote
Далее
Getting Started with Image Processing
13:08
Просмотров 79 тыс.
To mahh too🫰🍅 #abirzkitchen #tomato
01:00
Просмотров 3,4 млн
Otsu's Thresholding
37:25
Просмотров 16 тыс.
Detect Edges in Images | MATLAB
13:37
Просмотров 7 тыс.
Python Image Segmentation Tutorial (2022)
31:50
Просмотров 72 тыс.
How AI 'Understands' Images (CLIP) - Computerphile
18:05
If __name__ == "__main__" for Python Developers
8:47
Просмотров 401 тыс.