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
Program saves as xml, but only wants to load .ws... Several hours of work went down the drain!
(Yes, I did succeed in making Scharr via convolutions tool, and I was in the process of figuring out how to combine stuff - you know, R channel from image X G from image Y B 0, when I must have clicked something nip didn't like and crashed)
Also: save as never produced a working image file, all of them were all black, even those that were RGB 0-255 according to nips
Try File / Recover -- nip2 saves the last 10 workspace edits in a recovery area, you should be able to get your work back.
Thanks, that worked. Attaching my file here so that you can take a look and figure out what is going wrong with save as for images themselves (and I still need a tip on that RGB combining thing - it's trivial in any other library I know but I can't figure it out here)
Workspace files are XML internally, but that shouldn't matter. Save as fred.ws, load back again, it should all work.
It shouldn't save black image files, you'll need to give a specific example I can check. What steps exactly did you follow, what format did you save in, etc.
Activity
jcupitt commentedon Apr 1, 2023
Oh no!
Try File / Recover -- nip2 saves the last 10 workspace edits in a recovery area, you should be able to get your work back.
Yes, .ws files are xml inside, but that shouldn't matter. Just save and load to
myfile.wsor whatever and it'll all work.I'll try assembling your demo images in nip2.
jcupitt commentedon Apr 1, 2023
For a scharr filter in nip2, try saving this file as
scahrr.def:Start nip2, do Toolkits / Edit, then File / Open and load the .def file. A new toolkit should appear, called "scharr".
Load an image, then in the main window click Toolkits / scharr and it ought to work. I see:
jcupitt commentedon Apr 1, 2023
I think you saw black because nip2 defaults to integer convolution. Cast your image to float before calling conv and it should work.
Alternatively you could also redo scharr as an int conv (perhaps add an offset of 128?).
Zireael07 commentedon Apr 1, 2023
Thanks, that worked. Attaching my file here so that you can take a look and figure out what is going wrong with save as for images themselves (and I still need a tip on that RGB combining thing - it's trivial in any other library I know but I can't figure it out here)
nipstest.zip
jcupitt commentedon Apr 1, 2023
In
nip2it'simage?bandto get a band from an image, andimage ++ imageto join two images bandwise.They work for strings and lists too, so:
etc etc.
Zireael07 commentedon Oct 9, 2024
Anything on the saving issue (both xml vs ws and the black image)? This effectively renders nip unusable
jcupitt commentedon Oct 9, 2024
I think it works fine, doesn't it?
Workspace files are XML internally, but that shouldn't matter. Save as
fred.ws, load back again, it should all work.It shouldn't save black image files, you'll need to give a specific example I can check. What steps exactly did you follow, what format did you save in, etc.