Jump to content

Projective Transformation needed


Recommended Posts

This should do exactly what you want

 

<Plugin in newer post>

 

Edit the config file withe notepad if the directory path for Krpano is incorrect. If you upgrade Krpano update this file.

post-105131-0-59833700-1392602455.png

 

The Output Image will appear in your Documents Folder named 360_sphere.tif

 

Edited by TechnoRobbo

Go out there and be amazing. Have Fun, TR
TRsSig.png?raw=1
Some Pretty Pictures Some Cool Plugins

Link to comment
Share on other sites

Dear TechnoRobbo!

 

Thank you for this plugin, looks good - many thanks!

 

I have some questions:

 

Can the cfg file be in the plugin folder of paint.net? This would be easier for our user environment.

 

Can the script save the converted image in the same folder and filename plus "_360sphere" then the source?

Then open the converted file and delete the source file maybe also with cfg:

destination_dir = source

open target = yes

delete source = yes

 

Because the user has many files to convert,...

 

In the future the krpano will support png, maybe it's good to think about that now for the future with also an cfg option at the moment like: output = tiff

So I can change the cfg then later to output = png?

 

 

Once again MANY THANKS!

 

Best regards

 

Annotator

Link to comment
Share on other sites

  1. Since it's a plugin I can't erase the original

I can move the config file - no problem

I can't query the original file name but I can add a textbox so the user can assign it a name .This would require extra error trapping in the code so I need time to debug.

Go out there and be amazing. Have Fun, TR
TRsSig.png?raw=1
Some Pretty Pictures Some Cool Plugins

Link to comment
Share on other sites

Rather than the Paint.NET directory itself, shouldn't the cfg file be placed in My Documents\Paint.NET User Files?

Link to comment
Share on other sites

Hi again!

 

Thanks for your statements.

 

@TR: In the message box is written Kpano, you forgot the "r" in krpano

 

Because of different users I think it would be good that the config file is also in the plugin folder.

 

Can the plugin makes after creation the new (temporary) file:

1. Layers - import from file - and import the temporary file

2. delete the background layer (the original file)

3. crop to selection

4. save with default settings

5. delete the temporary file

 

I made these 5 steps now manually and then I have the choice to: save the file also  as jpg because at the moment KRPANO doesn't support png.

Later, when it supports png I can just close the file (we don't need the fisheye image anymore)

 

This would be nice for our workflow.

 

What do you think?

 

BR

Annotator

Edited by Annotator
Link to comment
Share on other sites

 

Can the plugin makes after creation the new (temporary) file:

1. Layers - import from file - and import the temporary file

2. delete the background layer (the original file)

3. crop to selection

4. save with default settings

5. delete the temporary file

 

Most of those steps can't be accomplished by a plugin. Macros and Droplets are in Rick Brewster's wheel house if  he so chooses to add them.

 

The Original layer cannot be replaced because the output will always be twice as wide as the input.

Edited by TechnoRobbo

Go out there and be amazing. Have Fun, TR
TRsSig.png?raw=1
Some Pretty Pictures Some Cool Plugins

Link to comment
Share on other sites

This is the revision - Version1.1

 

<removed for newer version>

 

it contains the plugin and the config file , extract both to effects folder. 

 

the config file now looks like this try changing the output folder to something like this C:\Output

if the plugin doesn't find that folder, it defaults to the Documents folder for the user

 

 

 

This is the VS Source Code for the Curious programmers <newer version available>

Edited by TechnoRobbo
  • Upvote 1

Go out there and be amazing. Have Fun, TR
TRsSig.png?raw=1
Some Pretty Pictures Some Cool Plugins

Link to comment
Share on other sites

Dear TechnoRobbo!

 

Thanks for the version 1.1

 

The posibillity to enter a filename is great, so I don't need to rename the file later.

But I found a litte problem when entering a Base Name like "1 - Management" or "2 - Reception" or special German charakters like Ü or Ö or Ä - can you fix this?

 

Also the extension with "_sphere" always at the final filename is too much when a base name is defined, so I would remove this out of the plugin.

So the user has to enter the File Name (without file extension)

 

If this is a problem:

If somebody leaves the file name empty, can you use the actual date and time for the filename - so another conversation will not overwrite a previous file. Like : [2014-02-19 09_55_05] 360_sphere.tif

 

Best regards

Annotator

Edited by Annotator
Link to comment
Share on other sites

Maybe you don't use the droplets and start the exe directly with the parameters of the temp images?

You know the kcube2sphere.exe location from the cfg file

 

droplet:

"%~dp0\kcube2sphere" -config=convertdroplets.config "%~1" "%~2" "%~3" "%~4" "%~5" "%~6"

 

your plugin

path from cfg\kcube2sphere.exe -config=convertdroplets.config "temp image1" "temp image2" "temp image3" "temp image4" "temp image5" "temp images6"

 

Just a idea,......

Link to comment
Share on other sites

Hi again - wow you are fast.... that's great,

 

One little thing:It cannot overwrite an existing file (if file exist), but that's not really important.

 

One last wish: Is it possible to define the used droplets also in the configuration?

 

because I will modify the droplet and erase the delay, so I will have an individual droplet for the plugin.

 

Like

[Convert CUBE to SPHERE droplet]

ThreeSixty CUBE to SPHERE droplet.bat

 

and

 

[Convert SPHERE to CUBE droplet]

ThreeSixty SPHERE to CUBE droplet.bat

 

 

Then I can optimize and don't need to change the original droplets from krpano.

 

Thanks...... Annotator

Link to comment
Share on other sites

One little thing:It cannot overwrite an existing file (if file exist), but that's not really important.

One last wish: Is it possible to define the used droplets also in the configuration?

because I will modify the droplet and erase the delay, so I will have an individual droplet for the plugin.

 

Version 1.3 ThreeSixtySrc.zip

 

It will overwrite files with same name

Config file allows you to define Droplet to use.

[Krpano]
C:\krpano-1.17.pr2

[Output]
C:\360

[CUBE2SPHERE]
Convert CUBE to SPHERE droplet.bat

[SPHERE2CUBE]
Convert SPHERE to CUBE droplet.bat

Source Code for Programmers : ThreeSixtySrc.zip

 

ThreeSixty.zip

Edited by TechnoRobbo
  • Upvote 1

Go out there and be amazing. Have Fun, TR
TRsSig.png?raw=1
Some Pretty Pictures Some Cool Plugins

Link to comment
Share on other sites

I misspelled sphere in config - I read the correct label in the code. I'll make a revision in the config file , plugin remains the same.

 

You can Either re-download or change it yourself. It would work with the bad config because it will ignore the bad label and use the default.

But if you don't change the Config file label for [sHERE2CUBE] to [sPHERE2CUBE] it will ignore the custom droplet and use the original.

 

oops.

Edited by TechnoRobbo
  • Upvote 1

Go out there and be amazing. Have Fun, TR
TRsSig.png?raw=1
Some Pretty Pictures Some Cool Plugins

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...