⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 vid_srv.mdl

📁 motion detection using matlab
💻 MDL
📖 第 1 页 / 共 3 页
字号:
	}
	Line {
	  Labels		  [0, 0]
	  SrcBlock		  "Intensity"
	  SrcPort		  1
	  Points		  [10, 0; 15, 0]
	  Branch {
	    DstBlock		    "Integer Delay"
	    DstPort		    1
	  }
	  Branch {
	    Points		    [0, 45]
	    DstBlock		    "Data Type Conversion1"
	    DstPort		    1
	  }
	}
	Line {
	  SrcBlock		  "Sum"
	  SrcPort		  1
	  DstBlock		  "Abs"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Integer Delay"
	  SrcPort		  1
	  DstBlock		  "Sum"
	  DstPort		  1
	}
	Line {
	  Name			  "G"
	  SrcBlock		  "Abs"
	  SrcPort		  1
	  DstBlock		  "Reshape"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Reshape"
	  SrcPort		  1
	  DstBlock		  "Sum of\nElements"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Sum of\nElements"
	  SrcPort		  1
	  DstBlock		  "SAD"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Data Type Conversion1"
	  SrcPort		  1
	  Points		  [70, 0]
	  DstBlock		  "Sum"
	  DstPort		  2
	}
      }
    }
    Block {
      BlockType		      Display
      Name		      "Motion Event Count"
      Ports		      [1]
      Position		      [905, 333, 995, 357]
      Decimation	      "1"
      Lockdown		      off
    }
    Block {
      BlockType		      Reference
      Name		      "Motion Frames"
      Ports		      [1]
      Position		      [940, 260, 985, 310]
      DialogController	      "dspdialog.MatrixViewer"
      DialogControllerArgs    "DataTag0"
      SourceBlock	      "dspsnks4/Matrix\nViewer"
      SourceType	      "Matrix Viewer"
      ShowPortLabels	      off
      ImageParams	      off
      CMapStr		      "gray(256)"
      YMin		      "0"
      YMax		      "255"
      AxisColorbar	      off
      AxisParams	      off
      AxisOrigin	      "Upper left corner"
      XLabel		      "X-axis"
      YLabel		      "Y-axis"
      ZLabel		      "Z-axis"
      FigPos		      "[260 371 238 199]"
      AxisZoom		      on
    }
    Block {
      BlockType		      Mux
      Name		      "Mux"
      Ports		      [2, 1]
      Position		      [740, 199, 745, 226]
      ShowName		      off
      Inputs		      "2"
      DisplayOption	      "bar"
    }
    Block {
      BlockType		      Reference
      Name		      "Original Frames"
      Ports		      [1]
      Position		      [360, 305, 405, 355]
      DialogController	      "dspdialog.MatrixViewer"
      DialogControllerArgs    "DataTag1"
      SourceBlock	      "dspsnks4/Matrix\nViewer"
      SourceType	      "Matrix Viewer"
      ShowPortLabels	      off
      ImageParams	      off
      CMapStr		      "gray(256)"
      YMin		      "0"
      YMax		      "255"
      AxisColorbar	      off
      AxisParams	      on
      AxisOrigin	      "Upper left corner"
      XLabel		      "X-axis"
      YLabel		      "Y-axis"
      ZLabel		      "Z-axis"
      FigPos		      "[14 370 238 199]"
      AxisZoom		      on
    }
    Block {
      BlockType		      RelationalOperator
      Name		      "Relational\nOperator"
      Position		      [750, 233, 765, 262]
      ShowName		      off
      Operator		      ">"
      LogicOutDataTypeMode    "boolean"
      OutDataTypeStr	      "boolean"
      Port {
	PortNumber		1
	Name			"Detect"
	RTWStorageClass		"Auto"
	DataLoggingNameMode	"SignalName"
      }
    }
    Block {
      BlockType		      SubSystem
      Name		      "Sample\nand Hold"
      Ports		      [1, 2, 0, 1]
      Position		      [800, 276, 860, 314]
      ShowName		      off
      AncestorBlock	      "dspsigops/Sample\nand Hold"
      CopyFcn		      "dspfixptcopycallback"
      TreatAsAtomicUnit	      on
      MinAlgLoopOccurrences   off
      PropExecContextOutsideSubsystem off
      RTWSystemCode	      "Auto"
      FunctionWithSeparateData off
      Opaque		      off
      RequestExecContextInheritance off
      MaskHideContents	      off
      MaskType		      "Sample and Hold"
      MaskDescription	      "Sample and hold input signal."
      MaskHelp		      "web(dspbhelp);"
      MaskPromptString	      "Trigger type:|Initial condition:"
      MaskStyleString	      "popup(Rising edge|Falling edge|Either edge),edit"
      MaskTunableValueString  "off,off"
      MaskCallbackString      "|"
      MaskEnableString	      "on,on"
      MaskVisibilityString    "on,on"
      MaskToolTipString	      "on,on"
      MaskVarAliasString      ","
      MaskVariables	      "trig=@1;initCond=@2;"
      MaskInitialization      "switch trig\ncase 1, s='rising';\ncase 2, s='falling';\ncase 3, s='either';\nend\nset_p"
      "aram([gcb '/Trigger'],'triggertype',s);\n"
      MaskDisplay	      "disp('S/H')"
      MaskSelfModifiable      on
      MaskIconFrame	      on
      MaskIconOpaque	      off
      MaskIconRotate	      "none"
      MaskIconUnits	      "autoscale"
      MaskValueString	      "Either edge|0"
      MaskTabNameString	      ","
      System {
	Name			"Sample\nand Hold"
	Location		[236, 506, 544, 672]
	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			  "In"
	  Position		  [55, 20, 75, 40]
	  ShowName		  off
	  IconDisplay		  "Port number"
	  OutDataType		  "sfix(16)"
	  OutScaling		  "2^0"
	}
	Block {
	  BlockType		  TriggerPort
	  Name			  "Trigger"
	  Ports			  []
	  Position		  [20, 15, 40, 35]
	  TriggerType		  "either"
	  ZeroCross		  off
	}
	Block {
	  BlockType		  Constant
	  Name			  "Constant"
	  Position		  [55, 89, 70, 111]
	  ShowName		  off
	  OutDataTypeMode	  "int32"
	  OutDataType		  "sfix(16)"
	  OutScaling		  "2^0"
	  OutDataTypeStr	  "int32"
	}
	Block {
	  BlockType		  Reference
	  Name			  "Integer Delay"
	  Ports			  [1, 1]
	  Position		  [150, 90, 190, 110]
	  ShowName		  off
	  SourceBlock		  "dspobslib/Integer Delay"
	  SourceType		  "Integer Delay"
	  delay			  "1"
	  ic			  "0"
	  reset_popup		  "None"
	}
	Block {
	  BlockType		  Sum
	  Name			  "Sum"
	  Ports			  [2, 1]
	  Position		  [100, 90, 120, 110]
	  ShowName		  off
	  IconShape		  "round"
	  Inputs		  "++|"
	  InputSameDT		  off
	  OutDataType		  "sfix(16)"
	  OutScaling		  "2^0"
	  SaturateOnIntegerOverflow off
	}
	Block {
	  BlockType		  Outport
	  Name			  "Last"
	  Position		  [185, 20, 205, 40]
	  IconDisplay		  "Port number"
	  InitialOutput		  "initCond"
	}
	Block {
	  BlockType		  Outport
	  Name			  " Cnt"
	  Position		  [165, 120, 185, 140]
	  Port			  "2"
	  IconDisplay		  "Port number"
	}
	Line {
	  SrcBlock		  "In"
	  SrcPort		  1
	  DstBlock		  "Last"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Constant"
	  SrcPort		  1
	  DstBlock		  "Sum"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Sum"
	  SrcPort		  1
	  Points		  [5, 0]
	  Branch {
	    DstBlock		    "Integer Delay"
	    DstPort		    1
	  }
	  Branch {
	    Points		    [0, 30]
	    DstBlock		    " Cnt"
	    DstPort		    1
	  }
	}
	Line {
	  SrcBlock		  "Integer Delay"
	  SrcPort		  1
	  Points		  [10, 0; 0, -35; -95, 0]
	  DstBlock		  "Sum"
	  DstPort		  1
	}
      }
    }
    Block {
      BlockType		      Reference
      Name		      "Signal From\nWorkspace1"
      Ports		      [0, 1]
      Position		      [240, 226, 290, 254]
      ShowName		      off
      SourceBlock	      "dspsrcs4/Signal From\nWorkspace"
      SourceType	      "Signal From Workspace"
      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"
      X			      "vG3"
      Ts		      "1/15"
      nsamps		      "1"
      OutputAfterFinalValue   "Cyclic repetition"
      ignoreOrWarnInputAndFrameLengths off
    }
    Block {
      BlockType		      Sum
      Name		      "Sum"
      Ports		      [2, 1]
      Position		      [655, 90, 675, 110]
      ShowName		      off
      IconShape		      "round"
      Inputs		      "|+-"
      InputSameDT	      off
      OutDataTypeMode	      "Inherit via internal rule"
      OutDataType	      "sfix(16)"
      OutScaling	      "2^0"
      OutDataTypeStr	      "Inherit: Inherit via internal rule"
      SaturateOnIntegerOverflow	off
    }
    Block {
      BlockType		      Reference
      Name		      "Threshold"
      Ports		      [0, 1]
      Position		      [460, 245, 500, 265]
      SourceBlock	      "dspobslib/DSP\nConstant"
      SourceType	      "DSP Constant"
      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"
      Value		      "1e5"
      SampleMode	      "Discrete"
      discreteOutput	      "Sample-based"
      continuousOutput	      "Sample-based"
      sampTime		      "1/30"
      framePeriod	      "1/30"
      additionalParams	      on
      allowOverrides	      on
      dataType		      "Inherit via back propagation"
      isSigned		      on
      wordLen		      "16"
      udDataType	      "sfix(16)"
      fracBitsMode	      "Best precision"
      numFracBits	      "15"
      InterpretAs1D	      "off"
      Ts		      "1/30"
      FramebasedOutput	      "off"
    }
    Line {
      Labels		      [0, 0]
      SrcBlock		      "Signal From\nWorkspace1"
      SrcPort		      1
      Points		      [35, 0]
      Branch {
	DstBlock		"Motion Energy"
	DstPort			1
      }
      Branch {
	Points			[0, 55]
	Branch {
	  Points		  [0, 35]
	  DstBlock		  "Original Frames"
	  DstPort		  1
	}
	Branch {
	  DstBlock		  "Sample\nand Hold"
	  DstPort		  1
	}
      }
    }
    Line {
      SrcBlock		      "Motion Energy"
      SrcPort		      1
      Points		      [30, 0]
      Branch {
	Points			[40, 0]
	Branch {
	  Labels		  [-1, 1]
	  DstBlock		  "Relational\nOperator"
	  DstPort		  1
	}
	Branch {
	  Points		  [0, -35]
	  DstBlock		  "Mux"
	  DstPort		  1
	}
      }
      Branch {
	Points			[0, -140]
	DstBlock		"Sum"
	DstPort			1
      }
    }
    Line {
      SrcBlock		      "Mux"
      SrcPort		      1
      DstBlock		      "Motion\nThreshold"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Threshold"
      SrcPort		      1
      Points		      [25, 0]
      Branch {
	Points			[135, 0]
	Branch {
	  DstBlock		  "Relational\nOperator"
	  DstPort		  2
	}
	Branch {
	  DstBlock		  "Sum"
	  DstPort		  2
	}
      }
      Branch {
	Points			[0, -35]
	DstBlock		"Mux"
	DstPort			2
      }
    }
    Line {
      Name		      "Detect"
      Labels		      [0, 0]
      SrcBlock		      "Relational\nOperator"
      SrcPort		      1
      Points		      [60, 0]
      DstBlock		      "Sample\nand Hold"
      DstPort		      trigger
    }
    Line {
      SrcBlock		      "Sample\nand Hold"
      SrcPort		      1
      DstBlock		      "Motion Frames"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Sample\nand Hold"
      SrcPort		      2
      Points		      [25, 0]
      DstBlock		      "Motion Event Count"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Sum"
      SrcPort		      1
      DstBlock		      "ALARM"
      DstPort		      1
    }
    Annotation {
      Position		      [789, 377]
    }
  }
}
MatData {
  NumRecords		  2
  DataRecord {
    Tag			    DataTag1
    Data		    "  %)30     .    ,     8    (    !          %    \"                0         0          "
  }
  DataRecord {
    Tag			    DataTag0
    Data		    "  %)30     .    ,     8    (    !          %    \"                0         0          "
  }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -