Author Topic: problem utilities DarkStructureEnhance.js  (Read 5769 times)

Offline dan

  • Newcomer
  • Posts: 2
problem utilities DarkStructureEnhance.js
« on: 2010 December 22 08:10:17 »
hello
 after update to the latest version, the utility darkstructureenhance crashes what can you do?

ConvertToGrayscale: Processing view: Mask
Writing swap files...
61.93 MB/s
In-place grayscale conversion: 100%
0.0940 s
*** Error [001]: C:/Program Files/PixInsight/src/scripts/DarkStructureEnhance.js, line 268: ReferenceError: RescaleRGB is not defined

Offline Jose Joaquin Perez

  • Newcomer
  • Posts: 41
    • Astrofotografía Austral
Re: problem utilities DarkStructureEnhance.js
« Reply #1 on: 2010 December 23 15:32:12 »
Hello, I have the same problem. Trying to use this script, the bottom mesage in the Processing Console says :

ConvertToGrayscale: Processing view: Mask
Writing swap files...
29.95 MB/s
In-place grayscale conversion: 100%
0.0630 s
*** Error [001]: C:/PCL/src/scripts/DarkStructureEnhance.js, line 268: ReferenceError: RescaleRGB is not defined


Your help please!

Best,
____________________
José Joaquín Pérez
Rancagua, Chile
www.astro-austral.cl

Offline federico

  • Newcomer
  • Posts: 30
  • A brilliant future behind
    • Business site
Re: problem utilities DarkStructureEnhance.js
« Reply #2 on: 2010 December 24 02:57:24 »
The same for me.
Federico

Offline Juan Conejero

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 7111
    • http://pixinsight.com/
Re: problem utilities DarkStructureEnhance.js
« Reply #3 on: 2010 December 24 04:13:21 »
Ok, this bug is actually an incompatibility due to changes in the Rescale process. I'll release an update with the modified script that fixes this issue.

In the meanwhile, the fix is very easy:

- With Process Explorer, expand the Scripts item. Expand also the Utilities item and look for the DarkStructureEnhance script.

- Right-click the DarkStructureEnhance item. Select Edit script menu option.

- The script's source code is loaded on the Script Editor. Scroll down to line number 265. Starting from this line, we have the following lines of code:

    var rescale = new Rescale;
    with ( rescale )
    {
        mode = RescaleRGB;
    }


To fix the bug, we simply have to change 'RescaleRGB' to 'RGBK' in line # 268. Then the code will be as follows:

    var rescale = new Rescale;
    with ( rescale )
    {
        mode = RGBK;
    }


On Windows the script file is on a subfolder of 'C:\Program Files folder'. Unless you are running PixInsight with administrative privileges (hmm, you are not doing that, do you?) you'll have to save the modified script to another folder where you have write rights; for example a folder under your personal Documents folder, or something similar. Then you can run the script for example by selecting Script > Execute Script File from the main menu.

Sorry for the mistake.
Juan Conejero
PixInsight Development Team
http://pixinsight.com/

Offline avastro

  • PixInsight Addict
  • ***
  • Posts: 181
    • http://astrosurf.com/avastro/
Re: problem utilities DarkStructureEnhance.js
« Reply #4 on: 2010 December 24 05:23:30 »
Hello,
That solved the problem, PC vista 32 here. :)
Cheers

Antoine
Antoine
Lentin Observatory
http://www.astrosurf.com/avastro/

Offline Nigel Ball

  • PixInsight Addict
  • ***
  • Posts: 277
    • Astrophotography by Nigel
Re: problem utilities DarkStructureEnhance.js
« Reply #5 on: 2010 December 24 07:02:34 »
Hi

Right clicking on the script does not give me a menu

I'm running the latest version on windows7 64bit

Nigel
Nigel Ball
Nantwich, Cheshire, United Kingdom

Takahashi FSQ-106 at f/8, f/5 and f/3.6 on AP900, Nikon 28 mm and 180mm f/2.8
SBIG STL-11000M, Astrodon LRGB, 5nm Ha
ST-10XME, Astrodon HaLRGB
www.nigelaball.com

Offline Carlos Milovic

  • PTeam Member
  • PixInsight Jedi Master
  • ******
  • Posts: 2172
  • Join the dark side... we have cookies
    • http://www.astrophoto.cl
Re: problem utilities DarkStructureEnhance.js
« Reply #6 on: 2010 December 24 07:19:07 »
Open it with the script editor ;)
Regards,

Carlos Milovic F.
--------------------------------
PixInsight Project Developer
http://www.pixinsight.com

Offline Nigel Ball

  • PixInsight Addict
  • ***
  • Posts: 277
    • Astrophotography by Nigel
Re: problem utilities DarkStructureEnhance.js
« Reply #7 on: 2010 December 24 15:12:41 »
Thanks Carlos
Nigel Ball
Nantwich, Cheshire, United Kingdom

Takahashi FSQ-106 at f/8, f/5 and f/3.6 on AP900, Nikon 28 mm and 180mm f/2.8
SBIG STL-11000M, Astrodon LRGB, 5nm Ha
ST-10XME, Astrodon HaLRGB
www.nigelaball.com

Offline dan

  • Newcomer
  • Posts: 2
Re: problem utilities DarkStructureEnhance.js
« Reply #8 on: 2010 December 25 08:49:14 »


On Windows the script file is on a subfolder of 'C:\Program Files folder'. Unless you are running PixInsight with administrative privileges (hmm, you are not doing that, do you?) you'll have to save the modified script to another folder where you have write rights; for example a folder under your personal Documents folder, or something similar. Then you can run the script for example by selecting Script > Execute Script File from the main menu.

Sorry for the mistake.


ok all right
thanks!

Offline caliu

  • PixInsight Addict
  • ***
  • Posts: 210
    • http://www.caliu.fotografiaastronomica.com
Re: problem utilities DarkStructureEnhance.js
« Reply #9 on: 2010 December 26 10:10:53 »
Yo lo he editado y guardado bien, lo que pasa ahora es que no hace ningún efecto sobre las imágenes  :'(

Offline Jose Joaquin Perez

  • Newcomer
  • Posts: 41
    • Astrofotografía Austral
Re: problem utilities DarkStructureEnhance.js
« Reply #10 on: 2010 December 26 14:53:13 »
The same for me. ???

____________________
José Joaquín Pérez
Rancagua, Chile
www.astro-austral.cl

Offline Jose Joaquin Perez

  • Newcomer
  • Posts: 41
    • Astrofotografía Austral
Re: problem utilities DarkStructureEnhance.js
« Reply #11 on: 2010 December 28 11:47:53 »
Sorry. I have to say that the problem is solved for me and the script is working fine.

Thanks for the help!
____________________
José Joaquín Pérez
Rancagua, Chile
www.astro-austral.cl