#include//单片机51头文件,存放着单片机的寄存器#include//为了使用空指令加载的头文件charcodestr[]="www.22sky.com\n";voidsend_str();//用到函数声明,注册函数voiddelayms(unsignedcharms);//用到函数声明,注册函数voidsend_char(unsignedchartxd);//用到函数声明,注册函数main(){
1
OverviewThisOPCUAreferenceimplementationistargetingthe.NETStandardLibrary..NetStandardallowsdevelopingappsthatrunonallcommonplatformsavailabletoday,includingLinux,iOS,Android(viaXamarin)andWindows7/8/8.1/10(includingembedded/IoTeditions)withoutrequiringplatform-specificmodifications.Furthermore,cloudapplicationsandservices(suchasASP.Net,DNX,AzureWebsites,AzureWebjobs,AzureNanoServerandAzureServiceFabric)arealsosupported.Featuresincluded1. FullyportedCoreUAstackandSDK(Client,Server,Configuration&Sampleassemblies)2. SampleServersandClients,includingallrequiredcontrols,for.Net4.6,.NetCoreandUWP.3. X.509certificatesupportforclientandserverauthentication4. Anonymous,username,X.509certificate(experimental)andJWT(experimental)userauthentication5. UA-TCP&HTTPStransports(clientandserver)6. Foldercertificate-storesupport7. Sessions(includingUIsupportinthesamples)8. Subscriptions(includingUIsupportinthesamples)GettingStartedAllthetoolsyouneedfor.NetStandardcomewiththe.NetCoretools.Seehereforwhatyouneed.HowtocreateselfsignedcertificatesforthesampleapplicationsOnWindows1. Openacommandpromptintherootfolderofyourrepository2. RunthescriptCreateAllCerts.cmdintherootfolderofyourrepositorytocreatethecertificatesforallsampleapplications.3. Alternatively,youcanrunthescriptCreateCert.cmdineachsampleprojectfoldertocreatenewselfsignedcertificatesfortheapplication.4. TheselfsignedcertificatesarestoredinOPCFoundation/CertificateStores/MachineDefaultineachapplicationprojectfolderOnLinux1. Openacommandprompt2. Navigatetotheprojectfolderofthesampleapp,e.g.SampleApplications/Samples/NetCoreConsoleClient3. Runthescript./createcert.shtocreatethecertificatesforthesampleapplications.4. TheselfsignedcertificatesarestoredinOPCFoundati
2024/5/10 14:27:21 6.71MB OPC UA 客户端 服务器
1
汽车NEDC循环工况测试数据,在进行仿真模拟时具有很大的作用
2024/3/12 16:32:53 24KB NEDC
1
CVX-一款在matlab中,用于解决计算包括凸优化等问题,支持线性优化和二次方优化以及半正定算法。
-CVXisamodelingsystemforconstructingandsolvingdisciplinedconvexprograms(DCPs).CVXsupportsanumberofstandardproblemtypes,includinglinearandquadraticprograms(LPs/QPs),second-orderconeprograms(SOCPs),andsemidefiniteprograms(SDPs).
1
#include#defineucharunsignedchar#defineuintunsignedint#defineulongunsignedlong#defineLED_DATP0sbitLED_SEG0=P2^7;sbitLED_SEG1=P2^6;sbitLED_SEG2=P2^5;sbitLED_SEG3=P2^4;#defineTIME_CYLC100//12M晶振,定时器10ms中断一次我们1秒计算一次转速//1000ms/10ms=100#definePLUS_PER10//码盘的齿数,这里假定码盘上有10个齿,即传感器检测到10个脉冲,认为1圈#defineK1.65//校准系数unsignedcharcodetable[]={0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f};uchardataDisbuf[4];//显示缓冲区uintTcounter=0;//时间计数器bitFlag_Fresh=0;//刷新标志bitFlag_clac=0;//计算转速标志bitFlag_Err=0;//超量程标志voidDisplayFresh();//在数码管上显示一个四位数voidClacSpeed();//计算转速,并把结果放入数码管缓冲区voidinit_timer();//初始化定时器T0\T1voidDelay(uintms);//延时函数voidit_timer0()interrupt1/*interruptaddressis0x000b*/{TF0=0;//定时器T0用于数码管的动态刷新TH0=0xC0;TL0=0x00;Flag_Fresh=1;Tcounter++;if(Tcounter>TIME_CYLC){Flag_clac=1;//周期到,该重新计算转速了}}voidit_timer1()interrupt3/*interruptaddressis0x001b*/{TF1=0;//定时器T1用于单位时间内收到的脉冲数//要速度不是很快,T1永远不会益处Flag_Err=1;//如果速度很高,我们应考虑另外一种测速方法:T测速法}voidmain(void){Disbuf[0]=0;//开机时,初始化为0000Disbuf[1]=0;Disbuf[2]=0;Disbuf[3]=0;init_timer();while(1){if(Flag_Fresh){Flag_Fresh=0;DisplayFresh();//定时刷新数码管显示}if(Flag_clac){Flag_clac=0;ClacSpeed();//计算转速,并把结果放入数码管缓冲区Tcounter=0;//周期定时清零TH1=TL1=0x00;//脉冲计数清零}if(Flag_Err)//超量程处理{Disbuf[0]=0x9e;//开机时,初始化为0000Disbuf[1]=0x9e;Disbuf[2]=0x9e;Disbuf[3]=0x9e;while(1){DisplayFresh();//不再测速等待复位i}}}}//在数码管上显示一个四位数voidDisplayFresh(){P2|=0xF0;LED_SEG0=0;LED_DAT=table[Disbuf[0]];Delay(1);P2|=0xF0;LED_SEG1=0;LED_DAT=table[Disbuf[1]];Delay(1);P2|=0xF0;LED_SEG2=0;LED_DAT=table[Disbuf[2]];Delay(1);P2|=0xF0;LED_SEG3=0;LED_DAT=table[Disbuf[3]];Delay(1);P2|=0xF0;}//计算转速,并
2024/3/2 19:19:54 400KB 光电传感器、测速、protus、pcb
1
uchara[]="温湿度传感器";ucharb[]="温度:";ucharc[]="湿度:";uchard[]="0123456789";typedefunsignedcharU8;typedefunsignedintU16;U8U8flag,k;U8U8temp;U8U8WD_H,U8WD_L,U8SD_H,U8SD_L,U8checkdata;U8U8WDH_temp,U8WDL_temp,U8SDH_temp,U8SDL_temp,U8checkdata_temp;U8U8comdata;voiddelay_1ms(uintn){uinti,j;for(i=0;i<=n;i++)for(j=0;j<110;j++);}voiddelay_10us(){U8i;i--;i--;i--;i--;i--;i--;}voidwrite_com(ucharcom){rs=0;rw=0;en=0;P2=com;delay_1ms(1);en=1;delay_1ms(1);en=0;}voidwrite_data(uchardate){rs=1;rw=0;en=0;P2=date;delay_1ms(1);en=1;delay_1ms(1);en=0;}voidpos(ucharx,uchary){ucharpos;if(x==0)x=0x80;elseif(x==1)x=0x90;elseif(x==2)x=0x88;elseif(x==3)x=0x98;pos=x+y;write_com(pos);}voiddisplay(U8WD_H,U8WD_L,U8SD_H,U8SD_L){U8yi,er,san,si;yi=U8WD_H/10;er=U8WD_H;san=U8SD_H/10;si=U8SD_H;pos(1,4);write_data(d[yi]);pos(1,5);write_data(d[er]);pos(2,4);write_data(d[san]);pos(2,5);write_data(d[si]);}voidcom(){U8i;for(i=0;i<8;i++){U8flag=2;while((!SJK)&&U8flag++);delay_10us();delay_10us();delay_10us();U8temp=0;if(SJK)U8temp=1;U8flag=2;while((SJK)&&U8flag++);if(U8flag==1)break;U8comdata<<=1;U8comdata|=U8temp;}}
2024/1/28 1:02:12 26KB DHT11
1
StochasticCalculusforFinanceI:TheBinomialAssetPricingModel(SpringerFinance)(Paperback)byStevenE.Shreve(Author)BookDescriptionStochasticCalculusforFinanceevolvedfromthefirsttenyearsoftheCarnegieMellonProfessionalMaster'sprograminComputationalFinance.Thecontentofthisbookhasbeenusedsuccessfullywithstudentswhosemathematicsbackgroundconsistsofcalculusandcalculus-basedprobability.Thetextgivesbothprecisestatementsofresults,plausibilityarguments,andevensomeproofs,butmoreimportantlyintuitiveexplanationsdevelopedandrefinethroughclassroomexperiencewiththismaterialareprovided.Thebookincludesaself-containedtreatmentoftheprobabilitytheoryneededforstochasticcalculus,includingBrownianmotionanditsproperties.Advancedtopicsincludeforeignexchangemodels,forwardmeasures,andjump-diffusionprocesses.Thisbookisbeingpublishedintwovolumes.Thefirstvolumepresentsthebinomialasset-pricingmodelprimarilyasavehicleforintroducinginthesimplesettingtheconceptsneededforthecontinuous-timetheoryinthesecondvolume.Chaptersummariesanddetailedillustrationsareincluded.Classroomtestedexercisesconcludeeverychapter.Someoftheseextendthetheoryandothersaredrawnfrompracticalproblemsinquantitativefinance.AdvancedundergraduatesandMasterslevelstudentsinmathematicalfinanceandfinancialengineeringwillfindthisbookuseful.StevenE.ShreveisCo-FounderoftheCarnegieMellonMSPrograminComputationalFinanceandwinneroftheCarnegieMellonDohertyPrizeforsustainedcontributionstoeducation.Publisher:Springer;1edition(June28,2005)Language:EnglishISBN-10:0387249680ISBN-13:978-0387249681
2024/1/26 22:10:48 12.18MB mathematical finance 经典
1
DifferentialEquationsandLinearAlgebra(4th)英文无水印原版pdf第4版pdf所有页面使用FoxitReader、PDF-XChangeViewer、SumatraPDF和Firefox测试都可以打开本资源转载自网络,如有侵权,请联系上传者或csdn删除查看此书详细信息请在美国亚马逊官网搜索此书EditorialDirector,Mathematics:ChristinehoagEditor-in-Chief:DeirdreLynchAcquisitionsEditor:WilliamHoffmaProjectTeamLead:ChristinaleProjectmanager:LaurenMorseEditorialAssistant:JenniferSnyderProgramTeamLead:KarenwernholmProgramManagerDaniellesimbajonCoverandillustrationDesign:StudioMontageProgramDesignLead:BethPaquinProductMarketingManagerClaireKozarProductMarketingCoordiator:BrookesmithFieldMarketingManager:EvanStCyrSeniorAuthorSupport/TechnologySpecialist:JoevetereSeniorProcurementSpecialist:CarolMelvilleInteriorDesign,ProductionManagement,AnswerArt,andCompositioneNergizerAptara,LtdCoverImage:LighttrailsonmodernbuildingbackgroundinShanghai,China-hxdyl/123RFCopyrightO2017,2011,2005PearsonEducation,Inc.oritsaffiliates.AllRightsReserved.PrintedintheUnitedStatesofAmerica.Thispublicationisprotectedbycopyright,andpermissionshouldbeobtainedfromthepublisherpriortoanyprohibitedreproduction,storageinaretrievalsystem,ortransmissioninanyformorbyanymeans,electronic,mechanical,photocopyingrecording,orotherwise.Forinformationregardingpermissions,requestformsandtheappropriatecontactswithinthePearsonEducationGlobalRights&Permissionsdepartmentpleasevisitwww.pearsoned.com/permissions/PEARSONandALWAYSLEARNINGareexclusivetrademarksintheU.s.and/orothercountriesownedbyPearsonEducation,Inc.oritsaffiliatesUnlessotherwiseindicatedherein,anythird-partytrademarksthatmayappearinthisworkarethepropertyoftheirrespectiveowandanyreferencestothird-partytrademarks,logosorothertradedressarefordemonstrativeordescriptivepurposesonly.SuchofsuchmarksoranyrelationshipbetweentheownerandPearsonEducation,Inc.oritsaffiliates,authors,licenseesordistributortreferencesarenotintendedtoimplyanysponsorship,endorsement,authorization,orpromotionofPearsonsproductsbytheownersLibraryofCongressCataloging-in-PublicationDataGoode.StephenwDifferentialequationsandlinearalgebra/StephenW.GoodeandScottA.AnninCaliforniastateUniversity,Fullerton.-4theditionpagescmIncludesindexISBN978-0-321-96467-0—ISBN0-32196467-51.Differentialequations.2.Algebras,Linear.I.Annin,Scott.II.TitleQA371.G6442015515’.35-dc23201400601512345678910V031-1918171615PEARSONISBN10:0-321-96467-5www.pearsonhighered.comISBN13:978-0-321-96467-0ContentsPrefacevii1First-OrderDifferentialEquations1.1DifferentialEquationsEverywhere11.2BasicIdeasandTerminology131.3TheGeometryofFirst-OrderDifferentialEquations231.4SeparableDifferentialEquations341.5SomeSimplePopulationModels451.6First-OrderLinearDifferentialEquations531.7ModelingProblemsUsingFirst-OrderLinearDifferentialEquations61.8Changeofvariables711.9ExactDifferentialEquations821.10Numericalsolutiontofirst-OrderDifferentialEquations931.11SomeHigher-OrderDifferentialEquations1011.12ChapterReview1062MatricesandSystemsofLinearEquations1142.1Matrices:Definitionsandnotation1152.2MatrixAlgebra1222.3TerminologyforSystemsofLinearEquations13824R。
w-EchelonMatricesandElementaryR。
wOperations1462.5Gaussianelimination1562.6TheInverseofasquarematrix1682.7ElementaryMatricesandtheLUFactorization1792.8TheInvertiblematrixtheoremi1882.9ChapterReview1903Determinants1963.1TheDefinitionofthedeterminant1963.2PropertiesofDeterminants2093.3CofactorExpansions2223.4SummaryofDeterminants2353.5ChapterReview242iyContents4VectorSpaces2464.1Vectorsinrn2484.2DefinitionofaVectorSpace2524.3Subspaces2634.4SpanningSets2744.5LinearDependenceandLinearIndependence2844.6Basesanddimension2984.7Changeofbasis3114.8RowSpaceandColumnSpace3194.9TheRank-NullityTheorem3254.10InvertibleMatrixTheoremll3314.11ChapterReview3325InnerProductSpaces3395.1DefinitionofanInnerproductspace3405.2OrthogonalSetsofvectorsandorthogonalProjections3525.3Thegram-Schmidtprocess3625.4LeastSquaresApproximation3665.5ChapterReview3766LinearTransformations3796.1Definitionofalineartransformation3806.2Transformationsofr23916.3TheKernelandrangeofalineartransformation3976.4AdditionalPropertiesofLinearTransformations4076.5Thematrixofalineartransformation4196.6Chaiterreview4287EigenvaluesandEigenvectors4337.1TheEigenvalue/EigenvectorProblem4347.2GeneralResultsforEigenvaluesandEigenvectors4467.3Diagonalization4547.4AnIntroductiontotheMatrixExponentialFunction4627.5OrthogonalDiagonalizationandQuadraticforms4667.6Jordancanonicalforms4757.7Chapterreview4888LinearDifferentialEquationsofOrdern4938.1GeneralTheoryforLinearDifferentialEquations4958.2ConstantCoefficientHomogeneousLinearDifferentialEquations5058.3ThemethodofundeterminedcoefficientsAnnihilators5158.4Complex-ValuedTrialSolutions5268.5OscillationsofaMechanicalSystem529Contentsv8.6RLCCircuits5428.7TheVariationofparametersmethod5478.8ADifferentialEquationwithNonconstantCoefficients5578.9Reductionoforder5688.10ChapterReview5739SystemsofDifferentialEquations5809.1First-OrderLinearSystems5829.2VectorFormulation5889.3GeneralResultsforfirst-OrderLinearDifferentialystems5939.4VectorDifferentialEquations:NondefectiveCoefficientMatrix5999.5VectorDifferentialEquations:DefectiveCoefficientMatrix6089.6Variation-of-ParametersforLinearSystems6209.7SomeApplicationsofLinearSystemsofDifferentialEquations6259.8MatrixExponentialFunctionandSystemsofDifferentialEquations6359.9ThePhasePlaneforLinearAutonomousSystems6439.10NonlinearSystems6559.11ChapterReview66310TheLaplaceTransformandSomeElementaryApplications67010.1DefinitionoftheLaplaceTransform67010.2TheExistenceofthelaplacetransformandtheInversetransform67610.3PeriodicFunctionsandtheLaplacetransform68210.4ThetransformofderivativesandsolutionofInitial-Valueproblems68510.5TheFirstShiftingTheorem69010.6TheUnitStepFunction69510.7TheSecondShiftingTheorem69910.8ImpulsiveDrivingTerms:TheDiracDeltaFunction70610.9TheConvolutionIntegral71110.10ChapterReview71711SeriesSolutionstoLinearDifferentiaEquations72211.1AReviewofpowerseries72311.2SeriesSolutionsaboutanOrdinaryPoint73111.3TheLegendreEquation74111.4SeriesSolutionsaboutaRegularSingularPoint75011.5Frobeniustheory75911.6Bessel'sEquationofOrderp77311.7Chapterreview785ViContentsAReviewofComplexNumbers791BReviewofPartialFractions797CReviewofIntegrationTechniques804DLinearlyIndependentSolutionstox2y+xp(x)y+g(x)y=0811Answerstoodd-NumberedExercises814Index849S.W.GoodededicatesthisbooktomeganandtobiS.A.annindedicatesthisbooktoarthurandJuliannthebestparentsanyonecouldaskforPretraceLikethefirstthreeeditionsofDifferentialEquationsandLinearalgebra,thisfourtheditionisintendedforasophomorelevelcoursethatcoversmaterialinbothdifferentialequationsandlinearalgebra.Inwritingthistextwehaveendeavoredtodevelopthestudentsappreciationforthepowerofthegeneralvectorspaceframeworkinformulatingandsolvinglinearproblems.Thematerialisaccessibletoscienceandengineeringstu-dentswhohavecompletedthreesemestersofcalculusandwhobringthematurityofthatsuccesswiththemtothiscourseThistextiswrittenaswewouldnaturallyteachblendinganabundanceofexamplesandillustrations,butnotattheexpenseofadeliberateandrigoroustreatment.MostresultsareprovenindetailHowever,manyofthesecanbeskippedinfavorofamoreproblem-solvingorientedapproachdependingonthereader'sobjectives.Somereadersmayliketoincorporatesomeformoftechnology(computeralgebrasystem(CAS)orgraphingcalculator)andthereareseveralinstancesinthetextwherethepoweroftechnologyisillustratedusingtheCasMaple.Furthermore,manyexercisesetshaveproblemsthatrequiresomeformoftechnologyfortheirsolutionTheseproblemsaredesignatedwithaoIndevelopingthefourtheditionwehaveoncemorekeptmaximumflexibilityofthematerialinmind.Insodoing,thetextcaneffectivelyaccommodatethedifferentemphasesthatcanbeplacedinacombineddifferentialequationsandlinearalgebracourse,thevaryingbackgroundsofstudentswhoenrollinthistypeofcourse,andthefactthatdifferentinstitutionshavedifferentcreditvaluesforsuchacourse.Thewholetextcanbecoveredinafivecredit-hourcourse.Forcourseswithalowercredit-hourvalue,someselectivitywillhavetobeexercised.Forexample,much(orall)ofChapterImaybeomittedsincemoststudentswillhaveseenmanyofthesedifferentialequationstopicsinanearliercalculuscourse,andtheremainderofthetextdoesnotdependonthetechniquesintroducedinthischapter.Alternatively,whileoneofthemajorgoalsofthetextistointerweavethematerialondifferentialequationswiththetoolsfromlinearalgebrainasymbioticrelationshipasmuchaspossible,thecorematerialonlinearalgebraisgiveninChapters2-7sothatitispossibletousethisbookforacoursethatfocusessolelyonthelinearalgebrapresentedinthesesixchapters.ThematerialondifferentialequationsiscontainedprimarilyinChapters1and8-1l,andreaderswhohavealreadytakenafirstcourseinlinearalgebracanchoosetoproceeddirectlytothesechaptersThereareothermeansofeliminatingsectionstoreducetheamountofmaterialtobecoveredinacourse.Section2.7containsmaterialthatisnotrequiredelsewhereinthetext,Chapter3canbecondensedtoasinglesection(Section3.4)forreadersneedingonlyacursoryoverviewofdeterminants,andSections4.7,5.4,andthelatersectionsofChapters6and7couldallbereservedforasecondcourseinlinearalgebra.InChapter8Sections8.4,8.8,and8.9canbeomitted,and,dependingonthegoalsofthecourse,Sections8.5and8.6couldeitherbede-emphasizedoromittedcompletelySimilarremarksapplytoSections9.7-9.10.AtCaliforniaStateUniversity,Fullertonwehaveafourcredit-hourcourseforsophomoresthatisbasedaroundthematerialinChapters1-9viiiPrefaceMajorChangesintheFourthEditionSeveralsectionsofthetexthavebeenmodifiedtoimprovetheclarityofthepresentationandtoprovidenewexamplesthatreflectinsightfulillustrationswehaveusedinourowncoursesatCaliforniaStateUniversity,Fullerton.OthersignificantchangeswithinthetextarelistedbeleOW1.ThechapteronvectorspacesinthepreviouseditionhasbeensplitintotwochaptersChapters4and5)inthepresentedition,inordertofocusseparateattentiononvectorspacesandinnerproductspaces.Theshorterlengthofthesetwochaptersisalsointendedtomakeeachofthemlessdaunting2.Thechapteroninnerproductspaces(Chapter5)includesanewsectionprovidinganapplicationoflinearalgebratothesubjectofleastsquaresapproximation3.Thechapteronlineartransformationsinthepreviouseditionhasbeensplitintotwochapters(Chapters6and7)inthepresentedition.Chapter6isfocusedonlineartransformations,whileChapter7placesdirectemphasisonthetheoryofeigenvaluesandeigenvectors.Oncemore,readersshouldfindtheshorterchapterscoveringthesetopicsmoreapproachableandfocused4.Mostexercisesetshavebeenenlargedorrearranged.Over3,000problemsarenowcontainedwithinthetext,andmorethan600concept-orientedtrue/falseitemsarealsoincludedinthetext5.Everychapterofthebookincludesoneormoreoptionalprojectsthatallowformorein-depthstudyandapplicationofthetopicsfoundinthetext6.ThebackofthebooknowincludestheanswertoeveryTrue-FalsereviewitemcontainedinthetextAcknowledgmentsWewouldliketoacknowledgethethoughtfulinputfromthefollowingreviewersofthefourthedition:JameyBassofCityCollegeofSanFrancisco,TamarFriedmannofUniversityofrochester,andlinghaiZhangofLehighUniversityAlloftheircommentswereconsideredcarefullyinthepreparationofthetextS.A.Annin:Ioncemorethankmyparents,ArthurandJuliannAnnin,fortheirloveandencouragementinallofmyprofessionalendeavors.Ialsogratefullyacknowledgethemanystudentswhohavetakenthiscoursewithmeovertheyearsand,insodoinghaveenhancedmyloveforthesetopicsanddeeplyenrichedmycareerasaprofessorFirst-OrderDifferentiaEquations1.1DifferentialEquationsEverywhereadifferentialequationisanyequationthatinvolvesoneormorederivativesofanunknownfunction.Forexample(1.1.1dxds(S-1)(1.1.2)aredifferentialequations.Inthedifferentialequation(1.1.1)theunknownfunctionordependentvariableisy,andxistheindependentvariable;inthedifferentialequation(1.1.2)thedependentandindependentvariablesareSandt,respectively.Differentialequationssuchas(1.1.1)and(1.1.)inwhichtheunknownfunctiondependsonlyonasingleindependentvariablearecalledordinarydifferentialequations.Bycontrast,thedifferentialequationLaplace'sequation)0involvespartialderivativesoftheunknownfunctionu(x,y)oftwoindependentvariablesxandy.SuchdifferentialequationsarecalledpartialdifferentialequationsOnewayinwhichdifferentialequationscanbecharacterizedisbytheorderofthehighestderivativethatoccursinthedifferentialequationThisnumberiscalledtheorderofthedifferentialequation.Thus,(l1.1)hasordertwo,whereas(1.1.2)isafirst-orderdifferentialequation1
2024/1/26 14:10:04 16.51MB Differential Equations Linear Algebra
1
图像处理中,纹理特征的提取部分代码如下//计算纹理特征voidCTextureDlg::OnBtnComputeTexture(){ doubledEnergy =0.0; doubledEntropy =0.0; doubledInertiaQuadrature=0.0; doubledLocalCalm =0.0; doubledCorrelation =0.0; doubledEnergy1 =0.0; doubledEntropy1 =0.0; doubledInertiaQuadrature1=0.0; doubledLocalCalm1 =0.0; doubledCorrelation1 =0.0; unsignedchar**arLocalImage; arLocalImage=cmatrix(0,m_grayShow.FilterWindowWidth-1,0,m_grayShow.FilterWindowWidth-1); introlltimeH=m_grayShow.ImageHeight/m_grayShow.FilterWindowWidth; introlltimeW=m_grayShow.ImageWidth/m_grayShow.FilterWindowWidth; inti,j; intp,q; //将图像分成若干个窗口,计算其纹理均值 for(i=0;i<rolltimeH;i++) { for(j=0;j<rolltimeW;j++) { //首先赋值给子窗口 for(p=0;p<m_grayShow.FilterWindowWidth;p++) { for(q=0;q<m_grayShow.FilterWindowWidth;q++) { arLocalImage[p][q]=m_grayShow.ImageArray[i*m_grayShow.FilterWindowWidth+p][j*m_grayShow.FilterWindowWidth+q]; } } m_grayShow.ComputeMatrix(arLocalImage,m_grayShow.FilterWindowWidth); m_grayShow.ComputeFeature(dEnergy1,dEntropy1,dInertiaQuadrature1,dCorrelation1,dLocalCalm1,m_grayShow.PMatrixH,m_grayShow.GrayLayerNum); dEnergy+=dEnergy1; dEntropy+=dEntropy1; dInertiaQuadrature+=dInertiaQuadrature1; dCorrelation+=dCorrelation1; dLocalCalm+=dLocalCalm1; } } dEnergy/=(rolltimeH*rolltimeW); dEntropy/=(rolltimeH*rolltimeW); dInertiaQuadrature/=(rolltimeH*rolltimeW); dCorrelation/=(rolltimeH*rolltimeW); dLocalCalm/=(rolltimeH*rolltimeW); m_dEnergy =dEnergy; m_dEntropy =dEntropy; m_dInertiaQuadrature=dInertiaQuadrature; m_dCorrelation =dCorrelation; m_dLocalCalm =dLocalCalm; UpdateData(false);}
2024/1/20 9:29:28 3.93MB 纹理
1
网上不是很好找的资料哦,我们自己做的。
这是C程序:#include#defineucharunsignedcharsbitP1_0=P1^0;sbitP1_1=P1^1;sbitP1_3=P1^3;sbitP1_4=P1^4;sbitP1_5=P1^5;sbitP1_6=P1^6;sbitP1_7=P1^7;ucharRRR,flg,KKK;//RRR用于调速控制;
flg=0正转;
flg=1反转;flg=2不转;
KKK为P1的状态寄存ucharloop[2][4]={{0x0c,0x06,0x03,0x09},{0x09,0x03,0x06,0x0c}};voidloop1(void);voidloop2(void);voidstep(void);main(){uchari,j;TMOD=0x10;TL1=0xe0;TH1=0xb1;IE=0;while(1){if(KKK!=P1)//当P1的值发生变化,触发采集信号loop1();if(flg!=2){for(i=0;i<=3;i++){P0=loop[flg][i];for(j=0;j<=RRR;j++) {step();} }}}}voidstep(void)//产生20MS的单位步时间{TF1=0;TR1=1;while(TF1==0);TR1=0;TL1=0xe0;TH1=0xb1;}voidloop1(void)//采集顺时针或逆时针信号,P1.6=1,顺时针,P1.7=1,逆时针{KKK=P1;//暂存P1的状态if(P1_6==1){flg=0;loop2();}elseif(P1_7==1){flg=1;loop2();}elseflg=2;}voidloop2(void){if(P1_0==1)RRR=5;elseif(P1_1==1)RRR=8;elseif(P1_2==1)RRR=11;elseif(P1_3==1)RRR=14;elseif(P1_4==1)RRR=17;elseif(P1_5==1)RRR=20;}
1
共 47 条记录 首页 上一页 下一页 尾页
在日常工作中,钉钉打卡成了我生活中不可或缺的一部分。然而,有时候这个看似简单的任务却给我带来了不少烦恼。 每天早晚,我总是得牢记打开钉钉应用,点击"工作台",再找到"考勤打卡"进行签到。有时候因为工作忙碌,会忘记打卡,导致考勤异常,影响当月的工作评价。而且,由于我使用的是苹果手机,有时候系统更新后,钉钉的某些功能会出现异常,使得打卡变得更加麻烦。 另外,我的家人使用的是安卓手机,他们也经常抱怨钉钉打卡的繁琐。尤其是对于那些不太熟悉手机操作的长辈来说,每次打卡都是一次挑战。他们总是担心自己会操作失误,导致打卡失败。 为了解决这些烦恼,我开始思考是否可以通过编写一个全自动化脚本来实现钉钉打卡。经过一段时间的摸索和学习,我终于成功编写出了一个适用于苹果和安卓系统的钉钉打卡脚本。
2024-04-09 15:03 15KB 钉钉 钉钉打卡