📄 vid_edge.mdl
字号:
"ctions prior to this; run \"mex -setup\" from the command line\nif you experi"
"ence problems."
Position [76, 181]
HorizontalAlignment "left"
FontName "Arial"
FontSize 14
}
}
}
Block {
BlockType SubSystem
Name "a2"
Ports []
Position [20, 412, 112, 436]
BackgroundColor "cyan"
ShowName off
OpenFcn "close_system('vid_edge/Edge Detection');\nc"
"lose_system('vid_edge/Info'); "
TreatAsAtomicUnit off
MaskDisplay "disp('Close subsystems')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "a2"
Location [405, 160, 954, 522]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Annotation {
Name "How to run this demo\n\nThis demo utili"
"zes two S-Function Builder blocks.\nPrior to running the demo for the first t"
"ime, each S-Function\nmust be created and compiled. \n\nTo do this,\n1 - loo"
"k under the Edge Detect block\n (select the block and hit \"ctrl+u\").\n2"
" - select the first S-Function Builder block\n (named Row/Col Filtering)"
" and double-click block\n3 - hit \"Build\" button and the S-Function will be "
"created and compiled;\n hit \"Close\" when compilation is finished\n4 - s"
"elect the second S-Function Builder block\n (named Prewitt) and double-cl"
"ick block\n5 - hit \"Build\" button, then \"Close\".\n6 - You are ready to ru"
"n the demo\n\nNote: you might need to configure MATLAB for compiling MEX\nfun"
"ctions prior to this; run \"mex -setup\" from the command line\nif you experi"
"ence problems."
Position [76, 181]
HorizontalAlignment "left"
FontName "Arial"
FontSize 14
}
}
}
Annotation {
Name "Steps to Compile S-Functions:\n\n1 - Look u"
"nder the Edge Detection masked subsystem\n by selecting the block and hit"
"ting \"Ctrl+u\"\n\n2 - Double-click the first S-Function Builder block\n "
"named \"Pre-Filtering\"\n\n3 - Press \"Build\" button to compile the S-Functi"
"on;\n press \"Close\" when done\n\n * Switch to the \"Outputs\" pan"
"el to inspect the\n C code for the block\n * De-select the \"deb"
"uggable\" option to build smaller\n and/or faster S-Function executab"
"les.\n\n4 - Double-click the second S-Function Builder block\n named Pre"
"witt\n\n5 - Press \"Build\" button, then \"Close\" when done\n\nYou may close"
" the Edge Detection subsystem.\nYou are ready to run the demo!"
Position [121, 266]
HorizontalAlignment "left"
FontName "Arial"
FontSize 12
}
Annotation {
Name "This demo utilizes two \"S-Function Builder"
"\" blocks.\nPrior to running demo for the first time,\neach S-Function must b"
"e compiled. "
Position [219, 38]
ForegroundColor "blue"
FontName "Arial"
FontSize 14
FontWeight "bold"
}
}
}
Block {
BlockType Reference
Name "Original"
Ports [1]
Position [480, 105, 525, 155]
SourceBlock "dspsnks4/Matrix\nViewer"
SourceType "Matrix Viewer"
ImageParams on
CMapStr "gray(256)"
YMin "0"
YMax "255"
AxisColorbar on
AxisParams off
AxisOrigin "Upper left corner"
XLabel "X-axis"
YLabel "Y-axis"
ZLabel "Z-axis"
FigPos "[16 305 334 296]"
AxisZoom on
}
Block {
BlockType Reference
Name "Signal From\nWorkspace"
Ports [0, 1]
Position [55, 113, 110, 147]
ShowName off
SourceBlock "dspsrcs4/Signal From\nWorkspace"
SourceType "Signal From Workspace"
X "vG3"
Ts "1"
nsamps "1"
OutputAfterFinalValue "Cyclic repetition"
}
Line {
SrcBlock "Edge Detection"
SrcPort 1
DstBlock "Edges"
DstPort 1
}
Line {
SrcBlock "Signal From\nWorkspace"
SrcPort 1
Points [0, 0; 125, 0]
Branch {
DstBlock "Original"
DstPort 1
}
Branch {
Points [0, -55]
DstBlock "Edge Detection"
DstPort 1
}
}
Annotation {
Name "Adjust edge detection threshold and\ndirection "
"in Edge Detection block\nwhile video runs.\n\nDemonstrates how to easily inte"
"grate\nC code into Simulink models."
Position [12, 52]
HorizontalAlignment "left"
ForegroundColor "blue"
FontName "Arial"
FontSize 12
FontWeight "bold"
}
}
}
MatData {
NumRecords 2
DataRecord {
Tag DataTag1
Data " %)30 . $\", 8 ( @ % "
"\" $ ! 0 % 0 &@ $ \\ @ 4V9U;DYA;64 "
" !);G!U=%!O<G17:61T: $]U='!U=%!O<G17:61T: "
"4V9U;F-T:6]N4&%R86UE=&5R<P !.=6UB97)/9E!A<F%M971E<G, $1I<F5C="
"$9E9614:')O=6=H 4V%M<&QE5&EM90 !.=6UB97)/9D1I<V"
"-R971E4W1A=&5S $1I<V-R971E4W1A=&5S24, 3G5M8F5R3V9#;VYT:6YU;W5"
"S4W1A=&5S !#;VYT:6YU;W5S4W1A=&5S24, $5X=&5R;F%L1&5C;&%R871I;VX "
" 26YC;'5D94AE861E<G-497AT !,:6)R87)Y1FEL97-497AT %5S9"
"7)#;V1E5&5X= 57-E<D-O9&5497AT;61L57!D871E !5<V5R0V]D95"
"1E>'1M9&Q$97)I=F%T:79E $=E;F5R871E5$Q# 4&%N96Q);F1E> "
" !);G!U=%!O<G1S $]U='!U=%!O<G1S "
" 4&%R86UE=&5R<P #@ % & \" 0 "
" !0 @ ! $ $ ! \" !V &D 9 !? ' <@!E '< :0!T '0 "
"7P!S &8 8P!N X X !@ @ $ 4 ( 0 , ! "
" 0 & ,0 R # . . 8 ( ! % \" $ # "
"0 $ !@ #$ ,@ P #@ $@ & \" 0 !0 @ ! "
" \"@ $ ! !0 !T &@ <@!E ', : L &0 :0!R . , 8 "
" ( ! % \" $ ! 0 $ ( ,@ X P !@ "
" @ $ 4 ( 0 $ ! 0 @ Q #@ $@ & \""
" 0 !0 @ ! \"0 $ ! !( !) &X : !E '( :0!T "
"&4 9 . , 8 ( ! % \" $ ! 0 "
" $ ( , X P !@ @ $ 4 ( 0 $ ! "
"0 @ P #@ # & \" 0 !0 @ ! 0 $ ! "
" \" # . , 8 ( ! % \" $ ! 0 $ "
" ( , X \"@ !@ @ $ 4 ( 0 #8 ! 0 "
" !L +P J \" 90!X '0 90!R &X ( !D &\\ =0!B &P 90 @ &8 =0!N &, * !D &\\ =0!"
"B &P 90 @ &$ *0 [ \" *@ O H \"@ * H \"@ * H \"@ * H \"@ * H \"@ * H \""
"@ * H X !X !@ @ $ 4 ( 0 \"0 ! "
" 0 !( (P!I &X 8P!L '4 9 !E \" / !M &$ = !H \"X : ^ H \"@ * H \"@ * "
"H \"@ * H \"@ * H \"@ * H \"@ * H #@ # & \" 0 !0 "
"@ $ ! . > D 8 ( ! % \" "
" $ \"B! 0 $ 1 D \"\\ *@ @ % <@!E '< :0!T '0 ( !E &0 9P!E"
" \" 9 !E '0 90!C '0 :0!O &X \"@ @ \" ( @ \" ( @ \" ( J \" 50!S &4 <P "
"@ ' 80!R '0 :0!A &P ( !R &4 <P!U &P = !S \" 8P!O &T < !U '0 90!D \" 80!S "
"\" 8@!X \"P ( !B 'D + @ &$ ;@!D \" 8@ * \" ( @ \" ( @ \" ( @ \"H ( !"
"A &X 9 @ ' 90!R &8 ;P!R &T <P @ &4 9 !G &4 ( !D &4 = !E &, = !I &\\ ;@ @ &,"
" ;P!M ' 80!R &D <P!O &X +@ * \" ( @ \" ( @ \" ( @ \"H \"@ @ \" ( @ "
"\" ( @ \" ( J \" ( !$ &D <@ Z \" ,0 ] &( ;P!T &@ + @ #( /0!V &4 <@!T %"
"\\ ;P!N &P >0 L \" ,P ] &@ ;P!R &D >@!? &\\ ;@!L 'D \"@ @ \" ( @ \" ( @ "
"\" ( J \"\\ \"@ @ \" ( @ \" ( @ \" 8P!O &X <P!T \" :0!N '0 7P!4 \" 3"
"0 @ #T ( Q #( , [ \" ( O \"H ( !R &\\ =P!S \" *@ O H ( @ \" ( @ \" "
"( @ &, ;P!N ', = @ &D ;@!T %\\ 5 @ $X ( ] \" ,0 V # .P @ \" +P J \" 8"
"P!O &P <P @ \"H +P * \" ( @ \" ( @ \" ( !C &\\ ;@!S '0 ( !F &P ;P!A '0 ("
" !C '4 = !O &8 9@ @ #T ( H &8 ; !O &$ = I &, =0!T &\\ 9@!F ' 6P P %T .P * "
"\" ( @ \" ( @ \" ( !C &\\ ;@!S '0 ( !I &X = !? %0 ( !K '@ ( ] \" * !I "
"&X = !? %0 *0 H &0 :0!R ' 6P P %T ( A #T ( S \"D .P * \" ( @ \" ( @ \""
" ( !C &\\ ;@!S '0 ( !I &X = !? %0 ( !K 'D ( ] \" * !I &X = !? %0 *0 H &0 :"
"0!R ' 6P P %T ( A #T ( R \"D .P * \" ( @ \" ( @ \" ( !I &X = !? %0 ( "
"!C #L \"@ @ \" ( @ \" ( @ \" 9@!O '( * !C #T ,0 [ \" 8P \\ $X .P @ &, *"
"P K \"D ( ![ H ( @ \" ( @ \" ( @ \" ( !I &X = !? %0 ( !R #L \"@ @ \" "
"( @ \" ( @ \" ( @ &8 ;P!R \"@ <@ ] #$ .P @ '( / !- #L ( !R \"L *P I \" "
">P * \" ( @ \" ( @ \" ( @ \" ( @ &D ;@!T %\\ 5 @ '( 8P @ #T ( !R \"L"
" 8P J $T .P * \" ( @ \" ( @ \" ( @ \" ( @ &D ;@!T %\\ 5 @ '( ;0 Q &,"
" ( ] \" <@!C \"T ,0 [ H ( @ \" ( @ \" ( @ \" ( @ \" :0!N '0 7P!4 "
"\" <@!P #$ 8P @ #T ( !R &, *P Q #L \"@ @ \" ( @ \" ( @ \" ( @ \" ( !I"
" &X = !? %0 ( !R &, ;0 Q \" /0 @ '( 8P M $T .P * \" ( @ \" ( @ \" ( @ "
"\" ( @ &D ;@!T %\\ 5 @ '( 8P!P #$ ( ] \" <@!C \"L 30 [ H ( @ \" ( @ "
"\" ( @ \" ( @ \" 90!; '( 8P!= \" /0 @ \"@ 8@!; '( 8P!= \" /@ @ &, =0!T"
" &\\ 9@!F \"D ( F \"8 ( H H ( @ \" ( @ \" ( @ \" ( @ \" ( @ \" ("
" @ \" ( @ \" ( @ \"@ ( @ \" ( @ \"@ (0!K '@ ( !\\ 'P ( H &( > !; '( "
"8P!= \" /@ ] \" * !B 'D 6P!R &, 70 I \"D *0 * \" ( @ \" ( @ \" ( @ \""
" ( @ \" ( @ \" ( @ \" ( @ \" ( @ \" ( @ \" ( @ \"8 )@ @ \"@ 8@!"
"; '( 8P!M #$ 70 @ #P /0 @ &( 6P!R &, 70 I H ( @ \" ( @ \" ( @ \" ( @ "
"\" ( @ \" ( @ \" ( @ \" ( @ \" ( @ \" ( @ \" )@ F \" * !B %L <@"
"!C %T ( @ \" /@ @ \" 8@!; '( 8P!P #$ 70 I H ( @ \" ( @ \" ( @ \" ( "
" @ \" ( @ \" ( @ \" ( @ \" ( @ \"D ( !\\ 'P ( H H ( @ \" ( @ \" "
" ( @ \" ( @ \" ( @ \" ( @ \" ( @ \" ( @ \" ( @ \" ( @ \"@ (0!K"
" 'D ( !\\ 'P ( H &( >0!; '( 8P!= \" /@ ] \" * !B '@ 6P!R &, 70 I \"D *0 * "
"\" ( @ \" ( @ \" ( @ \" ( @ \" ( @ \" ( @ \" ( @ \" ( @ \" ("
" @ \" ( @ \"8 )@ @ \"@ 8@!; '( ;0 Q &, 70 @ #P /0 @ &( 6P!R &, 70 I H ( "
"@ \" ( @ \" ( @ \" ( @ \" ( @ \" ( @ \" ( @ \" ( @ \" ( @ \" "
" ( @ \" )@ F \" * !B %L <@!C %T ( ^ \" 8@!; '( < Q &, 70 I H ( @ \" "
"( @ \" ( @ \" ( @ \" ( @ \" ( @ \" ( @ \" ( @ \"D \"@ @ \" ( @"
" \" ( @ \" ( @ \" ( @ \" ( @ \"D .P * \" ( @ \" ( @ \" ( @ \" "
"?0 * \" ( @ \" ( @ \" ( !] H ( @ \" ( @ \" ( * \" ( @ \" ( @ "
"H ( @ \" ( @ H ( @ \" ( * \" ( @ H ( @ H ( * H X !0 @ "
"!@ @ $ 4 ( 0 \\! ! 0 > @ +P J H ( @"
" \" ( @ \" ( @ \" ( @ \" ( @ \" ( @ \" ( @ \"H ( !# &\\ 9 !E \" "
"90!X &$ ;0!P &P 90 * \" ( @ \" ( @ \" ( @ \" ( @ \" ( @ \" ( @ \""
" ( J \" ( @ '@ 1 !; # 70 @ #T ( !U # 6P P %T .P * \" ( @ \" ( @ \" "
" ( @ \" ( @ \" ( @ \" ( @ \" *@ O \" \"@ @ \" ( @ \" ( @ \" ( "
"@ \" ( @ \" ( @ \" \"@ @ \" ( @ \" ( @ \" ( @ \" ( @ \" ( @ H"
" ( @ \" ( @ \" ( @ \" ( @ \" ( @ \" \"@ @ \" ( @ \" ( @ \" ( "
"@ \" ( @ \" \"@ @ \" ( @ \" ( @ \" ( @ \" ( @ H ( @ \" ( @ \" "
" ( @ \" ( @ \" \"@ @ \" ( @ \" ( @ \" ( @ \" \"@ @ \" ( @ \" ( "
" @ \" ( @ H ( @ \" ( @ \" ( @ \" \"@ @ \" ( @ \" ( @ \" \"@ @ "
"\" ( @ \" ( @ H ( @ \" ( @ \" \"@ @ \" ( @ \" \"@ @ \" ( @ H ("
" @ \" \"@ @ \" \"@ @ H \"@ X !0 @ !@ @ $ 4 ( "
"0 \\! ! 0 > @ +P J H ( @ \" ( @ \" ( @ \" ( @ \" ("
" @ \" ( @ \" ( @ \"H ( !# &\\ 9 !E \" 90!X &$ ;0!P &P 90 * \" ( @ \" "
" ( @ \" ( @ \" ( @ \" ( @ \" ( @ \" ( J \" ( @ &0 > !; # 70 @ #"
"T ( !X $, 6P P %T .P * \" ( @ \" ( @ \" ( @ \" ( @ \" ( @ \" ( @ "
"\" *@ O \" \"@ @ \" ( @ \" ( @ \" ( @ \" ( @ \" ( @ \" \"@ @ \" "
" ( @ \" ( @ \" ( @ \" ( @ \" ( @ H ( @ \" ( @ \" ( @ \" ( @ "
"\" ( @ \" \"@ @ \" ( @ \" ( @ \" ( @ \" ( @ \" \"@ @ \" ( @ \" "
" ( @ \" ( @ \" ( @ H ( @ \" ( @ \" ( @ \" ( @ \" \"@ @ \" ( @"
" \" ( @ \" ( @ \" \"@ @ \" ( @ \" ( @ \" ( @ H ( @ \" ( @ \" "
"( @ \" \"@ @ \" ( @ \" ( @ \" \"@ @ \" ( @ \" ( @ H ( @ \" ( @"
" \" \"@ @ \" ( @ \" \"@ @ \" ( @ H ( @ \" \"@ @ \" \"@ @ H \"@ "
"X P !@ @ $ 4 ( 0 $ ! 0 @ Q #@ "
" # & \" 0 !0 @ ! 0 $ ! \" #8 . "
" 8 < 8 ( @ % \" $ ! 0 % 0 \"P $ "
" !- 3F%M90 !$871A5'EP90 $1I;7, 4F]W !#;VUP;&5X:7"
"1Y $9R86UE 0V]L . T 8 ( 0 % \" "
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -