Skip to content

ViewsExample2.java #1

@user-na

Description

@user-na

In ViewsExample2.java the first step is to open an image via an IJ instance.
As far as I can see IJ tries to open the image from the network when I do
IJ.run("T1 Head (2.4M, 16-bits)");.
As I am behind a restrictive firewall, calling this method failed for me. To fix this for me, I changed the opening command to
IJ.run("$localPathToProject$\\images\\t1-head.tif"),
using the file which was distributed with the workshop. Doing so, the image opens as expected.
So far so good.

The point is that the provided image seems to be of UnsignedByteType and not UnsignedShortType. So the wrapping into an Img fails:
Img< UnsignedShortType > img = ImageJFunctions.wrapShort( imp );

Am I doing something wrong, or can you confirm this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions