Hi,
after starting the following javascript from the script editor you will immediately get "out of memory" and afterwards it's impossible to run any other psjr file. The whole PixInsight application has to be restarted. PixInsight version 01.07.00.0702 Starbuck (eng x86_64) on a Windows 7 notebook with 8GB RAM.
var maskFilter = new MorphologicalTransformation;
with ( maskFilter ) {
operator = MorphologicalTransformation.prototype.Median;
interlacingDistance = 1;
lowThreshold = 0.000000;
highThreshold = 0.000000;
numberOfIterations = 1;
amount = 1.00;
selectionPoint = 0.50;
structureName = "";
structureSize = 3;
structureWayTable = [ // mask
[[
0x01,0x01,0x01,
0x01,0x01,0x01,
0x01,0x01,0x01
]]
];
// } <-- syntax error
function weightedMedian( vArr, mArr )
{
}
function median6( vArr )
{
}
function DemosaicWMHOI( img )
{
}
Regards
RĂ¼diger
Edit: It's probably the same reason like in this thread:
http://pixinsight.com/forum/index.php?topic=3356.0. Didn't check the older threads carefully enough before posting.
![embarassed :-[](http://pixinsight.com/forum/Smileys/default/embarrassed.gif)