Author Topic: Combine more process icons on different images  (Read 2488 times)

Offline pisto92

  • Newcomer
  • Posts: 1
Combine more process icons on different images
« on: 2017 January 06 02:46:17 »
Hi my firends,

i have a question for you: how can i use ProcessContainer or similar process with custom process icons script?

E.G.
Code: [Select]
var P1 = new ChannelExtraction;
P1.colorSpace = ChannelExtraction.prototype.RGB;
P1.channels = [[true, ""],[true, ""],[true, ""]];
P1.sampleFormat = ChannelExtraction.prototype.SameAsSource;
P1.executeOn( ImageWindow.windowById("image").mainView );

var P2 = new LinearFit;
P2.referenceViewId = "image_G";
P2.rejectLow = 0.000000;
P2.rejectHigh = 0.920000;
P2.executeOn( ImageWindow.windowById("image_R").mainView );

var P3 = new LinearFit;
P3.referenceViewId = "image_G";
P3.rejectLow = 0.000000;
P3.rejectHigh = 0.920000;
P3.executeOn( ImageWindow.windowById("image_B").mainView );

Channel extraction on image (RGB) produce 3 images (image_R, image_G, image_B).
Now i need to apply LinearFit on image_B and image_R with image_G as reference.
Appling Process container on image, obiuvsly it doesn't work because i need to change che executeOn's view.

Can i create my custom Process Icon? In this case my process container will become
> ChannelExtraction
> LinearFitOnB
> LinearFitOnR
and maybe it will work :)

Thank to all  ;D