Model { Name "surveillance" Version 6.5 MdlSubVersion 0 GraphicalInterface { NumRootInports 0 NumRootOutports 0 ParameterArgumentNames "" ComputedModelVersion "1.5" NumModelReferences 0 NumTestPointedSignals 0 } SavedCharacterEncoding "windows-1255" SaveDefaultBlockParams on SampleTimeColors off LibraryLinkDisplay "none" WideLines off ShowLineDimensions off ShowPortDataTypes off ShowLoopsOnError on IgnoreBidirectionalLines off ShowStorageClass off ShowTestPointIcons on ShowViewerIcons on SortedOrder off ExecutionContextIcon off ShowLinearizationAnnotations on ScopeRefreshTime 0.035000 OverrideScopeRefreshTime on DisableAllScopes off DataTypeOverride "UseLocalSettings" MinMaxOverflowLogging "UseLocalSettings" MinMaxOverflowArchiveMode "Overwrite" BlockNameDataTip off BlockParametersDataTip off BlockDescriptionStringDataTip off ToolBar on StatusBar on BrowserShowLibraryLinks off BrowserLookUnderMasks off Created "Wed Oct 17 09:09:10 2007" Creator "jacobf" UpdateHistory "UpdateHistoryNever" ModifiedByFormat "%" LastModifiedBy "JacobF" ModifiedDateFormat "%" LastModifiedDate "Tue Oct 30 19:55:25 2007" ModelVersionFormat "1.%" ConfigurationManager "None" LinearizationMsg "none" Profile off ParamWorkspaceSource "MATLABWorkspace" AccelSystemTargetFile "accel.tlc" AccelTemplateMakefile "accel_default_tmf" AccelMakeCommand "make_rtw" TryForcingSFcnDF off RecordCoverage off CovPath "/" CovSaveName "covdata" CovMetricSettings "dw" CovNameIncrementing off CovHtmlReporting on covSaveCumulativeToWorkspaceVar on CovSaveSingleToWorkspaceVar on CovCumulativeVarName "covCumulativeData" CovCumulativeReport off CovReportOnPause on ExtModeBatchMode off ExtModeEnableFloating on ExtModeTrigType "manual" ExtModeTrigMode "normal" ExtModeTrigPort "1" ExtModeTrigElement "any" ExtModeTrigDuration 1000 ExtModeTrigDurationFloating "auto" ExtModeTrigHoldOff 0 ExtModeTrigDelay 0 ExtModeTrigDirection "rising" ExtModeTrigLevel 0 ExtModeArchiveMode "off" ExtModeAutoIncOneShot off ExtModeIncDirWhenArm off ExtModeAddSuffixToVar off ExtModeWriteAllDataToWs off ExtModeArmWhenConnect on ExtModeSkipDownloadWhenConnect off ExtModeLogAll on ExtModeAutoUpdateStatusClock on BufferReuse on ProdHWDeviceType "32-bit Generic" ShowModelReferenceBlockVersion off ShowModelReferenceBlockIO off Array { Type "Handle" Dimension 1 Simulink.ConfigSet { $ObjectID 1 Version "1.2.0" Array { Type "Handle" Dimension 7 Simulink.SolverCC { $ObjectID 2 Version "1.2.0" StartTime "0.0" StopTime "inf" AbsTol "auto" FixedStep "auto" InitialStep "auto" MaxNumMinSteps "-1" MaxOrder 5 ConsecutiveZCsStepRelTol "10*128*eps" MaxConsecutiveZCs "1000" ExtrapolationOrder 4 NumberNewtonIterations 1 MaxStep "auto" MinStep "auto" MaxConsecutiveMinStep "1" RelTol "1e-3" SolverMode "Auto" Solver "VariableStepDiscrete" SolverName "VariableStepDiscrete" ZeroCrossControl "UseLocalSettings" AlgebraicLoopSolver "TrustRegion" SolverResetMethod "Fast" PositivePriorityOrder off AutoInsertRateTranBlk off SampleTimeConstraint "Unconstrained" RateTranMode "Deterministic" } Simulink.DataIOCC { $ObjectID 3 Version "1.2.0" Decimation "1" ExternalInput "[t, u]" FinalStateName "xFinal" InitialState "xInitial" LimitDataPoints on MaxDataPoints "1000" LoadExternalInput off LoadInitialState off SaveFinalState off SaveFormat "Array" SaveOutput on SaveState off SignalLogging on InspectSignalLogs off SaveTime on StateSaveName "xout" TimeSaveName "tout" OutputSaveName "yout" SignalLoggingName "logsout" OutputOption "RefineOutputTimes" OutputTimes "[]" Refine "1" } Simulink.OptimizationCC { $ObjectID 4 Array { Type "Cell" Dimension 5 Cell "ZeroExternalMemoryAtStartup" Cell "ZeroInternalMemoryAtStartup" Cell "InitFltsAndDblsToZero" Cell "OptimizeModelRefInitCode" Cell "NoFixptDivByZeroProtection" PropName "DisabledProps" } Version "1.2.0" BlockReduction on BooleanDataType on ConditionallyExecuteInputs on InlineParams off InlineInvariantSignals off OptimizeBlockIOStorage on BufferReuse on EnforceIntegerDowncast on ExpressionFolding on FoldNonRolledExpr on LocalBlockOutputs on ParameterPooling on RollThreshold 5 SystemCodeInlineAuto off StateBitsets off DataBitsets off UseTempVars off ZeroExternalMemoryAtStartup on ZeroInternalMemoryAtStartup on InitFltsAndDblsToZero on NoFixptDivByZeroProtection off EfficientFloat2IntCast off OptimizeModelRefInitCode off LifeSpan "inf" BufferReusableBoundary on } Simulink.DebuggingCC { $ObjectID 5 Version "1.2.0" RTPrefix "error" ConsistencyChecking "none" ArrayBoundsChecking "none" SignalInfNanChecking "none" ReadBeforeWriteMsg "UseLocalSettings" WriteAfterWriteMsg "UseLocalSettings" WriteAfterReadMsg "UseLocalSettings" AlgebraicLoopMsg "warning" ArtificialAlgebraicLoopMsg "warning" CheckSSInitialOutputMsg on CheckExecutionContextPreStartOutputMsg off CheckExecutionContextRuntimeOutputMsg off SignalResolutionControl "TryResolveAllWithWarning" BlockPriorityViolationMsg "warning" MinStepSizeMsg "warning" TimeAdjustmentMsg "none" MaxConsecutiveZCsMsg "error" SolverPrmCheckMsg "warning" InheritedTsInSrcMsg "warning" DiscreteInheritContinuousMsg "warning" MultiTaskDSMMsg "error" MultiTaskCondExecSysMsg "error" MultiTaskRateTransMsg "error" SingleTaskRateTransMsg "none" TasksWithSamePriorityMsg "warning" SigSpecEnsureSampleTimeMsg "warning" CheckMatrixSingularityMsg "none" IntegerOverflowMsg "warning" Int32ToFloatConvMsg "warning" ParameterDowncastMsg "error" ParameterOverflowMsg "error" ParameterUnderflowMsg "none" ParameterPrecisionLossMsg "warning" UnderSpecifiedDataTypeMsg "none" UnnecessaryDatatypeConvMsg "none" VectorMatrixConversionMsg "none" InvalidFcnCallConnMsg "error" FcnCallInpInsideContextMsg "Use local settings" SignalLabelMismatchMsg "none" UnconnectedInputMsg "warning" UnconnectedOutputMsg "warning" UnconnectedLineMsg "warning" SFcnCompatibilityMsg "none" UniqueDataStoreMsg "none" BusObjectLabelMismatch "warning" RootOutportRequireBusObject "warning" AssertControl "UseLocalSettings" EnableOverflowDetection off ModelReferenceIOMsg "none" ModelReferenceVersionMismatchMessage "none" ModelReferenceIOMismatchMessage "none" ModelReferenceCSMismatchMessage "none" ModelReferenceSimTargetVerbose off UnknownTsInhSupMsg "warning" ModelReferenceDataLoggingMessage "warning" ModelReferenceSymbolNameMessage "warning" ModelReferenceExtraNoncontSigs "error" StrictBusMsg "Warning" } Simulink.HardwareCC { $ObjectID 6 Version "1.2.0" ProdBitPerChar 8 ProdBitPerShort 16 ProdBitPerInt 32 ProdBitPerLong 32 ProdIntDivRoundTo "Undefined" ProdEndianess "Unspecified" ProdWordSize 32 ProdShiftRightIntArith on ProdHWDeviceType "32-bit Generic" TargetBitPerChar 8 TargetBitPerShort 16 TargetBitPerInt 32 TargetBitPerLong 32 TargetShiftRightIntArith on TargetIntDivRoundTo "Undefined" TargetEndianess "Unspecified" TargetWordSize 32 TargetTypeEmulationWarnSuppressLevel 0 TargetPreprocMaxBitsSint 32 TargetPreprocMaxBitsUint 32 TargetHWDeviceType "Specified" TargetUnknown off ProdEqTarget on } Simulink.ModelReferenceCC { $ObjectID 7 Version "1.2.0" UpdateModelReferenceTargets "IfOutOfDateOrStructuralChange" CheckModelReferenceTargetMessage "error" ModelReferenceNumInstancesAllowed "Multi" ModelReferencePassRootInputsByReference on ModelReferenceMinAlgLoopOccurrences off } Simulink.RTWCC { $BackupClass "Simulink.RTWCC" $ObjectID 8 Array { Type "Cell" Dimension 1 Cell "IncludeHyperlinkInReport" PropName "DisabledProps" } Version "1.2.0" SystemTargetFile "grt.tlc" GenCodeOnly off MakeCommand "make_rtw" GenerateMakefile on TemplateMakefile "grt_default_tmf" GenerateReport off SaveLog off RTWVerbose on RetainRTWFile off ProfileTLC off TLCDebug off TLCCoverage off TLCAssert off ProcessScriptMode "Default" ConfigurationMode "Optimized" ConfigAtBuild off IncludeHyperlinkInReport off LaunchReport off TargetLang "C" IncludeBusHierarchyInRTWFileBlockHierarchyMap off IncludeERTFirstTime off Array { Type "Handle" Dimension 2 Simulink.CodeAppCC { $ObjectID 9 Array { Type "Cell" Dimension 16 Cell "IgnoreCustomStorageClasses" Cell "InsertBlockDesc" Cell "SFDataObjDesc" Cell "SimulinkDataObjDesc" Cell "DefineNamingRule" Cell "SignalNamingRule" Cell "ParamNamingRule" Cell "InlinedPrmAccess" Cell "CustomSymbolStr" Cell "CustomSymbolStrGlobalVar" Cell "CustomSymbolStrType" Cell "CustomSymbolStrField" Cell "CustomSymbolStrFcn" Cell "CustomSymbolStrBlkIO" Cell "CustomSymbolStrTmpVar" Cell "CustomSymbolStrMacro" PropName "DisabledProps" } Version "1.2.0" ForceParamTrailComments off GenerateComments on IgnoreCustomStorageClasses on IncHierarchyInIds off MaxIdLength 31 PreserveName off PreserveNameWithParent off ShowEliminatedStatement off IncAutoGenComments off SimulinkDataObjDesc off SFDataObjDesc off IncDataTypeInIds off PrefixModelToSubsysFcnNames on MangleLength 1 CustomSymbolStrGlobalVar "$R$N$M" CustomSymbolStrType "$N$R$M" CustomSymbolStrField "$N$M" CustomSymbolStrFcn "$R$N$M$F" CustomSymbolStrBlkIO "rtb_$N$M" CustomSymbolStrTmpVar "$N$M" CustomSymbolStrMacro "$R$N$M" DefineNamingRule "None" ParamNamingRule "None" SignalNamingRule "None" InsertBlockDesc off SimulinkBlockComments on EnableCustomComments off InlinedPrmAccess "Literals" ReqsInCode off } Simulink.GRTTargetCC { $BackupClass "Simulink.TargetCC" $ObjectID 10 Array { Type "Cell" Dimension 13 Cell "IncludeMdlTerminateFcn" Cell "CombineOutputUpdateFcns" Cell "SuppressErrorStatus" Cell "ERTCustomFileBanners" Cell "GenerateSampleERTMain" Cell "GenerateTestInterfaces" Cell "MultiInstanceERTCode" Cell "PurelyIntegerCode" Cell "SupportNonFinite" Cell "SupportComplex" Cell "SupportAbsoluteTime" Cell "SupportContinuousTime" Cell "SupportNonInlinedSFcns" PropName "DisabledProps" } Version "1.2.0" TargetFcnLib "ansi_tfl_tmw.mat" TargetLibSuffix "" TargetPreCompLibLocation "" GenFloatMathFcnCalls "ANSI_C" UtilityFuncGeneration "Auto" GenerateFullHeader on GenerateSampleERTMain off GenerateTestInterfaces off IsPILTarget off ModelReferenceCompliant on IncludeMdlTerminateFcn on CombineOutputUpdateFcns off SuppressErrorStatus off IncludeFileDelimiter "Auto" ERTCustomFileBanners off SupportAbsoluteTime on LogVarNameModifier "rt_" MatFileLogging on MultiInstanceERTCode off SupportNonFinite on SupportComplex on PurelyIntegerCode off SupportContinuousTime on SupportNonInlinedSFcns on EnableShiftOperators on ParenthesesLevel "Nominal" ExtMode off ExtModeStaticAlloc off ExtModeTesting off ExtModeStaticAllocSize 1000000 ExtModeTransport 0 ExtModeMexFile "ext_comm" RTWCAPISignals off RTWCAPIParams off RTWCAPIStates off GenerateASAP2 off } PropName "Components" } } PropName "Components" } Name "Configuration" SimulationMode "normal" CurrentDlgPage "Solver" } PropName "ConfigurationSets" } Simulink.ConfigSet { $PropName "ActiveConfigurationSet" $ObjectID 1 } BlockDefaults { Orientation "right" ForegroundColor "black" BackgroundColor "white" DropShadow off NamePlacement "normal" FontName "Arial" FontSize 10 FontWeight "normal" FontAngle "normal" ShowName on } BlockParameterDefaults { Block { BlockType Abs } Block { BlockType Concatenate NumInputs "2" } Block { BlockType Constant } Block { BlockType DataTypeConversion OutDataTypeMode "Inherit via back propagation" OutDataType "sfix(16)" OutScaling "2^0" LockScale off ConvertRealWorld "Real World Value (RWV)" RndMeth "Zero" SaturateOnIntegerOverflow on SampleTime "-1" } Block { BlockType Display Format "short" Decimation "10" Floating off SampleTime "-1" } Block { BlockType FrameConversion OutFrame "Frame based" } Block { BlockType Gain Gain "1" Multiplication "Element-wise(K.*u)" ParameterDataTypeMode "Same as input" ParameterDataType "sfix(16)" ParameterScalingMode "Best Precision: Matrix-wise" ParameterScaling "2^0" OutDataTypeMode "Same as input" OutDataType "sfix(16)" OutScaling "2^0" LockScale off RndMeth "Floor" SaturateOnIntegerOverflow on SampleTime "-1" } Block { BlockType Inport Port "1" UseBusObject off BusObject "BusObject" BusOutputAsStruct off PortDimensions "-1" SampleTime "-1" DataType "auto" OutDataType "sfix(16)" OutScaling "2^0" SignalType "auto" SamplingMode "auto" LatchByDelayingOutsideSignal off LatchByCopyingInsideSignal off Interpolate on } Block { BlockType "M-S-Function" FunctionName "mlfile" } Block { BlockType Outport Port "1" UseBusObject off BusObject "BusObject" BusOutputAsStruct off PortDimensions "-1" SampleTime "-1" DataType "auto" OutDataType "sfix(16)" OutScaling "2^0" SignalType "auto" SamplingMode "auto" OutputWhenDisabled "held" InitialOutput "[]" } Block { BlockType RelationalOperator Operator ">=" InputSameDT on LogicOutDataTypeMode "Logical (see Configuration Parameters: Optimiza" "tion)" LogicDataType "uint(8)" ZeroCross on SampleTime "-1" } Block { BlockType Scope ModelBased off TickLabels "OneTimeTick" ZoomMode "on" Grid "on" TimeRange "auto" YMin "-5" YMax "5" SaveToWorkspace off SaveName "ScopeData" LimitDataPoints on MaxDataPoints "5000" Decimation "1" SampleInput off SampleTime "-1" } Block { BlockType "S-Function" FunctionName "system" SFunctionModules "''" PortCounts "[]" } Block { BlockType SubSystem ShowPortLabels on 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 "++" InputSameDT on OutDataTypeMode "Same as first input" OutDataType "sfix(16)" OutScaling "2^0" LockScale off RndMeth "Floor" SaturateOnIntegerOverflow on SampleTime "-1" } Block { BlockType Switch Criteria "u2 >= Threshold" Threshold "0" InputSameDT on OutDataTypeMode "Inherit via internal rule" RndMeth "Floor" SaturateOnIntegerOverflow on ZeroCross on SampleTime "-1" } Block { BlockType Terminator } Block { BlockType TriggerPort TriggerType "rising" StatesWhenEnabling "inherit" ShowOutputPort off OutputDataType "auto" SampleTimeType "triggered" SampleTime "1" ZeroCross on } } AnnotationDefaults { HorizontalAlignment "center" VerticalAlignment "middle" ForegroundColor "black" BackgroundColor "white" DropShadow off FontName "Arial" FontSize 10 FontWeight "normal" FontAngle "normal" } LineDefaults { FontName "Arial" FontSize 9 FontWeight "normal" FontAngle "normal" } System { Name "surveillance" Location [35, 150, 1010, 587] Open on ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "A4" PaperUnits "centimeters" TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" ReportName "simulink-default.rpt" Block { BlockType Scope Name " " Ports [1] Position [775, 134, 805, 166] NamePlacement "alternate" Floating off Location [370, 211, 851, 538] Open off NumInputPorts "1" List { ListType AxesTitles axes1 "%" } TimeRange "18" YMin "0" YMax "500000" SaveName "ScopeData1" DataFormat "StructureWithTime" SampleTime "0" } Block { BlockType Constant Name "Constant" Position [200, 215, 230, 245] Value "1" VectorParams1D on SamplingMode "Sample based" OutDataTypeMode "Inherit from 'Constant value'" OutDataType "sfix(16)" ConRadixGroup "Use specified scaling" OutScaling "2^0" SampleTime "inf" FramePeriod "inf" } Block { BlockType Reference Name "DSP\nConstant1" Ports [0, 1] Position [195, 310, 255, 340] ShowName off SourceBlock "dspsrcs4/DSP\nConstant" SourceType "DSP Constant" ShowPortLabels on 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 "1.5e5" SampleMode "Discrete" discreteOutput "Sample-based" continuousOutput "Sample-based" sampTime "1/15" framePeriod "2" additionalParams on allowOverrides on dataType "int32" isSigned on wordLen "16" udDataType "sfix(16)" fracBitsMode "Best precision" numFracBits "15" InterpretAs1D "-inf" Ts "-inf" FramebasedOutput "-inf" } Block { BlockType Display Name "Motion Event Count" Ports [1] Position [755, 246, 835, 274] ShowName off Decimation "1" Lockdown off } Block { BlockType Reference Name "Motion Frames" Ports [1] Position [725, 80, 805, 110] ShowName off 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 "[326 381 283 245]" AxisZoom on } Block { BlockType Reference Name "Motion Frames1" Ports [1] Position [45, 96, 110, 124] Orientation "left" NamePlacement "alternate" ShowName off 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 off AxisOrigin "Upper left corner" XLabel "X-axis" YLabel "Y-axis" ZLabel "Z-axis" FigPos "[39 384 279 242]" AxisZoom on } Block { BlockType Terminator Name "Terminator_1" Position [875, 295, 885, 305] Orientation "down" NamePlacement "alternate" ShowName off } Block { BlockType Reference Name "Video Source" Ports [0, 1] Position [20, 166, 125, 224] DialogController "dspDDGCreate" DialogControllerArgs "DataTag2" SourceBlock "dspwin32/From Multimedia File" SourceType "From Multimedia File" inputFilename "vipmen.avi" loop on numPlays "inf" outputStreams "Video and audio" videoDataType "uint8" audioDataType "int16" inheritSampleTime on userDefinedSampleTime "1/30" noAudioOutput off isIntensityVideo on outputEOF off } Block { BlockType SubSystem Name "Video Surveillance " Ports [3, 4] Position [360, 71, 670, 284] MinAlgLoopOccurrences off RTWSystemCode "Auto" FunctionWithSeparateData off MaskHideContents off System { Name "Video Surveillance " Location [121, 132, 927, 490] 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" Block { BlockType Inport Name "Video In" Position [25, 188, 55, 202] IconDisplay "Port number" } Block { BlockType Inport Name "Switch" Position [520, 98, 550, 112] Port "2" IconDisplay "Port number" } Block { BlockType Inport Name "In Thresh" Position [25, 270, 55, 285] Orientation "up" Port "3" IconDisplay "Port number" } Block { BlockType Gain Name "Gain" Position [420, 80, 450, 110] ShowName off Gain "4" ParameterDataTypeMode "Inherit via internal rule" ParameterDataType "uint(8)" OutDataTypeMode "Specify via dialog" OutDataType "uint(8)" } Block { BlockType Concatenate Name "Matrix\nConcatenation" Ports [2, 1] Position [505, 159, 560, 201] ShowName off Mode "Vertical matrix concatenation" } Block { BlockType SubSystem Name "Motion Energy" Ports [1, 2] Position [145, 28, 245, 112] MinAlgLoopOccurrences off RTWSystemCode "Auto" FunctionWithSeparateData off MaskHideContents off System { Name "Motion Energy" Location [142, 249, 677, 415] 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 "Intensity" Position [25, 123, 55, 137] IconDisplay "Port number" } Block { BlockType Abs Name "Abs" Position [240, 30, 270, 60] ShowName off SaturateOnIntegerOverflow on ZeroCross on SampleTime "-1" } Block { BlockType DataTypeConversion Name "Data Type Conversion1" Position [100, 76, 155, 104] ShowName off OutDataTypeMode "int16" SaturateOnIntegerOverflow off } Block { BlockType Reference Name "Integer Delay" Ports [1, 1] Position [120, 32, 160, 58] ShowName off SourceBlock "dspobslib/Integer Delay" SourceType "Integer Delay" delay "1" ic "0" reset_popup "None" } Block { BlockType Reference Name "Matrix\nSum" Ports [1, 1] Position [300, 25, 365, 65] ShowName off DialogController "dspDDGCreate" DialogControllerArgs "DataTag3" SourceBlock "dspmtrx3/Matrix\nSum" SourceType "Matrix Sum" Dim "Columns" additionalParams on allowOverrides on outputMode "Binary point scaling" outputWordLength "32" outputFracLength "0" accumMode "Binary point scaling" accumWordLength "32" accumFracLength "0" roundingMode "Floor" overflowMode off LockScale off } Block { BlockType Reference Name "Matrix\nSum1" Ports [1, 1] Position [390, 25, 455, 65] ShowName off DialogController "dspDDGCreate" DialogControllerArgs "DataTag4" SourceBlock "dspmtrx3/Matrix\nSum" SourceType "Matrix Sum" Dim "Rows" additionalParams off allowOverrides on outputMode "Same as input" outputWordLength "16" outputFracLength "15" accumMode "Binary point scaling" accumWordLength "32" accumFracLength "0" roundingMode "Floor" overflowMode off LockScale off } Block { BlockType Sum Name "Sum" Ports [2, 1] Position [195, 35, 215, 55] ShowName off IconShape "round" Inputs "|-+" InputSameDT off OutDataTypeMode "Inherit via internal rule" SaturateOnIntegerOverflow off } Block { BlockType Outport Name "AD" Position [265, 65, 295, 80] Orientation "down" IconDisplay "Port number" BusOutputAsStruct off } Block { BlockType Outport Name "SAD" Position [480, 38, 510, 52] Port "2" IconDisplay "Port number" BusOutputAsStruct off } Line { SrcBlock "Sum" SrcPort 1 DstBlock "Abs" DstPort 1 } Line { SrcBlock "Integer Delay" SrcPort 1 DstBlock "Sum" DstPort 1 } Line { SrcBlock "Abs" SrcPort 1 Points [5, 0] Branch { DstBlock "Matrix\nSum" DstPort 1 } Branch { DstBlock "AD" DstPort 1 } } Line { SrcBlock "Data Type Conversion1" SrcPort 1 Points [45, 0] DstBlock "Sum" DstPort 2 } Line { SrcBlock "Matrix\nSum" SrcPort 1 DstBlock "Matrix\nSum1" DstPort 1 } Line { SrcBlock "Intensity" SrcPort 1 Points [15, 0] Branch { Points [0, -85] DstBlock "Integer Delay" DstPort 1 } Branch { Points [0, -40] DstBlock "Data Type Conversion1" DstPort 1 } } Line { SrcBlock "Matrix\nSum1" SrcPort 1 DstBlock "SAD" DstPort 1 } } } Block { BlockType RelationalOperator Name "Relational\nOperator" Position [425, 212, 455, 263] ShowName off LogicOutDataTypeMode "Boolean" Port { PortNumber 1 Name " " RTWStorageClass "Auto" DataLoggingNameMode "SignalName" } } Block { BlockType SubSystem Name "Sample\nand Hold" Ports [1, 2, 0, 1] Position [505, 296, 565, 334] ShowName off AncestorBlock "dspsigops/Sample\nand Hold" TreatAsAtomicUnit on MinAlgLoopOccurrences off RTWSystemCode "Auto" FunctionWithSeparateData 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_param([gcb '/Trigger'],'triggertyp" "e',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 [572, 301, 880, 467] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "A4" PaperUnits "centimeters" 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" } Block { BlockType TriggerPort Name "Trigger" Ports [] Position [20, 15, 40, 35] TriggerType "either" StatesWhenEnabling "reset" ZeroCross off } Block { BlockType Constant Name "Constant" Position [55, 89, 70, 111] ShowName off Value "1" VectorParams1D on SamplingMode "Sample based" OutDataTypeMode "int32" OutDataType "sfix(16)" ConRadixGroup "Use specified scaling" OutScaling "2^0" SampleTime "inf" FramePeriod "inf" } 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 SaturateOnIntegerOverflow off } Block { BlockType Outport Name "Last" Position [185, 20, 205, 40] IconDisplay "Port number" BusOutputAsStruct off InitialOutput "initCond" } Block { BlockType Outport Name " Cnt" Position [165, 120, 185, 140] Port "2" IconDisplay "Port number" BusOutputAsStruct off } 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 Switch Name "Switch1" Position [630, 90, 660, 120] ShowName off Criteria "u2 ~= 0" InputSameDT off SaturateOnIntegerOverflow off ZeroCross off } Block { BlockType Outport Name "Processed Video" Position [685, 98, 715, 112] IconDisplay "Port number" BusOutputAsStruct off } Block { BlockType Outport Name "Motion Theshold" Position [690, 218, 720, 232] Port "2" IconDisplay "Port number" BusOutputAsStruct off } Block { BlockType Outport Name "Thrigger" Position [690, 285, 720, 300] Orientation "down" Port "3" IconDisplay "Port number" BusOutputAsStruct off } Block { BlockType Outport Name "Motion Frame Count" Position [690, 148, 720, 162] Port "4" IconDisplay "Port number" BusOutputAsStruct off } Line { Labels [3, 0] SrcBlock "In Thresh" SrcPort 1 Points [75, 0; 0, 15; 370, 0; 0, -45] Branch { Points [0, -45; -130, 0; 0, 60] DstBlock "Relational\nOperator" DstPort 2 } Branch { Points [0, -45] DstBlock "Matrix\nConcatenation" DstPort 2 } } Line { SrcBlock "Motion Energy" SrcPort 1 Points [155, 0] DstBlock "Gain" DstPort 1 } Line { SrcBlock "Motion Energy" SrcPort 2 Points [130, 0; 0, 80] Branch { DstBlock "Matrix\nConcatenation" DstPort 1 } Branch { Points [0, 55] DstBlock "Relational\nOperator" DstPort 1 } } Line { SrcBlock "Gain" SrcPort 1 DstBlock "Switch1" DstPort 1 } Line { SrcBlock "Sample\nand Hold" SrcPort 1 Points [20, 0; 0, -190] DstBlock "Switch1" DstPort 3 } Line { Name " " Labels [0, 0] SrcBlock "Relational\nOperator" SrcPort 1 Points [0, -15; 75, 0] Branch { DstBlock "Sample\nand Hold" DstPort trigger } Branch { Points [0, 45] DstBlock "Thrigger" DstPort 1 } } Line { SrcBlock "Video In" SrcPort 1 Points [15, 0] Branch { Points [0, -125] DstBlock "Motion Energy" DstPort 1 } Branch { Points [0, 120] DstBlock "Sample\nand Hold" DstPort 1 } } Line { SrcBlock "Switch" SrcPort 1 DstBlock "Switch1" DstPort 2 } Line { SrcBlock "Switch1" SrcPort 1 DstBlock "Processed Video" DstPort 1 } Line { SrcBlock "Matrix\nConcatenation" SrcPort 1 Points [110, 0] DstBlock "Motion Theshold" DstPort 1 } Line { SrcBlock "Sample\nand Hold" SrcPort 2 Points [0, -5; 80, 0; 0, -165] DstBlock "Motion Frame Count" DstPort 1 } } } Line { Labels [0, 0] SrcBlock "Video Source" SrcPort 1 Points [45, 0] Branch { Points [0, -85] DstBlock "Motion Frames1" DstPort 1 } Branch { Labels [0, 0] Points [0, -85] DstBlock "Video Surveillance " DstPort 1 } } Line { SrcBlock "Video Surveillance " SrcPort 1 DstBlock "Motion Frames" DstPort 1 } Line { SrcBlock "Video Surveillance " SrcPort 4 DstBlock "Motion Event Count" DstPort 1 } Line { SrcBlock "Constant" SrcPort 1 Points [30, 0; 0, -50] DstBlock "Video Surveillance " DstPort 2 } Line { SrcBlock "Video Surveillance " SrcPort 2 DstBlock " " DstPort 1 } Line { Labels [0, 0] SrcBlock "DSP\nConstant1" SrcPort 1 Points [0, -5; 30, 0; 0, -70] DstBlock "Video Surveillance " DstPort 3 } Line { SrcBlock "Video Surveillance " SrcPort 3 Points [205, 0] DstBlock "Terminator_1" DstPort 1 } } } MatData { NumRecords 5 DataRecord { Tag DataTag4 Data " %)30 . < 8 ( 0 % " "\" $ ! 0 . 0 8 ( ! % \" $ " "- 0 0 #0 $UA=')I>%-U;5!R;V0 " } DataRecord { Tag DataTag3 Data " %)30 . < 8 ( 0 % " "\" $ ! 0 . 0 8 ( ! % \" $ " "- 0 0 #0 $UA=')I>%-U;5!R;V0 " } DataRecord { Tag DataTag2 Data " %)30 . N 8 ( 0 % " "\" $ \" 0 . 0 8 ( ! % \" $ " " * 0 0 \"@ $9R;VU-349I;&4 . 0 8 ( ! " " % \" $ ) 0 0 \"0 &1S<&1I86QO9P " } DataRecord { Tag DataTag1 Data " %)30 . , 8 ( ! % " "\" 0 0 " } DataRecord { Tag DataTag0 Data " %)30 . , 8 ( ! % " "\" 0 0 " } }