Author Topic: Resample doesn't use the image you tell it to use  (Read 4166 times)

Offline Nocturnal

  • PixInsight Jedi Council Member
  • *******
  • Posts: 2727
    • http://www.carpephoton.com
Resample doesn't use the image you tell it to use
« on: 2007 November 10 18:28:06 »
To reproduce:

- open two images in PI
- open Resample process
- select an image (annoying how it doesn't select the currently active window but ok)
- do a resize
- select the other image
- don't change the resize parameters (not sure it that matters)
- hit apply
- note that the first image gets resized again
Best,

    Sander
---
Edge HD 1100
QHY-8 for imaging, IMG0H mono for guiding, video cameras for occulations
ASI224, QHY5L-IIc
HyperStar3
WO-M110ED+FR-III/TRF-2008
Takahashi EM-400
PIxInsight, DeepSkyStacker, PHD, Nebulosity

Offline Carlos Milovic

  • PTeam Member
  • PixInsight Jedi Master
  • ******
  • Posts: 2172
  • Join the dark side... we have cookies
    • http://www.astrophoto.cl
Resample doesn't use the image you tell it to use
« Reply #1 on: 2007 November 11 01:35:53 »
Hi

This behavior is perfectly normal, as long as you understand the object oriented paradigm in PixInsight's interfase, instead of the "standard" used by other applications. This means, Resample does not have to automatically select the active window, becouse the Resample process (and it's graphical interfase) is an independent object, wich doesn't depend on image to have its own life. You may open Resample without any image opened at all. You just select an image to get the input of the relative resizes, or final pixel dimensions. By selecting the image, you are not creating a link with it in the sense that Resample will be applied to this specific image by pushing the Apply Button. That button applies the instance to the current active image/window, and as long as you does not change it, even when you change the image selected at the Resample window, it will be applied to the same image.

The bottom line, to avoid confusions about the current active window, make use of the drag & drop object to apply a process, so you'll be sure wich image will be changed.
Regards,

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

Offline Juan Conejero

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 7111
    • http://pixinsight.com/
Resample doesn't use the image you tell it to use
« Reply #2 on: 2007 November 11 02:03:06 »
Hi Sander,

Along with what Carlos has said, you can enable the "Track View" option on the Resample interface. With this option enabled, Resample will acquire the dimensions of the active image each time you change it. The same is true for many interfaces with track view tool buttons on their control bar.

What is important to point out here, as Carlos says, is the fact that PixInsight's interface is radically object-oriented. The Resample interface is just one where this radicalism is more obvious than usual. Resample uses the selected view to acquire its dimensions in order to calculate output sizes: the sizes (in pixels and other units) that an image with the same dimensions would have after applying the current Resample instance.

When working on the PixInsight platform, just think in pure OO terms: processes and images are completely independent, self-contained and self-defined objects.
Juan Conejero
PixInsight Development Team
http://pixinsight.com/