Будь ласка, використовуйте цей ідентифікатор, щоб цитувати або посилатися на цей матеріал:
https://er.chdtu.edu.ua/handle/ChSTU/8359| Назва: | Дослідження системи бездротового моніто-рингу параметрів сервоприводу |
| Автори: | Трембовецька, Руслана Володимирівна Краснокуцький, Михайло Сергійович |
| Ключові слова: | цифрова обробка медичних зображень;рентгенівські діагностичні зображення;просторова фільтрація;частотна фільтрація;відновлення зображень;MATLAB |
| Дата публікації: | 15-гру-2025 |
| Короткий огляд (реферат): | У роботі досліджено методи цифрової обробки рентгенівських діагностичних зображень у середовищі MATLAB для автоматичного покращення їх якості шляхом просторової та частотної фільтрації й відновлення. The work investigates methods of digital processing of X-ray diagnostic images in MATLAB for automatic quality enhancement through spatial and frequency filtering as well as image restoration. |
| URI (Уніфікований ідентифікатор ресурсу): | https://er.chdtu.edu.ua/handle/ChSTU/8359 |
| Розташовується у зібраннях: | 174 Автоматизація, комп'ютерно-інтегровані технології та робототехніка (Робототехнічні системи та автоматизація) |
Файли цього матеріалу:
| Файл | Опис | Розмір | Формат | |
|---|---|---|---|---|
| Диплом-магистр_Краснокуцький М.pdf Restricted Access | КРМ Краснокуцький М. | 7.32 MB | Adobe PDF | Переглянути/Відкрити Запит копії |
Усі матеріали в архіві електронних ресурсів захищено авторським правом, усі права збережено.
Extracted text
YEPKACbKHÄ JEPKABHM*M TEXHOJIorIYHMA VHIBEPCHTET
AKVJIbTET EJIEKTPOHHMX TEXHOJIOrI
ABTOTPAHCIIOPTY TA MAWHHOEYIYBAHHA
KAOEJPA TIPHJIAIOEYIyBAHHA, MEXATPOHIKH TA
KOMII IOTEPM3OBAHMX TEXHOJIOrIM
AonyuueHO 10 3aXHCTy
3aBinyBay Kahexpu IMKT
Makcum BOHIAPEHKO
2025 p.
IIOACHIOBAJI5HA 3AIIHCKA
10 KBanipikauiÄnoi poõoTH
MaricTpa
Ha TeMy <«locIinKEHHA CHCTeMH Oe31poTOBOrO MOH0TO-puHry napameTp0B
CepBOIpHBOIY»
KBaniçikaui~Ha po6oTa MaricTpa MicTHTb pe3yIbTaTH BJIaCHHX 10cJI0KEHL.
BukopncTaHHA ineH, pezysTaT0B TKeT0B 0HUIHX aBTopiB MakoTH nOCHIAHHA Ha
BiJnOB0IHe IKepeno MHxa~Jo KPACHOKYIIbKMÝ
BukOHaB 3106yBa4 BHIIOÏ OCB0TH 0CBITHboro
CTYIIeHAM aricTp» 2 Kypcy, rpynM PCA-47
3a cneiaNbH0CTIO 174 «ABTOMaTH3Ais,
KOMII'KOTepHO-0HTerpoBaHi TeXHOJIOriï Ta
poboTOTeXH0Ka, 3a OCB0THLOKO porpaMOFO
«PoooToTeXH0YH0 cHCTeMH Ta aBTOMaTH3aiD>
Muxa1o KPACHOKYLILKum
KepiBHHK_ PycnaHa TPEMBOBELIEKA
PeneH3eHT TpuropiH TIMYIK
Mepkacu -2025 poKy
YEPKACbKMÄ JEPKABHHÄ TEXHOTOHHMY HIBEPCHTET
(TOAHC KakMciv Ba1SM Mttsoro HaaTLHOo3 aK12.T)
Paky.ibrer eieKmpOMHIX mexHO1020ù, a6monpancnopmy ma MauuHobVÜ) 6AHHA
Kae1pa npuiaoo0v0y6aHHA, MexampoHiKu ma KO.Mn 1Omepu306aHux mexHO.102u
OcBiTH0qp iseHb MazicmD
Cnemia.TBH0CTL174 «A6moMamu3auia, Koyn omepHo-iHmepo6aHi mexHo.1o2if ma p00omomexhIKa»
OcBiTHa nporpaMa «PoóomomexHiYHic uCmeMum a aemoMamuBA;IA)
(urup i Ha?83)
3ATBEPIKYIO
3asiyBay kaeapH IIMKT
MakcHM EOHJAPEHKO
2025 poky
3A BI AH H A
HAK BAJIIOIKAIHY PO5OTY MAIICTPA
KpacHOKV;bKO20 Mxaùna CepeimosuHa
(npi3BHLUIe. iM's. no õaTh KOBi)
1. TeMa poõoTH: locTiIKeHHA CHCTeMH õe3IpoTOBOrO MOH0TO-PHHIY 1apaMeTp0B CepBOipHB0TV
kadeTpH IIMKT
HaykOBH KepiBHHK poõ0TH TpevoOBebka PyvC zAHa BaIOTHMHP0BHA, H) TeXH, HAVK, IDocdecop
(npizBue. iM'a. no õaTbKOB0. HaV KOBH CTNMHb, B4eHe 3BaHHA)
3aTBepTKEHI HakasoM BHIIOrO HaByaTbHOrO 3akIaIy B0I *15* BepecHA 2025 poKy No 261/03-03
2. CTpoK NOJaHHA 3BO po60TH 15 rpyIHA 2025 poky
3. MeTa 10c.TiTKeHHA: MeTOrO poõoTH ¬ 10CT0TKEHHA Ta po3poPKa cHCTeMH õe31pOTOBOro
MOH0TOPHHrY napameTp0B cepBOIpBOIV 3aõe3neyeHHA TOYHOro KepVBaHHA
IepeMimeHHAM.
L1A 10cArHeHHAI IOCTaBJIeHOÏ MeTH HeoðxiHO po3B'A3aTH Taki 3ana91:
1.3niacHHTH aHaiiTHYHMÄí orIaI MeTOI0B 0IeHTHH0Kauiï napaueTp0B THHaMiHHX oѰeKT0B.
2. CoopMyBaTH MaTeMaTHYHHÝ onHC cepBOIpHBOIY Ta po3poðuTH OrO KOMII'IOTepHy MONETH.
3. Po3pouTH eKCnepuMeHTaTbHH CTeHI Ta IpOBeCTH cepiro HaTypHHX eKCIepHMeHTIB JIA
BH3Ha4eHHA 034HYHHX NapameTpiB npHBOIY.
4. Po3poQHTH Oez1poTOBHÄ npHCTpiH KepyBaHHA Ta MOH0TOpHHrY cepBOMpHBOIY. BKIOYaOH
CxeMOTexH0YHe Ta KOHCTpyKTOPCBKe pilueHHA.
06'eKT 10c1i1KeHHA CepBoripHB0I 3 1BHIVHOM IOCTI}HOro cTpVMY.
IIpeiueT 10cT0IKeHHA Pe3ipoTOBH HPHCTpim KepyBaHHA CepBONPHBOIY.
4. CTpyKTYpa Ao0 cAT po60TH. KBaiihika1i`Ha
po3,1i0B, poóoTa Maricrpa
BHCHOBKIB, cK1a1aCTHCA 3Í
CIIHCKy BCTYIIY. 4ãTMPPO
BHKOopHCTaHHX J1KepCiJ, 10,1aTKIB.
5. IlpeseHTauiï Ha 1 ciaanax.
6. KOHcyIbTaHTH pozziziB KBanihikauiqnoï poooTH MaricTpa
Pozai1 IIpi3BuuIe, iHiujaiH Ta rioca1a IlianHc. 1aTa
KOHCyJT6TaHTa 3aB1aHHA 3aB1aHHA
TeopeTH4HMÜ BH1aB IpHÄHAB
MeTonHYHHÝ TpeMõOBeIbKa P.B., 1-p TexH. Hayk,
ipocecop kaeapu IIMKT
LoczinHHUbKHÝ
HopMokoHTPO.TE THYKOB B.B.. K-T TeXH. Hayk, 1OII.,
1O1. Kaeapu IIMKT
7. Mara BHJa4i 3aBxaHHA 15* BepeCHA 2025 poky
KAJIEHIAPHMÝ IJJAH
No
3/n HasBa etaniB KBauihikauianoi po6oTH Marictpa CrpoK BAKOHAHHA eTaniB
poõoTH Ilpaisa
TeopeTuHHÄ pozziI 15.09.25 05.10.25
2 BHK
TexHOIoriHu pozri1 06.10.25- 26.10.25 BHK
IocniHHUbKHÝp o3niI 27.10.25 - 23.11.25
4 BHK
OopMIEHHA INOACHIOBAIbHOd 3arIHCKH 24.11.25 07.12.25
BHK
OjopMIeHHA CYnpOBiJHOÏ 10KyMeHTauii 01.12.25 - 15.12.25
BHK
O¢opMieHHA IpE3eHTauiï 08.12.25 - 15.12.25
7 BHK
PoõoTa Hai noIOB0IIIO 08.12.25 - 15.12.25
BHK
MarictpaHT MHxamIO KPACHOKYIILKHÝ
(n imuc) (npi3BHme Ta iHÍuiaiu)
KepisHHK po6oTH
niTIHC ) PycraHa TPEMBOBEIILKA
(npisBHuue Ta iHiwau)
3
.
…………………………………………………………… 5
1.
matlab .................................................................................................. 7
1. 1 ................................... 7
1.2 .......................................................... 9
1.3 '
MATLAB ................................................................................................................. 14
1.4 MATLAB ...... 24
1………………………………………. 27
2.
matlab ....................................................................................................................... 28
2.1 ....................................... 28
2.2 ......................................................... 29
2.3 ....................... 31
2.4 ......... 35
2.5 38
2………………………………………… 39
3.
matlab ....................................................................................................................... 41
3.1 ' ...................................................................... 41
3.2 ............................................................... 42
3.3 ........................................ 44
3.4 ............................................................. 46
3.5 .............................................. 54
3.6 High-boost .................................. 58
3.7 MATLAB .. 59
3…………………………………………. 62
4
4. matlab .... 63
4.1 / ............... 63
4.2 ....................................................................................... 64
4.3 ............................................ 69
4.4 ...................... 70
4.5 ............................................................................. 72
4.6 .................................................................... 73
4.7 MATLAB ............................. 75
4………………………………………… 78
5.
matlab……………………………………...... 79
5.1 .................................................. 79
5.2 ........................................... 90
5.3 ........................................................................ 97
5.4 ……………….. 98
5………………………………………… 101
…………………………………………….. 103
…………………………… 104
5
, .
( ,
, ), :
’ ( ), -
( ), ( ), ( ,
) .
,
.
: 60% 80%
. , ,
,
.
.
(
) .
« / » ,
.
:
(DR- ) .
,
.
,
« »
.
6
. ’
(CAD- ) .
:
1. ( , ,
) .
2. ( )
.
.
,
.
MATLAB .
:
• ;
• ;
• MATLAB.
’
.
MATLAB.
. ’
MATLAB.
7
1
MATLAB
1. 1
,
f(x, y), (x, y) .
- (x, y) ' ,
( ).
( )
. ,
.
,
( ). ,
.
( ) .
: .
( ). ,
( )
.
(x, y)
,
M×N, .
. . 1. 1
.
( M N)
8
(L).
, .
, L
.
' ' L = 2k. k
« » . 8- , 16- 32-
.
. 1.1.
.
0 L-1, (0) ,
(L-1) — .
.
: ,
. ,
, " ",
.
.
. ( ,
9
, )
.
( ) ,
,
' .
, 8- 16- .
,
1.2
(Image Enhancement)
,
.
,
:
• - : ' ,
.
• :
' ( , , ).
, :
1. :
( ).
2. :
.
10
:
. (1.1)
f(x,y)
, g(x,y) — .
T ,
(x,y).
,
( ) , T
. g (x,y)
f .
T
, :s=T(r).
r s
(x,y) f
g .
T(r),
. 1.2 , ,
.
:
, — ,
.
11
. 1.2.
, . 1. 2 , T (r)
.
.
. 1.3.
:
( ), ( . 1.3).
,
,
. , [0, L-1],
:
S = L − l − r (1.2)
12
- .
, .
,
:
S = c ⋅ log(l + r) (1.3)
: ( )
. ,
— .
( - )
:
S = c ⋅rγ (1.4)
c – .
,
( )
— —
.
,
- .
- .
: . > 1
,
, < 1
.
h(r_k) = n_k, [0, L – 1].
13
r_k k- , n_k
.
, n_k
(n). ,
: p(rk) = nk/n, k = 0,1…L –
1, p(rk) rk,
.
. 1.4. 4
,
,
.
:
(1.5)
,
,
.
.
14
.
, , .
. ,
, . —
, .
1.3 ' MATLAB
MATLAB
, ,
.
, 1970- .
Linpack EISPACK,
Fortran.
, .
C 1984
The MathWorks,
.
, MATLAB
- ,
.»
« , MATLAB ,
.
, ’ - ( )
, .
(IDE),
(debugger) (profiler).
15
,
. ’
,
.
, ,
.»
(Toolboxes)
« ,
, toolboxes.
, MATLAB
, ,
. Image Processing Toolbox —
.
,
.»
« :
1. ( ):
.
, .
2. ( ): ,
,
.
.
MATLAB (
) : .
:
,
.
16
MATLAB
(IDE).
, . 1.5,
.
( ):
1. Command Window —
.
2. Workspace Browser — , '
.
3. Current Directory Window —
.
4. Command History Window — ( )
.»
. 1.5. MATLAB
(Command Window)
.
17
,
( , , ) .
«»»
(prompt).
(Workspace) — , .
(Command History)
, .
:
MATLAB.
-
(Workspace Browser) ,
, —
( . 1.6).
. 1.6. (Workspace Browser)
. 1.7.
18
MATLAB
MATLAB ,
sin(10). . 1.7 . MATLAB
ans ( ,
). ans '
Workspace, , .
Workspace clear.
clear ( ,
clear a b c). clc (
).
"=". . 1.8 Command Window,
.
. 1.8.
, ans ,
A, B C.
MATLAB.
: -
.
19
(Standby mode)
«»» ( ), .
.
MATLAB
MATLAB
helpbrowser .
, MATLA ,
, HTML.
MATLAB. doc,
' . MATLAB
.
(M- )
« (
Command Window), ,
.
:
1. :
.
2. : ( ,
)
.
.
.
20
, ,
. , '
.
MATLAB
,
.
MATLAB ,
, , ,
,
M- . -
*.m. M- —
MATLAB, .
-
MATLAB :
File->New->M-file (1.6)
MATLAB
2 : - ( ) -
( ).
,
.
- , , ,
.
- « »;
.
-
( ,
).
21
,
.
M- MATLAB
. , ,
, ,
(local scope).
,
.
' ,
' ( ),
- ( - ) MATLAB
:
• ' Enter (
' , MATLAB );
• F5 ;
• Debug -> Run M- .
- MATLAB ,
- Workspace.
- MATLAB
M- , -
:
(1.7)
x – ( ), f - (
, x), funname - ' , function -
' m- , , m-
- .
- ,
, MATLAB.
22
, - , ' m-
, . -
MATLAB
m- Current Directory, ,
,
MATLAB, -
.
-
- :
>> funname(x) (1.8)
- -
- MATLAB.
-
MATLAB.
- , MATLAB,
,
:
function f = funname (x, y, z) (1.9)
- ,
,
:
(1.10)
MATLAB -
,
, .
varargin.
length(varargin)
, varargin(i) i- :
function [f, y, s]=funname(varargin) (1.11)
23
MATLAB,
7.0,
(nested functions).
.
,
,
, .
file-function :
( )
.
: ,
, ,
(local scope). ,
24
,
, .
,
- ,
global,
, :
global x y z (1.12)
MATLAB '
- , .
' ,
feval:
(1.13)
‘funname’ – ' , ,
, , , x, y, z -
funname, .
MATLAB
.
.
, .
- .
1.4 MATLAB
1.
MATLAB
.
imread, .
:
I = \text{imread}(\text{'filename'})
25
filename ,
. 6.5,
, TIFF, JPEG, PNG, BMP
.
chestxray.jpg C:\images
f :
f = \text{imread}(\text{'C:\images\chestxray.jpg'})
size. , M ( ), N —
( ):
[M, N] = \text{size}(f)
( ,
) imfinfo.
imwrite.
, .»
2.
«
imshow.
:
\text{imshow}(f, G)
G (
— 256 ).
. :
\text{imshow}(f, [\text{low high}])
(clipping): low
, high — . []
,
f,
' .
26
figure,
.»
3.
« imadjust,
- .
:
[low_{in}, high_{in}]
[low_{out}, high_{out}]. \gamma ( )
: \gamma < 1
, \gamma > 1 — .
[0, 1].»
« ( - )
:
S = c \cdot r^{\gamma}
r S — . ,
MATLAB
.
( , .^ , .* ),
.»
4. ( )
«
imhist(f, b), b — (bins).
,
.
(numel):
p(r_k) = \frac{\text{imhist}(f, b)}{\text{numel}(f)}
27
,
histeq.
1
MATLAB
1. .
,
,
.
2.
: ( ) ( ' ).
, —
.
3. MATLAB .
, Image Processing Toolbox
28
2
MATLAB
2.1
,
. ,
,
, , .
, . 2.1,
« ». ,
.
(x, y) ( ),
.
. 2.1.
f (
M \times N) ( ) m
\times n :
(2.1)
29
3 × 3
(x, y) :
(2.2)
,
. ,
R (x, y) m \times n,
:
(2.3)
wi – , zi – ,
, m×n – .
2.2
:
( ) .
( ),
' ,
.
:
.
(Low-Pass Filters),
.
30
, . ,
' , ( )
.
,
— ' ,
.
. 2.2.
'
. ,
.
:
1. (Box filter):
.
.
2. :
— , (
).
, , .
M \times N m \times n :
31
(2.4)
,
..
2.3
,
,
.
( ), —
.
( ),
:
.
( ) .
,
:
• ,
(" ")
.
• , ,
.
, ( )
.
32
(2.5)
•
:
. :
(2.6)
,
.
. ,
,
, .
. :
( ).
—
.
(rotation invariance).
:
.
( ). f(x, y)
:
(2.7)
33
,
.
:
(2.8)
(2.9)
.:
(2.10)
,
. 2.3.
. 2.3.
.
,
. ,
( 8- ), . 2.4.
34
. 2.4. ,
,
, 450
,
( )
.
, (
) ' .
,
, .
.
,
( . 2.4)
4- ' ( . 2.3)
35
2.4
(Unsharp Masking).
( ) .
( ),
.
:
(2.11)
fs (x, y) - ,
−
, f (x, y) –
f (x, y) .
(High-boost filtering).
.
:
(2.12)
A ≥ 1 . , A (A > 1)
( )
. High-boost
filtering:
. A
—
(Global Gain) :
36
∂f
Gx
∇f = = ∂x
∂f (2.13)
Gy
∂y
,
:
(2.14)
, '
,
.
:
∇f ≈ Gx + Gy . (2.15)
, .
' ( )
3 3 , . 2.5
.
. 2.5. 3×3
: Gx = z8 − z5
Gy = z6 − z5 . :
37
Gx = z9 − z5 Gy = z8 − z6 .
:
(2.16)
:
(2.17)
,
. 2.6.
. 2.6. 2 × 2,
. ,
( 2 × 2)
, ' .
,
( 3 ×3).
::
(2.18)
. 2.7.
.
38
. 2.7. 3×3,
2
.
, .
. ,
( )
( ).
, .
:
1. ' .
2. .
3. ( ) ,
.
2.5
,
.
( ) ,
.
39
( - ) ,
.
(
), .
:
1.
( ).
2.
.
3. ( )
.
( ) .
, ,
.
(" ") .
,
,
.
2
1. ,
( ). ,
, ,
.
2.
( , ). ,
40
( ) ,
, .
3. ,
High-boost filtering. ,
( )
( )
41
3
MATLAB
3.1 '
,
' ( ). f (x, y) M×N
:
(3.1)
u = 0,1,2,...,M−1;v = 0,1,2,..., N−1.
' :
(3.2)
x y
, u v .
( ), M N
. (M/2,
N/2).
.
u=0, v=0 , :
42
(3.3)
' - . ,
f(x,y)
( ).
(DC
component),
.
'
. f(x,y), ,
( ),
( - ) :
(3.4)
(3.5)
'
.
( )
(10^5 ).
( , )
( 8 ),
.
.
.
43
,
.
. 3.1
. '
20 ×40 ,
512 ×512 .
.
(
)
. ' :
f(x,y)×
.
. 3.1. - 20×40
512×512 , –
' ,
44
3.2
«
, ' (u, v).
" "
.
:
• ( )
' . , F(0,0)
.
• ( )
. ' , ,
, .
:
1. :
(-1)^{x+y} .
2. : '
( ) F(u, v).
3. : F(u, v)
H(u, v),
.
4. : .
5. : (
).
6. : (-1)^{x+y}
.
45
. 3.2.
,
(
' )
(floating point) .
. 3.2.
3.3
- :
1. ( ):
. '
( ) ,
,
.
2. ( ):
— ,
. ,
( ' ),
46
,
.
(
) F(0, 0), .
.
:
(DC-offset),
.
( - ),
.
,
.
,
' .
( ) ' .
:
,
(0),
( , [0, 255])
3.4
' ,
, ( ' )
( )
.
47
.
,
.
:
G(u,v) = H (u,v) ⋅ F(u,v), (3.6)
F(u,v) – ' - , ,
H (u,v) – ,
F(u,v) G(u,v) .
( ): ,
.
( ), :
( )
( ).
.
— (n).
.
:
,
( ). :
,
D0 , ( ) -
.
48
D0 .
,
:
(3.7)
D0 – , ,
H(u, v) = 1 H(u, v) = 0,
; D(u, v) – (u, v) -
. , ' - , D(u, v)
:
(3.8)
m n – .
,
,
( ), . 3.3.
" "
:
, ( D0). ,
- , ,
( ).
, ,
.
49
. 3.3. :
, :
( ),
—
. H(u, v)
,
3600 .
D0
, .
, ( )
PT.
(u,v);u = 0,1,1...M −1;v = 0,1,1...N −1.
(3.9)
P(u, v) :
(3.10)
F(u, v) – ' - f(x, y). r( )
,
, . .:
50
(3.11)
.
.
. 3.4.
« »: )
; )
( \text{sinc}); )
( ); ) ,
' ; )
( ) ( ); )
,
( )
, ,
D0.
.
:
1. (Undersizing D0):
.
51
—
, .
2. (Oversizing D0):
,
. :
,
.
, ,
, ( " ").
' .
: ( )
( ).
.
,
(
' ) \text{sinc}(x)
.
( )
, .
" " , . 3.4.
(intensity profile)
. ,
.
52
, ,
,
.
n
D0 :
(3.12)
. 3.5.
. 3.5.
,
( )
.
- ,
.
53
,
( " "),
.
n :
•
, , , .
• ,
.
(n=2).
( )
.
. 3.6
n ( 1, 2, 5 20.
. 3.6. :
1, 2, 5 20
:
(3.13)
D(u, v) = D0 (D0 – )
0,667 . . 3.7
D0.
54
. 3.7.
D0
, '
. ,
'
, ,
, .
.
,
,
, .
-
.
3.5
, ,
'
' . ,
( ) .
55
(
) .
'
.
H_{HP}(u, v)
H_{LP}(u, v) :
(3.14)
Hlp(u, v) – .
:
, .
:
(3.15)
D0 – , D(u, v) – (u, v)
( ).
. 3. 8
,
.
. 3.8. :
;
;
56
,
, ,
« » , .
.
,
.
H(u, v) :
n, , D_0,
.
, ,
:
(3.16)
. 3. 9
,
,
.
' , .
' .
57
. 3.9. -
, -
, -
,
D , : D2
0 (u,v)
(3.17)
. 3. 10
,
, .
' , .
. 3.10. -
, -
, -
58
3.6 High-boost
, ,
, , ,
,
( ) ' - .
« ».
,
.
.
.
, ,
f(x, y) flp(x, y):
fhp ( x, y ) = f ( x, y ) − flp ( x, y ). (3.18)
,
:
fhp ( x, y) = ⋅ f ( x, y ) − flp ( x, y ). (3.19)
,
.
.
:
Hhfe (u,v) = a + b ⋅ Hhp (u,v) , (3.20)
Hhp (u,v) – .
0, 25 0, 5;
b – 1, 5 2, 5 ( , b > a).
59
b > 1 ,
.
. ,
, .
,
.
3.7 MATLAB
' MATLAB
fft2, :
F = fft2 (f ) , (3.21)
f – , F – ' f(x, y).
:
S = abs (F ) (3.22)
abs ( ) F.
' -
fftshift :
Fc = fftshift2(F ) (3.23)
Fc – ' - .
,
,
.
:
S 2 = log (1+ abs (Fc)) (3.24)
60
' ifft2,
:
f = ifft2 (F ) (3.25)
F – ' , f – .
' -
:
f = real (ifft2(F )) (3.26)
MATLAB
. ( )
:
[name]=X1:dX:Xk (3.27)
name – ' , , X1 -
, Xk - , dX - ,
(
1). - . - ,
:
[name]=[X1:dX:Xk]’ (3.28)
' .
. MATLAB
meshgrid, ,
, .
. meshgrid
:
[X, Y]=meshgrid(x, y) (3.29)
( ).
: X
x, Y — y.
61
:
x = (0,1, 2) , y = (0,1). (3.30)
0 1 2 0 0 0
x = y = ,
0 1 2 1 1 1 (3.31)
,
.
, f (x,
y) :
1) f (x, y) size;
u v,
x y;
2) '
fft2 F (u, v);
3) ( ,
); H (u, v),
,
;
4) G (u, v)
H (u, v) F (u, v);
5) g (x, y)
'
G (u, v) ifft2;
6) ,
real.
62
3
1. ,
' . ,
, — ,
.
2. ( , ,
). ,
« » ( ),
.
3. ,
. ,
,
.
63
4
MATLAB
. ,
' .
, ,
, .
.
, '
.
4.1 /
. 4. 1 /
.
. 4.1. /
f(x,
y) H \eta(x, y),
g(x, y).
\hat{f}(x, y),
.
H \eta.
64
:
(4.1)
h ( x, y ) – ,
.
:
(4.2)
' -
.
4.2
( ), .
,
. , - (
' ) , , ,
.
, ' . ,
.
,
,
.
' -
. , , « ».
,
..
65
,
.
, ,
.
, .
Z. F(Z)
Z , z
, , Z
z, . . F(z) = P(Z<z).
z, F( ) = 0 F(+ ) = 1.
F(z) ,
F(z), p(z) = F (z).
.
,
.
,
( ) , ,
.
z
:
(4.3)
z – , – z, –
z.
. 4. 2 .
66
:
(4.4)
:
(4.5)
. 4. 2 .
( - )
:
(4.6)
a > 0, b – .
:
(4.7)
. 4. 2 .
67
. 4.2.
:
(4.8)
a > 0
:
(4.9)
. 4. 2
. ,
b = 1.
:
(4.10)
:
68
(4.11)
. 4. 2
.
( )
:
(4.12)
b > a, b .
a , , .
(Pa Pb) , .
« ».
,
' . , -
( )
.
, (saturation)
(clipping). , ,
:
• (a): ( '
).
• (b): (
).
«
» .
. 4.2,
69
4.3
,
,
.
, ' ,
' . '
.
.
, , ,
.
:
(4.13)
zi – S, p(zi) –
.
,
.. , ,
,
.
a b,
..
70
4.4
,
:
(4.14)
:
(4.15)
, – η ( x, y ) N (u, v) , ,
g ( x, y ) G (u, v) .
G (u, v) N (u, v) ,
N (u, v)
G (u, v) .
, ,
.
,
. Sxy
- m×n
(x, y).
g(x, y) Sxy.
fˆ(x, y) (x, y)
, Sxy:
(4.16)
,
1/m·n.
, .
71
,
, ,
,
, .
-
.
, ,
. ,
.:
(4.17)
. ,
.
,
– 50- ,
..
100- ,
, , :
(4.18)
.
« » ,
Sxy . 0-
, ,
:
(4.19)
72
.
« »
.
:
(4.20)
.
, - .
4.5
,
(
H). ,
Fˆ(u, v) ' -
' -
( ):
(4.21)
N(u, v),
(x, y), :
(4.22)
, ,
, (
' - F(u, v)), N(u, v)
73
' - . ,
,
H(u, v) ,
,
.
,
, ,
H(u, v)
.
.
, H(0, 0) h(x, y)
H(u, v) . ,
..
-
,
.
4.6
. ,
,
, ,
..
.
, fˆ f,
74
.
e .:
(4.23)
E{·} .
, :
1) ;
2) , ;
3) ' .
,
, .:
(4.24)
G(u,v) ' - ; H(u, v) –
, H*(u, v) – H(u, v); H(u,v)2 =
H*(u,v) H(u,v) – ; S (u,v) = N(u,v)2 –
; S f (u,v) = F(u,v)2 –
.
, . , ,
. ,
, .
, ,
, , H(u, v) S (u, v)
..
' Fˆ(u, v). ,
75
, ,
.
, N(u,v)2 ,
.
.
, ,
.
(4.25)
K – .
.
4.7 MATLAB
MATLAB
imnoise, :
(4.26)
f - , g - , type - , parameters
- .
MATLAB
: doc imnoise.
, imnoise
double [0, 1]. ,
64 400
76
uint8 (8- ), 64/256,
– 400/(256)2.
statmoments,
n :
[v, unv]=statmoments(p, n) (4.27)
p – , n - , v -
,
[0, 1], unv -
.
,
,
fspecial:
(4.28)
w – , m n -
.
medfilt2, : f = medfilt2 (g, [m, n])
g - , m n -
, f - .
,
, :
(4.29)
(4.30)
MATLAB
deconvwnr, :
(4.31)
fr – , g - , PSF -
( ).
77
, /
, .
, / :
fr = deconvwnr (g, PSF, NSPR) (4.32)
, (NACORR)
(FACORR), :
fr = deconvwnr (g, PSF, NACORR, FACORR) (4.33)
-
( ) '
ifft2.
' fft2,
abs .
/ (NSPR)
.
MATLAB
fspecial :
(4.34)
fspecial PSF,
len , theta
.
, PSF,
imfilter :
(4.35)
f - , g - , PSF -
( ), 'Circular'
.
78
4
1. ,
.
' , '
.
2. ( , , )
. , («
»)
( ), .
3.
. , (
)
,
.
79
5
MATLAB
5.1
( 5.1) MATLAB ' cat (
uint8):
.5.1.
IPT:
isbw , : 1, RGB
, 0, .
80
isgray , : 1,
RGB , 0 .
isind , : 1,
RGB , 0 - .
isrgb , : 1,
RGB , 0 ..
.
.
,
( ) ( ).
, .
,
.
81
imhist - :
:
(
5.2)
.5.2.
( 5.3)
82
. 5.3.
improfile -
[r c]=size(M);
N=improfile(M, [1 c], [1 r]);
plot(N),grid ( 5.4).
.5.4.
mean2 - :
m=mean2(cat)
83
m=130.7960
std2 -
:
m1 = std2(cat)
m1 = 41.4871
' cat1
( 5.5):
,
.5.5
:
M1 = rgb2gray (RGB1);
corr2 - :
k=corr2(M,M1)
k =1
imabsdiff -
Z=imabsdiff(cat, cat1);
imshow(Z); ( 5.6)
84
.5.6
imadd -
A=imadd(cat,cat1);
imshow(A); ( 5.7)
.5.7
8) - mean2.
85
avarage = mean2 (m)%
avarage = 130.7960
std2 -
[6].
sko = std2 (m)%
sko = 41.4871
10) .
corr2
, ,
. ' .
, '
, ' , [6].
- ( 5.8, a). ,
, - ,
( 5.8, .).
>> h=fspecial('average', 15); %
M1 = imfilter(cat,h,'replicate'); %
figure, imshow(cat1); %
figure, imshow(cat); %
.5.8. : )
, )
86
:
>> k = 0.9983 %
1, ,
.
11) imabsdiff - .
uint8.
Z = imabsdiff (cat, cat1); %
imshow (Z); % ( 5.9)
. 5.9
,
1.
12) imadd
..
>> A=imadd(M,M1); % 1
87
imshow (A); % ( 5.10)
.5.10.
( + 1).
13) imcomplement - ,
.
RGB
:
,
..
>> M=imcomplement(cat1); %
>> imshow (M)% ( 5.11)
88
.5.11.
:
,
.
14) imsubtract - 1
.
0..
>> A = imsubtract (M, M1); %
imshow (A)% ( 5.12)
.5.12
89
(M1- ).
- .
15) cpstruct2pairs - cpstruct
. Cpstruct
.
Control Point Selection Tool,
:
>> cpselect (M, M1); % ( 5.13)
.5.13 Control Point Selection Tool
cpselect .
, , -
Export Points To Workspace File..
16) cp2tform -
.
Control Point Selection Tool 2 :
>> cpselect(M,M1); %
:
>> J=imrotate(cat, 30); % -
>> cpselect(J, cat, input_points, base_points); %
>> t=cp2tform(input_points, base_points, 'linear conformal') %
90
t = ndims_in: 2
ndims_out: 2
forward_fcn: @fwd_affine
inverse_fcn: @inv_affine
tdata: [1x1 struct]
5.2
MATLAB
.
fspecial ( ), ordfilt2 ( ) medfilt2
( ).
fspecial.
, :
• ( );
• "Laplacian of Gaussian" (LoG),
;
• ( );
• .
,
.
unsharp 0.5.
, (imfilter) 'replicate'
.
% ( )
h = fspecial('unsharp', 0.5);
%
M1 = imfilter(M, h, 'replicate');
%
91
figure, imshow(M1);
.5.14. ,
. ,
,
.
fsamp2
( - ).
- ( ),
H, h.
.
(
) .
• . 5.15, .
• . 5.15, .
92
( ).
. 5.15, [7].
%
[f1, f2] = freqspace(15, 'meshgrid');
% .
%
% ( " " " ").
dist = abs(f1) + abs(f2);
% ( [0, 1])
H = dist / max(dist(:));
% 3D-
mesh(f1, f2, H), colormap(cool(32));
% - 3x3
h = fsamp2(f1, f2, H, [3 3]);
%
figure, colormap(cool(32)), freqz2(h);
%
double
i = mat2gray(filter2(h, im2double(M)));
% ( [0, 0.8] [0, 1])
M = imadjust(M, [0 0.8], []);
% ( . 5.15, )
figure, imshow(M);
93
. 5.15.
: ) ( ) - ;
) - ; )
.
.
,
( ).
3) (McClellan transformation)
h = ftrans2(b)
- . ,
- b
h.
( ). :
1. - 16-
0.2\pi. ( )
. 5.16, .
94
2.
ftrans2.
. 5.16, .
. 5.16, .
. 5.16.
: ) ( )
- ; ) -
; )
.
.
4) roifilt2 -
.
5) B=imfilter(A, H) - A
H ( 5.17).
>> h=fspecial('motion', 50, 45); %
rgb2=imfilter(M, h); %
figure, imshow(rgb2), title('Filtered'); %
95
.5.17. ,
imfilter
,
.
, ,
.
, ,
( / ).
, ,
.
,
, " "
.
.
. ,
. '
:
>> I1=imnoise(M, 'gaussian', 0, 0.01); %
figure,imshow(I1) % ( 5.18)
96
.5.18.
,
. ,
.
1.
MATLAB
wiener2.
(AWGN).
:
,
.
( )
( ) N ×M .»
>> Id=wiener2(I1, [10 10]); %
imshow (Id)%
97
5.3
>> L=watershed(gradmag); %
Lrgb=label2rgb(L); % RGB-
figure, imshow(Lrgb), title('Lrgb') % (
5.19)
.5.19.
,
,
( ) .
(Foreground markers extraction).
,
. «
» (Opening-by-Reconstruction) « »
(Closing-by-Reconstruction).
.
' ,
imregionalmax.
98
5.4
MATLAB,
( , ),
histeq, imadjust
imfilter ( fspecial).
)
( ) . MATLAB
histeq.
.
,
( , ).
(grayscale), ( )
, " "
[6, 7].
>> figure, imhist(M); % (
5.20, )
I=histeq(M, 80); %
figure, imshow(I); % (
5.20, )
figure, imhist(I); % (
5.20, )
99
.5.20. :
) , )
,
.
:
( " "
),
. " "
, .
)
( ),
.
( - )
MATLAB imadjust [6, 7].
>> figure, imhist(M); % (
41, )
I=imadjust(M, [0 75]/255, [ ], 1); %
figure, imshow(I); % (
5.21, )
100
figure, imhist(I); % (
5.21, )
.5.21. - :
) )
( -
)
.
. ,
( ):
.
. , Adjust Contrast tool
.
(Windowing/Leveling),
.
101
. 5.22. Adjust Contrast tool
5
1.
MATLAB.
'
.
2. ,
(wiener2)
,
, .
3. .
,
, -
,
.
4. ,
.
102
, ,
'
103
, ,
' .
,
.
,
.
.
.
,
. ,
.
-
' , ( , ' ,
) .
.
MATLAB
, .
: ,
.
:
. ,
,
,
, .
104
1.
. . 2024. 1
(159). . 23–27.
2. :
. . 2023. 3. . 15–24.
3. Ahmad I. Pneumonia Disease Detection Using Chest X-Rays and Machine
Learning. Algorithms. 2025. Vol. 18, no. 2. P. 82–95.
4. Albahli S., Rauf H. T., Algosaibi A., Balas V. E. AI-driven deep convolutional
neural networks for chest X-ray pathology identification. Mathematics. 2021. Vol. 9, no. 17.
P. 2107.
5. Automated Detection of Lung Diseases Based on X-ray Images Using A Deep
Learning Approach / Q. B. Baker et al. Journal of University of Duhok (Pure and
Engineering Sciences). 2023. Vol. 26, no. 2. P. 740–753.
6. Autonomous AI for Multi-Pathology Detection in Chest X-Rays: A Multi-Site
Study in Indian Healthcare System / S. Sharma et al. arXiv preprint arXiv:2504.00022.
2025.
7. Bhosale R., Yadav D. Analysis of EfficientNet Family Models by Retraining
for Tuberculosis Detection from Chest X-Ray Images. 2023 Second International
Conference on Informatics (ICI). Noida, India, 2023. P. 1–6.
8. Calli E., Sogancioglu E., van Ginneken B., van Leeuwen K. G., Murphy K.
Deep learning for chest X-ray analysis: A survey. Medical Image Analysis. 2021. Vol. 72.
Art. 102125.
9. Chest X-ray analysis of tuberculosis by deep learning with segmentation and
augmentation / S. Rajaraman et al. Diagnostics. 2021. Vol. 11, no. 8. P. 1487.
10. Deep Learning Based Classification and Semantic Segmentation of Lung
Tuberculosis Lesions in Chest X-ray Images / J. Lan et al. Diagnostics. 2024. Vol. 14, no.
9. Art. 952.
105
11. Deep Learning Detection of Active Pulmonary Tuberculosis at Chest
Radiography Matched the Clinical Performance of Radiologists / S. H. Lee et al. Radiology.
2022. Vol. 304, no. 3. P. 639–647.
12. Deep learning for chest X-ray diagnosis: Competition between radiologists
with or without artificial intelligence assistance / J. H. Park et al. Journal of Imaging
Informatics in Medicine. 2024. Vol. 37, no. 1. P. 11–20.
13. El Handri K., Bouhouch A., Hamal O. AI-Powered Detection of COVID-19
and Lung Diseases from Chest X-Rays: Boosting Accuracy with CNNs and Top-K
Algorithms. Mathematical Modeling and Computing. 2025. Vol. 12, no. 4. P. 1295–1304.
( ).
14. Ensemble Deep Learning for Chest X-Ray Disease Detection / M. S. Rahman
et al. European Society of Medicine. 2024. URL: https://esmed.org/ensemble-deep-learning
(date of access: 10.12.2025).
15. Gayathri J. L., Abraham B., Sujarani M. S. Computer-aided diagnosis system
for pneumonia detection from chest X-ray images using CNN. International Journal of
Information Technology. 2022. Vol. 14. P. 2383–2391.
16. Gupta V., Jain N., Sachdeva J. Improved COVID-19 detection with chest x-ray
images using deep learning. Multimedia Tools and Applications. 2022. Vol. 81. P. 37657–
37680.
17. Integration of Deep Learning and Handcrafted Features for Automated
Detection of COVID-19 and Pneumonia from Chest X-ray Images / M. A. Khan et al.
Diagnostics. 2023. Vol. 13, no. 9. Art. 1560.
18. Keedar A., Hashmi M. F. Automated pneumonia detection on chest X-ray
images using deep learning. 2022 International Conference on Artificial Intelligence and
Data Engineering (AIDE). Karnataka, India, 2022. P. 221–226.
19. Kim H. E., Kim H. H., Han B. K. Changes in cancer detection and false-positive
recall in mammography using artificial intelligence: a retrospective, multireader study. The
Lancet Digital Health. 2020. Vol. 2, no. 3. P. e138–e148.
106
20. Lee S., Pyo S., Kim H. Deep learning for lung disease detection from chest X-
rays: A comprehensive survey. Archives of Computational Methods in Engineering. 2024.
Vol. 31, no. 6. P. 3267–3301.
21. Lung Disease Detection in Chest X-ray Images Using Transfer Learning / A.
M. Alqudah et al. 2022 International Engineering Conference (IEC). Erbil, Iraq, 2022. P.
88–93.
22. Mahdy L. N., Ezzat K. A., Elmogy M. Automatic Pneumonia Detection from
Chest X-ray Images Using Deep Learning. 2023 International Mobile, Intelligent, and
Ubiquitous Computing Conference (MIUCC). Cairo, Egypt, 2023. P. 301–306.
23. Nahiduzzaman M., Goni M. A., Anower M. S., Islam M. R. A novel deep
learning architecture for multiclass lung disease classification from chest X-ray images.
Journal of King Saud University - Computer and Information Sciences. 2023. Vol. 35, no.
8. Art. 101648.
24. Ouis M. Y., Akhloufi M. A. Deep learning for report generation on chest X-ray
images. Computerized Medical Imaging and Graphics. 2024. Vol. 111. Art. 102320.
25. Performance of a Deep Learning System for Tuberculosis Screening in Chest
Radiographs / Z. Qin et al. Lancet Digital Health. 2021. Vol. 3, no. 11. P. e702–e710.
26. Pham H. H., Le T. T., Tran D. Q. Interpretable and robust AI for chest X-ray
analysis: A review. Artificial Intelligence in Medicine. 2023. Vol. 135. Art. 102462.
27. Rajasenbagam T., Jeyanthi S. Pneumonia Detection in X-Ray Chest Images
Based on Convolutional Neural Networks and Data Augmentation Methods. Proceedings
of the 13th International Conference on Pattern Recognition Applications and Methods
(ICPRAM). 2025. P. 131–138.
28. Review on chest pathologies detection systems using deep learning techniques
/ A. Rehman et al. Multimedia Systems. 2023. Vol. 29. P. 1599–1623.
29. Siddiqi R., Javaid S. Deep Learning for Pneumonia Detection in Chest X-ray
Images: A Comprehensive Survey. Journal of Imaging. 2024. Vol. 10, no. 8. Art. 176.
30. Singh R., Kalra M. K., Nitiwarangkul C. Deep learning in chest radiography:
Detection of findings and presence of change. PLoS ONE. 2021. Vol. 16, no. 10. Art.
e0259580.
107
31. Survey on Deep Learning in Medical Image Analysis / A. Maier et al. Pattern
Recognition. 2022. Vol. 122. Art. 108346.
32. The role of artificial intelligence in mass screening for tuberculosis: A
systematic review / K. Harris et al. Journal of Clinical Tuberculosis and Other
Mycobacterial Diseases. 2023. Vol. 32. Art. 100378.
33. Tuberculosis Disease Detection from Chest X-rays Using Deep Learning
Techniques / M. Rabby et al. 2023 26th International Conference on Computer and
Information Technology (ICCIT). Cox's Bazar, Bangladesh, 2023. P. 1–6.
34. Tuncer T., Dogan S., Ozyurt F. An automated residual exemplar local binary
pattern based COVID-19 detection method using chest X-ray images. Chemotherapy. 2020.
Vol. 65. P. 1–10.
35. U-Net based approaches for medical image segmentation: A review / N.
Siddique et al. IEEE Access. 2021. Vol. 9. P. 82031–82057.
36. Vyas A., Mehta A. A. Deep Learning for Pneumonia Diagnosis: A Custom
CNN Approach with Superior Performance on Chest Radiographs. International Journal of
Computer Applications. 2025. Vol. 185, no. 45. P. 12–19.
37. Wang L., Wong A. COVID-Net: A tailored deep convolutional neural network
design for detection of COVID-19 cases from chest X-ray images. Scientific Reports. 2020.
Vol. 10. Art. 19549.
38. Yadav S. S., Jadhav S. M. Deep convolutional neural network based medical
image diagnosis for disease detection. Multimedia Tools and Applications. 2021. Vol. 80.
P. 121–154.