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
I had to change the type of the field from double to Double, otherwise the getInfo().getMutableInput(...) was not working for me.
I put here the full code for future reference:
@Plugin(type = BdvPlaygroundActionCommand.class, menuPath = ScijavaBdvDefaults.RootMenu+"BDV>BDV - Screenshot",
description = "Creates a screenshot of the current BDV view. The sampling can be chosen to upscale or downscale" +
" the image compared to the current view. A single RGB image resulting from the projection" +
" of all sources is displayed. Raw image data can also be exported as multi-channel grayscale.")
publicclassScreenShotMakerCommandextendsDynamicCommandimplementsBdvPlaygroundActionCommand, Initializable
{
@ParameterpublicBdvHandlebdvh;
@Parameter(label="Target Sampling [UNIT]")
publicDoubletargetSamplingInXY = 1D;
@Parameter(label="Show Raw Data")
publicbooleanshowRawData = false;
privateStringpixelUnit = "Pixels";
@Overridepublicvoidrun() {
ScreenShotMakerscreenShotMaker = newScreenShotMaker( bdvh );
screenShotMaker.setPhysicalPixelSpacingInXY( targetSamplingInXY, pixelUnit );
screenShotMaker.getRgbScreenShot().show();
if( showRawData ) screenShotMaker.getRawScreenShot().show();
}
The text was updated successfully, but these errors were encountered:
@tischi wrote:
The text was updated successfully, but these errors were encountered: