資源簡介
Origin插件集合,現(xiàn)在流行的Origin插件基本上都有,如果有這方面開發(fā)需要的請聯(lián)系我。

代碼片段和文件信息
/*------------------------------------------------------------------------------*
?*?File?Name:?MedianFilter.c? *
?*?Creation:?ER?(05/19/04) *
?*?Purpose:?Perform?median?filtering?on?a?dataset *
?*?Copyright?(c)?OriginLab?Corp.2003?2004?2005?2006?2007?2008?2009?2010 *
?*?All?Rights?Reserved *
?*? *
?*?Modification?Log: *
?*------------------------------------------------------------------------------*/
?
////////////////////////////////////////////////////////////////////////////////////
#include?
////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////
//?This?function?performs?median?filtering?on?a?dataset.?At?each?point?in?the?dataset
//?n?neighboring?points?on?each?side?are?considered?and?the?median?of?all?those?points
//?is?assigned?as?the?filtered?result?for?that?point.?At?the?edges?where?enough?neighbors
//?are?not?present?the?median?is?computed?with?the?available?number?of?points.
//?Parameters:
// strSrc:? Name?of?source?dataset
// strDest: Name?of?destination?dataset
// iNumPts: Number?of?points?on?either?side?to?consider?for?computing?median
//
//?Return:
// 0: success
// non-zero: failure
int?median_filter(string?strSrc?string?strDest?int?iNumPts?double?dPerc?=?50)
{
//?Declare?datasets?and?check?for?validity
Dataset?dsSrc(strSrc);
Dataset?dsDest(strDest);
if(!dsSrc?||?!dsDest)
{
printf(“Invalid?Dataset(s)!\n“);
return?-1;
}
//?Check?size?of?number?of?neighbors?for?computing?median
int?iSize?=?dsSrc.GetSize();
if(?(iNumPts?1)?||?((iNumPts?*?2)?>=?iSize/2)?)
{
printf(“Invalid?group?size!\n“);
return?-2;
}
//?Set?size?of?result?to?be?same?as?source
dsDest.SetSize(iSize);
//?Loop?over?all?points?in?source?and?find?median?of?neighboring?points
waitCursor?wCursor;
for(int?ii?=?0;?ii? {
//?Set?lower?and?upper?bounds?on?source?data?to?only?include?current?neighbors?for?computing?median
dsSrc.SetLowerBound(ii?-?iNumPts);
dsSrc.SetUpperBound(ii?+?iNumPts);
//?Compute?median?and?store?to?result
double?dMedian;
Data_percentiles(&dsSrc?&dPerc?&dMedian?1);
dsDest[ii]?=?dMedian;
}
//?Reset?lower?and?upper?bounds?of?soure?dataset
dsSrc.SetLowerBound(0);
dsSrc.SetUpperBound(iSize?-?1);
//?Return?success
return?0;
}
//?end
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件????????967??2006-04-23?16:19??Origin插件集合\LabelXY\LabelXY.opk
?????文件?????100092??2006-04-23?16:19??Origin插件集合\LabelXY\OriginLab?File?Exchange?-?File?Details.pdf
?????文件???????2526??2006-04-23?16:50??Origin插件集合\MedianFilter\MedianFilter.c
?????文件??????84632??2006-04-23?16:52??Origin插件集合\MedianFilter\fid=83.pdf
?????文件??????12657??2006-04-23?16:42??Origin插件集合\NAGSpecialFunctions\NAGSpecialFunctions.c
?????文件??????71420??2006-04-23?16:43??Origin插件集合\NAGSpecialFunctions\fid=40.pdf
?????文件??????84356??2006-04-23?16:03??Origin插件集合\ol-estimate?onset\OL_Estimate_Onset.OPK
?????文件??????10752??2006-04-23?16:04??Origin插件集合\ol-estimate?onset\新建?Microsoft?Word?文檔.doc
?????文件?????111173??2006-04-23?16:07??Origin插件集合\ol-estimate?onset\readme.pdf
?????文件???????2485??2006-04-23?16:02??Origin插件集合\OL_Twopoint_Distance\OL_Twopoint_Distance.opk
?????文件????????374??2006-04-23?16:02??Origin插件集合\OL_Twopoint_Distance\新建?文本文檔.txt
?????文件?????157655??2006-04-20?10:15??Origin插件集合\ONMR?7.0\OriginLab?File?Exchange?-?File?Details.mht
?????文件????1355595??2006-04-20?10:18??Origin插件集合\ONMR?7.0\onmr70.zip
?????文件?????154265??2006-04-20?10:04??Origin插件集合\Peak?Analysis?Tool\OriginLab?File?Exchange?-?File?Details.mht
?????文件???????3448??2006-04-20?10:04??Origin插件集合\Peak?Analysis?Tool\PeakAnalysis.opk
?????文件???????3448??2006-04-23?11:01??Origin插件集合\PeakAnalysis\PeakAnalysis.opk
?????文件???????1937??2006-04-23?11:02??Origin插件集合\PeakAnalysis\readme.txt
?????文件???????1419??2006-04-23?15:59??Origin插件集合\pick2point\Pick2Points.ogs
?????文件???????1471??2006-04-23?16:01??Origin插件集合\pick2point\新建?文本文檔.txt
?????文件??????10400??2006-04-23?16:22??Origin插件集合\Scale_T\Scale_T.opk
?????文件?????205432??2006-04-23?16:22??Origin插件集合\Scale_T\OriginLab?File?Exchange?-?File?Details.pdf
?????文件???????1730??2006-04-23?16:25??Origin插件集合\scroll\Scroll.opk
?????文件?????103142??2006-04-23?16:26??Origin插件集合\scroll\OriginLab?File?Exchange?-?File?Details.pdf
?????文件?????177771??2006-04-20?10:36??Origin插件集合\Statistics?on?graph\OriginLab?File?Exchange?-?File?Details.mht
?????文件???????1146??2006-04-20?10:36??Origin插件集合\Statistics?on?graph\Statongraph.opk
?????文件???????2497??2006-04-23?16:12??Origin插件集合\Tangent\Tangent.opk
?????文件?????115187??2006-04-23?16:13??Origin插件集合\Tangent\OriginLab?File?Exchange?-?File?Details.pdf
?????文件?????115887??2006-04-20?10:17??Origin插件集合\Tangents\OriginLab?File?Exchange?-?File?Details.mht
?????文件???????2497??2006-04-20?10:17??Origin插件集合\Tangents\Tangent.opk
?????文件??????61534??2006-04-20?10:21??Origin插件集合\The?PFM?7.5?Evaluation?(Demo)\Peak?Fitting?Module?software?demo-evaluation?download.mht
............此處省略64個文件信息
- 上一篇:cute slider v2.1
- 下一篇:Smith chart V3.1
評論
共有 條評論