📄 vid_focus.mdl
字号:
}
Block {
BlockType Reference
Name "Low Freqs"
Ports [1, 1]
Position [570, 79, 615, 121]
SourceBlock "dspmtrx3/Submatrix"
SourceType "Submatrix"
RowSpan "Range of rows"
RowStartMode "First"
RowStartIndex "3"
RowEndMode "Index"
RowEndIndex "5"
ColSpan "Range of columns"
ColStartMode "First"
ColStartIndex "-64"
ColEndMode "Index"
ColEndIndex "5"
}
Block {
BlockType SubSystem
Name "Mag FFT"
Ports [1, 1]
Position [290, 80, 340, 120]
TreatAsAtomicUnit off
System {
Name "Mag FFT"
Location [285, 376, 946, 511]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "In"
Position [15, 43, 45, 57]
}
Block {
BlockType SubSystem
Name "2-D FFT"
Ports [1, 1]
Position [320, 29, 370, 71]
TreatAsAtomicUnit off
System {
Name "2-D FFT"
Location [170, 308, 747, 429]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "In"
Position [15, 38, 45, 52]
}
Block {
BlockType Reference
Name "1-D FFT Cols"
Ports [1, 1]
Position [85, 28, 125, 62]
SourceBlock "dspxfrm3/FFT"
SourceType "FFT"
CompMethod "Table lookup"
TableOpt "Speed"
BitRevOrder off
}
Block {
BlockType Reference
Name "1-D FFT Cols1"
Ports [1, 1]
Position [360, 28, 400, 62]
SourceBlock "dspxfrm3/FFT"
SourceType "FFT"
CompMethod "Table lookup"
TableOpt "Speed"
BitRevOrder off
}
Block {
BlockType Math
Name "Math\nFunction"
Ports [1, 1]
Position [235, 30, 265, 60]
ShowName off
Operator "transpose"
}
Block {
BlockType Outport
Name "Out"
Position [510, 38, 540, 52]
}
Line {
SrcBlock "1-D FFT Cols1"
SrcPort 1
DstBlock "Out"
DstPort 1
}
Line {
SrcBlock "1-D FFT Cols"
SrcPort 1
DstBlock "Math\nFunction"
DstPort 1
}
Line {
SrcBlock "In"
SrcPort 1
DstBlock "1-D FFT Cols"
DstPort 1
}
Line {
SrcBlock "Math\nFunction"
SrcPort 1
DstBlock "1-D FFT Cols1"
DstPort 1
}
}
}
Block {
BlockType Constant
Name "Constant"
Position [195, 85, 230, 105]
ShowName off
Value "0.5"
VectorParams1D off
ShowAdditionalParam on
OutDataTypeMode "Inherit via back propagation"
}
Block {
BlockType DataTypeConversion
Name "Data Type Conversion1"
Position [75, 36, 130, 64]
ShowName off
DataType "single"
}
Block {
BlockType Gain
Name "Gain"
Position [165, 35, 195, 65]
ShowName off
Gain "1/256"
}
Block {
BlockType Math
Name "Math\nFunction2"
Ports [1, 1]
Position [460, 35, 490, 65]
ShowName off
Operator "magnitude^2"
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [240, 35, 270, 65]
ShowName off
IconShape "round"
Inputs "|+-"
}
Block {
BlockType Outport
Name "Out"
Position [570, 43, 600, 57]
}
Line {
SrcBlock "Constant"
SrcPort 1
Points [20, 0]
DstBlock "Sum"
DstPort 2
}
Line {
SrcBlock "Sum"
SrcPort 1
DstBlock "2-D FFT"
DstPort 1
}
Line {
SrcBlock "2-D FFT"
SrcPort 1
DstBlock "Math\nFunction2"
DstPort 1
}
Line {
SrcBlock "Gain"
SrcPort 1
DstBlock "Sum"
DstPort 1
}
Line {
SrcBlock "In"
SrcPort 1
DstBlock "Data Type Conversion1"
DstPort 1
}
Line {
SrcBlock "Math\nFunction2"
SrcPort 1
DstBlock "Out"
DstPort 1
}
Line {
SrcBlock "Data Type Conversion1"
SrcPort 1
DstBlock "Gain"
DstPort 1
}
}
}
Block {
BlockType Math
Name "Math\nFunction"
Ports [1, 1]
Position [550, 35, 580, 65]
ShowName off
Operator "log10"
}
Block {
BlockType Reference
Name "Reshape"
Ports [1, 1]
Position [585, 148, 615, 172]
ShowName off
SourceBlock "simulink/Math\nOperations/Reshape"
SourceType "Reshape"
OutputDimensionality "Column vector"
OutputDimensions "[1,1]"
}
Block {
BlockType Reference
Name "Reshape1"
Ports [1, 1]
Position [650, 88, 680, 112]
ShowName off
SourceBlock "simulink/Math\nOperations/Reshape"
SourceType "Reshape"
OutputDimensionality "Column vector"
OutputDimensions "[1,1]"
}
Block {
BlockType Reference
Name "Subimage"
Ports [1]
Position [295, 25, 340, 75]
NamePlacement "alternate"
SourceBlock "dspsnks4/Matrix\nViewer"
SourceType "Matrix Viewer"
ImageParams on
CMapStr "gray(256)"
YMin "0"
YMax "255"
AxisColorbar on
AxisParams on
AxisOrigin "Upper left corner"
XLabel "X-axis"
YLabel "Y-axis"
ZLabel "Z-axis"
FigPos "[227 554 206 184]"
AxisZoom on
}
Block {
BlockType Reference
Name "Submatrix1"
Ports [1, 1]
Position [165, 79, 210, 121]
SourceBlock "dspmtrx3/Submatrix"
SourceType "Submatrix"
RowSpan "Range of rows"
RowStartMode "First"
RowStartIndex "-64"
RowEndMode "Index"
RowEndIndex "128"
ColSpan "Range of columns"
ColStartMode "Offset from middle"
ColStartIndex "-64"
ColEndMode "Offset from middle"
ColEndIndex "63"
}
Block {
BlockType Sum
Name "Sum2"
Ports [1, 1]
Position [730, 85, 760, 115]
ShowName off
IconShape "round"
Inputs "1"
}
Block {
BlockType Sum
Name "Sum3"
Ports [1, 1]
Position [695, 145, 725, 175]
ShowName off
IconShape "round"
Inputs "1"
}
Block {
BlockType Sum
Name "Sum4"
Ports [2, 1]
Position [765, 150, 785, 170]
ShowName off
IconShape "round"
Inputs "-+|"
}
Block {
BlockType Outport
Name "HP"
Position [820, 153, 850, 167]
NamePlacement "alternate"
}
Block {
BlockType Outport
Name "LP"
Position [820, 93, 850, 107]
Port "2"
}
Line {
SrcBlock "Video"
SrcPort 1
DstBlock "Submatrix1"
DstPort 1
}
Line {
SrcBlock "Submatrix1"
SrcPort 1
Points [25, 0]
Branch {
DstBlock "Mag FFT"
DstPort 1
}
Branch {
Points [0, -50]
DstBlock "Subimage"
DstPort 1
}
}
Line {
SrcBlock "Low Freqs"
SrcPort 1
DstBlock "Reshape1"
DstPort 1
}
Line {
SrcBlock "Reshape"
SrcPort 1
DstBlock "Sum3"
DstPort 1
}
Line {
SrcBlock "Sum2"
SrcPort 1
Points [0, 0; 10, 0]
Branch {
DstBlock "Sum4"
DstPort 1
}
Branch {
DstBlock "LP"
DstPort 1
}
}
Line {
SrcBlock "Sum3"
SrcPort 1
DstBlock "Sum4"
DstPort 2
}
Line {
SrcBlock "Sum4"
SrcPort 1
DstBlock "HP"
DstPort 1
}
Line {
SrcBlock "Collect\nFrequency\nMatrix"
SrcPort 1
Points [0, 0; 40, 0]
Branch {
Points [0, 60]
DstBlock "Reshape"
DstPort 1
}
Branch {
Points [0, 0]
Branch {
DstBlock "Low Freqs"
DstPort 1
}
Branch {
Points [0, -50]
DstBlock "Math\nFunction"
DstPort 1
}
}
}
Line {
SrcBlock "Mag FFT"
SrcPort 1
DstBlock "Collect\nFrequency\nMatrix"
DstPort 1
}
Line {
SrcBlock "Math\nFunction"
SrcPort 1
DstBlock "FFT Data"
DstPort 1
}
Line {
SrcBlock "Reshape1"
SrcPort 1
DstBlock "Sum2"
DstPort 1
}
}
}
Block {
BlockType Reference
Name "Original"
Ports [1]
Position [160, 70, 205, 120]
SourceBlock "dspsnks4/Matrix\nViewer"
SourceType "Matrix Viewer"
ImageParams on
CMapStr "gray(256)"
YMin "0"
YMax "255"
AxisColorbar on
AxisParams on
AxisOrigin "Upper left corner"
XLabel "X-axis"
YLabel "Y-axis"
ZLabel "Z-axis"
FigPos "[15 556 206 183]"
AxisZoom on
}
Block {
BlockType Product
Name "Product"
Ports [2, 1]
Position [340, 19, 365, 66]
ShowName off
Inputs "*/"
Port {
PortNumber 1
Name "Relative\nFocus"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
DataLogging off
DataLoggingNameMode "SignalName"
DataLoggingDecimateData off
DataLoggingDecimation "2"
DataLoggingLimitDataPoints off
DataLoggingMaxPoints "5000"
}
}
Block {
BlockType Reference
Name "Relative\nFocus"
Ports [1]
Position [410, 20, 445, 70]
SourceBlock "dspsnks4/Vector\nScope"
SourceType "Vector Scope"
ScopeProperties on
Domain "Time"
HorizSpan "150"
DisplayProperties off
AxisGrid on
Memory off
FrameNumber on
AxisLegend off
AxisZoom on
OpenScopeAtSimStart on
OpenScopeImmediately off
FigPos "[16 298 631 172]"
AxisProperties off
XUnits "Hertz"
XRange "[0...Fs/2]"
InheritXIncr on
XIncr "1"
XLabel "Time"
YUnits "dB"
YMin "0"
YMax "0.045"
YLabel "Amplitude"
LineProperties off
LineColors "[0 0 1]"
}
Line {
Name "Relative\nFocus"
SrcBlock "Product"
SrcPort 1
DstBlock "Relative\nFocus"
DstPort 1
}
Line {
SrcBlock "Focus\nMetrics"
SrcPort 1
DstBlock "Product"
DstPort 1
}
Line {
SrcBlock "Focus\nMetrics"
SrcPort 2
DstBlock "Product"
DstPort 2
}
Line {
SrcBlock "Drosophila\nFly"
SrcPort 1
Points [0, 0; 35, 0]
Branch {
DstBlock "Focus\nMetrics"
DstPort 1
}
Branch {
Points [0, 50]
DstBlock "Original"
DstPort 1
}
}
Annotation {
Name "2-D FFT and\nVideo Focus Assessment"
Position [335, 144]
ForegroundColor "blue"
FontSize 18
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -