You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My understanding is that the image features are calculated on each colour channel, and then it calls:
ImagePlus merged = mergeResultChannels(results);
wholeStack.addSlice(merged.getTitle(), merged.getImageStack().getProcessor(1));
I also noticed in the output training data, there's only one value for the feature(sobel as an example)
But I don't understand how does the mergeResultChannels work? Does it merge the features calculated on 3 colour channels into one before the training? What kind of logic does it use to do the merge? I found the code here but don't know what it does.
/**
* Merge input channels if they are more than 1
* @param channels results channels
* @return result image
*/
ImagePlus mergeResultChannels(final ImagePlus[] channels)
{
if(channels.length > 1)
{
ImageStack mergedColorStack = mergeStacks(channels[0].getImageStack(), channels[1].getImageStack(), channels[2].getImageStack());
ImagePlus merged = new ImagePlus(channels[0].getTitle(), mergedColorStack);
for(int n = 1; n <= merged.getImageStackSize(); n++)
merged.getImageStack().setSliceLabel(channels[0].getImageStack().getSliceLabel(n), n);
return merged;
}
else
return channels[0];
The text was updated successfully, but these errors were encountered:
My understanding is that the image features are calculated on each colour channel, and then it calls:
ImagePlus merged = mergeResultChannels(results);
wholeStack.addSlice(merged.getTitle(), merged.getImageStack().getProcessor(1));
I also noticed in the output training data, there's only one value for the feature(sobel as an example)
@Attribute original numeric
@Attribute Hue numeric
@Attribute Saturation numeric
@Attribute Brightness numeric
@Attribute Sobel_filter_0.0 numeric
@Attribute Sobel_filter_1.0 numeric
@Attribute Sobel_filter_2.0 numeric
@Attribute Sobel_filter_4.0 numeric
@Attribute Sobel_filter_8.0 numeric
@Attribute Sobel_filter_16.0 numeric
@Attribute class {'class 1','class 2'}
But I don't understand how does the mergeResultChannels work? Does it merge the features calculated on 3 colour channels into one before the training? What kind of logic does it use to do the merge? I found the code here but don't know what it does.
The text was updated successfully, but these errors were encountered: