📄 amedianfilter_hw.mdl
字号:
ForegroundColor "black"
BackgroundColor "white"
DropShadow off
NamePlacement "normal"
FontName "Helvetica"
FontSize 10
FontWeight "normal"
FontAngle "normal"
ShowName on
}
BlockParameterDefaults {
Block {
BlockType Demux
Outputs "4"
DisplayOption "none"
BusSelectionMode off
}
Block {
BlockType Inport
Port "1"
UseBusObject off
BusObject "BusObject"
BusOutputAsStruct off
PortDimensions "-1"
SampleTime "-1"
OutMin "[]"
OutMax "[]"
DataType "auto"
OutDataType "fixdt(1,16,0)"
OutScaling "[]"
SignalType "auto"
SamplingMode "auto"
LatchByDelayingOutsideSignal off
LatchByCopyingInsideSignal off
Interpolate on
}
Block {
BlockType "M-S-Function"
FunctionName "mlfile"
DisplayMFileStacktrace on
}
Block {
BlockType Outport
Port "1"
UseBusObject off
BusObject "BusObject"
BusOutputAsStruct off
PortDimensions "-1"
SampleTime "-1"
OutMin "[]"
OutMax "[]"
DataType "auto"
OutDataType "fixdt(1,16,0)"
OutScaling "[]"
SignalType "auto"
SamplingMode "auto"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Block {
BlockType RateTransition
Integrity on
Deterministic on
X0 "0"
OutPortSampleTime "-1"
}
Block {
BlockType "S-Function"
FunctionName "system"
SFunctionModules "''"
PortCounts "[]"
}
Block {
BlockType SubSystem
ShowPortLabels "FromPortIcon"
Permissions "ReadWrite"
PermitHierarchicalResolution "All"
TreatAsAtomicUnit off
SystemSampleTime "-1"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
RTWMemSecFuncInitTerm "Inherit from model"
RTWMemSecFuncExecute "Inherit from model"
RTWMemSecDataConstants "Inherit from model"
RTWMemSecDataInternal "Inherit from model"
RTWMemSecDataParameters "Inherit from model"
SimViewingDevice off
DataTypeOverride "UseLocalSettings"
MinMaxOverflowLogging "UseLocalSettings"
}
Block {
BlockType Sum
IconShape "rectangular"
Inputs "++"
CollapseMode "All dimensions"
CollapseDim "1"
InputSameDT on
OutMin "[]"
OutMax "[]"
OutDataTypeMode "Same as first input"
OutDataType "fixdt(1,16,0)"
OutScaling "[]"
LockScale off
RndMeth "Floor"
SaturateOnIntegerOverflow on
SampleTime "-1"
}
Block {
BlockType Terminator
}
Block {
BlockType UnitDelay
X0 "0"
SampleTime "1"
StateMustResolveToSignalObject off
RTWStateStorageClass "Auto"
}
Block {
BlockType Constant
Value "1"
VectorParams1D on
SamplingMode "Sample based"
OutMin "[]"
OutMax "[]"
OutDataTypeMode "Inherit from 'Constant value'"
OutDataType "fixdt(1,16,0)"
ConRadixGroup "Use specified scaling"
OutScaling "[]"
SampleTime "inf"
FramePeriod "inf"
}
}
AnnotationDefaults {
HorizontalAlignment "center"
VerticalAlignment "middle"
ForegroundColor "black"
BackgroundColor "white"
DropShadow off
FontName "Helvetica"
FontSize 10
FontWeight "normal"
FontAngle "normal"
UseDisplayTextAsClickCallback off
}
LineDefaults {
FontName "Helvetica"
FontSize 9
FontWeight "normal"
FontAngle "normal"
}
System {
Name "aMedianFilter_hw"
Location [18, 74, 1149, 824]
Open on
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000]
TiledPageScale 1
ShowPageBoundaries off
ZoomFactor "100"
ReportName "simulink-default.rpt"
Block {
BlockType SubSystem
Name "Image_Source"
Ports [0, 1]
Position [45, 361, 115, 419]
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
FunctionWithSeparateData off
Port {
PortNumber 1
Name "original_image"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
}
System {
Name "Image_Source"
Location [58, 511, 523, 661]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000]
TiledPageScale 1
ShowPageBoundaries off
ZoomFactor "100"
Block {
BlockType Reference
Name "Color Space\n Conversion1"
Ports [1, 1]
Position [165, 26, 265, 84]
SourceBlock "vipconversions/Color Space\n Conversion"
SourceType "Color Space Conversion"
conversion "Obsolete"
conversionActive "R'G'B' to intensity"
wp_str "D65"
rec "Rec. 601 (SDTV)"
sys "1125/60/2:1"
imagePorts "One multidimensional signal"
}
Block {
BlockType Reference
Name "Image From File"
Tag "vipblks_nd"
Ports [0, 1]
Position [25, 30, 100, 80]
DialogController "vipDDGCreate"
DialogControllerArgs "DataTag0"
SourceBlock "vipsrcs/Image From File"
SourceType "Image From File"
ShowPortLabels "FromPortIcon"
SystemSampleTime "-1"
FunctionWithSeparateData off
RTWMemSecFuncInitTerm "Inherit from model"
RTWMemSecFuncExecute "Inherit from model"
RTWMemSecDataConstants "Inherit from model"
RTWMemSecDataInternal "Inherit from model"
RTWMemSecDataParameters "Inherit from model"
FileName "lena_gray256_noise.TIF"
imagePorts "One multidimensional signal"
Ts "227*227"
ImageDataType "uint8"
Signed on
WordLength "16"
sdImageDataType "uint(8)"
FractionLengthMode "User-defined"
FractionLength "15"
OutPortLabels "R"
}
Block {
BlockType RateTransition
Name "Rate Transition"
Position [355, 34, 385, 76]
Integrity off
Deterministic off
OutPortSampleTime "1"
}
Block {
BlockType Outport
Name "I"
Position [430, 48, 460, 62]
IconDisplay "Port number"
}
Line {
SrcBlock "Image From File"
SrcPort 1
DstBlock "Color Space\n Conversion1"
DstPort 1
}
Line {
SrcBlock "Color Space\n Conversion1"
SrcPort 1
DstBlock "Rate Transition"
DstPort 1
}
Line {
SrcBlock "Rate Transition"
SrcPort 1
DstBlock "I"
DstPort 1
}
Annotation {
Name "Image dims\n 227x227"
Position [60, 126]
}
}
}
Block {
BlockType SubSystem
Name "Image_Viewers"
Ports [3]
Position [980, 193, 1065, 337]
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
FunctionWithSeparateData off
System {
Name "Image_Viewers"
Location [777, 99, 1269, 695]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000]
TiledPageScale 1
ShowPageBoundaries off
ZoomFactor "100"
Block {
BlockType Inport
Name "I_1d_MF"
Position [35, 138, 65, 152]
IconDisplay "Port number"
}
Block {
BlockType Inport
Name "orig_I"
Position [185, 343, 215, 357]
Port "2"
IconDisplay "Port number"
}
Block {
BlockType Inport
Name "I_2d_MF"
Position [55, 453, 85, 467]
Port "3"
IconDisplay "Port number"
}
Block {
BlockType RateTransition
Name "Rate Transition1"
Position [110, 439, 140, 481]
Integrity off
OutPortSampleTime "227*227"
}
Block {
BlockType RateTransition
Name "Rate Transition3"
Position [90, 124, 120, 166]
Integrity off
OutPortSampleTime "227*227"
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [180, 225, 200, 245]
ShowName off
Inputs "+-"
CollapseMode "All dimensions"
InputSameDT off
OutDataTypeMode "uint8"
OutDataType "sfix(16)"
OutScaling "2^0"
SaturateOnIntegerOverflow off
}
Block {
BlockType Reference
Name "diff_1d_2d"
Ports [1]
Position [245, 203, 370, 267]
DialogController "vipDDGCreate"
DialogControllerArgs "DataTag1"
SourceBlock "vipsnks/Video Viewer"
SourceType "Video Viewer"
inputType "Obsolete7b"
imagePorts "One multidimensional signal"
useColorMap off
colormapValue "jet(256);"
specRange off
minInputVal "0"
maxInputVal "255"
FigPos "[902 540 237 176]"
AxisZoom on
trueSizedOnce on
}
Block {
BlockType Reference
Name "image_with_noise"
Ports [1]
Position [250, 318, 375, 382]
DialogController "vipDDGCreate"
DialogControllerArgs "DataTag2"
SourceBlock "vipsnks/Video Viewer"
SourceType "Video Viewer"
inputType "Obsolete7b"
imagePorts "One multidimensional signal"
useColorMap off
colormapValue "jet(256);"
specRange off
minInputVal "0"
maxInputVal "255"
FigPos "[902 540 237 176]"
AxisZoom on
trueSizedOnce on
}
Block {
BlockType Reference
Name "med_filter_1d"
Ports [1]
Position [250, 113, 375, 177]
DialogController "vipDDGCreate"
DialogControllerArgs "DataTag3"
SourceBlock "vipsnks/Video Viewer"
SourceType "Video Viewer"
inputType "Obsolete7b"
imagePorts "One multidimensional signal"
useColorMap off
colormapValue "jet(256);"
specRange off
minInputVal "0"
maxInputVal "255"
FigPos "[902 540 237 176]"
AxisZoom on
trueSizedOnce on
}
Block {
BlockType Reference
Name "med_filter_2d"
Ports [1]
Position [245, 428, 370, 492]
DialogController "vipDDGCreate"
DialogControllerArgs "DataTag4"
SourceBlock "vipsnks/Video Viewer"
SourceType "Video Viewer"
inputType "Obsolete7b"
imagePorts "One multidimensional signal"
useColorMap off
colormapValue "jet(256);"
specRange off
minInputVal "0"
maxInputVal "255"
FigPos "[902 540 237 176]"
AxisZoom on
trueSizedOnce on
}
Line {
SrcBlock "Rate Transition1"
SrcPort 1
Points [10, 0]
Branch {
DstBlock "med_filter_2d"
DstPort 1
}
Branch {
Points [0, -220]
DstBlock "Sum"
DstPort 2
}
}
Line {
SrcBlock "Rate Transition3"
SrcPort 1
Points [25, 0]
Branch {
DstBlock "med_filter_1d"
DstPort 1
}
Branch {
Points [0, 85]
DstBlock "Sum"
DstPort 1
}
}
Line {
SrcBlock "Sum"
SrcPort 1
DstBlock "diff_1d_2d"
DstPort 1
}
Line {
SrcBlock "orig_I"
SrcPort 1
DstBlock "image_with_noise"
DstPort 1
}
Line {
SrcBlock "I_1d_MF"
SrcPort 1
DstBlock "Rate Transition3"
DstPort 1
}
Line {
SrcBlock "I_2d_MF"
SrcPort 1
DstBlock "Rate Transition1"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "MedianFilter_1D_HW"
Ports [2, 2]
Position [430, 47, 575, 218]
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
FunctionWithSeparateData off
System {
Name "MedianFilter_1D_HW"
Location [752, 364, 1407, 631]
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -