Welcome Guest! To enable all features please Login. New Registrations are disabled.

Notification

Icon
Error

Login


3 Pages123>
Options
Go to last post Go to first unread
Offline uni  
#1 Posted : 02 May 2013 15:04:34(UTC)
uni


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 10/11/2010(UTC)
Posts: 1,494
Man
Russian Federation

Was thanked: 1274 time(s) in 745 post(s)
Extends SMath Studio with an Image Region.



Edited by user 24 August 2019 06:06:16(UTC)  | Reason: Not specified

Russia ☭ forever
Viacheslav N. Mezentsev
thanks 3 users thanked uni for this useful post.
on 02/05/2013(UTC),  on 02/05/2013(UTC),  on 03/05/2013(UTC)

Wanna join the discussion?! Login to your SMath Studio Forum forum account. New Registrations are disabled.

Offline kaka  
#2 Posted : 02 May 2013 18:31:11(UTC)
kaka


Rank: Member

Groups: Registered
Joined: 18/04/2013(UTC)
Posts: 25

Was thanked: 1 time(s) in 1 post(s)
Originally Posted by: uni Go to Quoted Post
Need to change size manually after recalculation.

Sources: https://smath.info/svn/public/plugins/ImageRegion/



Clap Clap Like this one. If will be great to load and display the excel file in Smath as well.

Edited by moderator 09 August 2013 23:12:01(UTC)  | Reason: Not specified

Offline kaka  
#3 Posted : 03 May 2013 00:10:56(UTC)
kaka


Rank: Member

Groups: Registered
Joined: 18/04/2013(UTC)
Posts: 25

Was thanked: 1 time(s) in 1 post(s)
why I cannot find the dll in the zip file.
Offline mkraska  
#4 Posted : 03 May 2013 01:03:19(UTC)
mkraska


Rank: Advanced Member

Groups: Registered
Joined: 15/04/2012(UTC)
Posts: 1,986
Germany

Was thanked: 1124 time(s) in 721 post(s)
Same problem here. The plugin folder in the zip file is empty.
Martin Kraska

Pre-configured portable distribution of SMath Studio: https://smath.com/wiki/SMath_with_Plugins.ashx
Offline uni  
#5 Posted : 03 May 2013 01:06:28(UTC)
uni


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 10/11/2010(UTC)
Posts: 1,494
Man
Russian Federation

Was thanked: 1274 time(s) in 745 post(s)
Oh, sorry, now fixed.
Russia ☭ forever
Viacheslav N. Mezentsev
thanks 2 users thanked uni for this useful post.
on 03/05/2013(UTC),  on 03/05/2013(UTC)
Offline mkraska  
#6 Posted : 03 May 2013 01:29:50(UTC)
mkraska


Rank: Advanced Member

Groups: Registered
Joined: 15/04/2012(UTC)
Posts: 1,986
Germany

Was thanked: 1124 time(s) in 721 post(s)
Plugin works, except for Mathcad file acces, which I have not installed yet. Also, I did not test the image import.

Resizing requires just to touch the handles, then the size jumps to correct value. One has to be careful with image size, using 128x128 for the second image, Smath crashed when I tried to rename the variable image.

Also, there seems to be an indexing problem. For some sizes, the result of the second computation does not overwrite the upper left rectangle as expected but has some shift. Don't know if that is due to the formula or due to the plugin.
mkraska attached the following image(s):
imageregion1.PNG
Martin Kraska

Pre-configured portable distribution of SMath Studio: https://smath.com/wiki/SMath_with_Plugins.ashx
thanks 1 user thanked mkraska for this useful post.
on 03/05/2013(UTC)
Offline uni  
#7 Posted : 03 May 2013 01:36:06(UTC)
uni


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 10/11/2010(UTC)
Posts: 1,494
Man
Russian Federation

Was thanked: 1274 time(s) in 745 post(s)
Yes, it's strange. I'll see what's up. I need more sleep.

P.S. We have to change the names of variables. We use the same variable image.

Edited by user 03 May 2013 02:18:42(UTC)  | Reason: Not specified

Russia ☭ forever
Viacheslav N. Mezentsev
thanks 1 user thanked uni for this useful post.
on 03/05/2013(UTC)
Offline mkraska  
#8 Posted : 04 May 2013 13:57:21(UTC)
mkraska


Rank: Advanced Member

Groups: Registered
Joined: 15/04/2012(UTC)
Posts: 1,986
Germany

Was thanked: 1124 time(s) in 721 post(s)
I did some more testing in connection with MathcadFileAccess.

The image region produced artefacts with data read by READRGB(). It seems that from a certain point there is a shift in pixel indexing. Graylevels read by READ_IMAGE are displayed correctly, just as images from files.
The problem does not occur with the win logo from your MathcadFileAccess Examples. It, however, persists if I save the fhb logo in different formats, including various tastes of bmp.

Also, the SMath logo as available at the download section in the forum is not displayed correctly. READ_IMAGE fails to read it at all.

P.S. I also noticed that I cannot put a function call to the placeholder but have to assign a matrix in advance.

P.P.S: The gray level image has slightly colored shades in the image which are obvious in high zoom levels. I can't tell if that is a READ_IMAGE problem or an imageregion problem.

Edited by user 04 May 2013 14:30:05(UTC)  | Reason: Not specified

File Attachment(s):
MathcadFileAccess-Test.zip (132kb) downloaded 47 time(s).
mkraska attached the following image(s):
rgbpng.PNG
logo.PNG
imageregion2.PNG
Martin Kraska

Pre-configured portable distribution of SMath Studio: https://smath.com/wiki/SMath_with_Plugins.ashx
thanks 1 user thanked mkraska for this useful post.
on 04/05/2013(UTC)
Offline uni  
#9 Posted : 04 May 2013 17:36:27(UTC)
uni


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 10/11/2010(UTC)
Posts: 1,494
Man
Russian Federation

Was thanked: 1274 time(s) in 745 post(s)
Updated (MathcadFileAccess_20130504 and ImageRegion_20130504).
mkraska, I found two errors in the functions. Thanks for your examples.

Not all image formats are supported. Some files can't be loaded.

P.S. LitePipe Demo example.

Edited by user 04 May 2013 18:19:30(UTC)  | Reason: Not specified

File Attachment(s):
LitePipes_20130504.zip (1,371kb) downloaded 49 time(s).
Russia ☭ forever
Viacheslav N. Mezentsev
thanks 1 user thanked uni for this useful post.
on 04/05/2013(UTC)
Offline mkraska  
#10 Posted : 04 May 2013 18:36:19(UTC)
mkraska


Rank: Advanced Member

Groups: Registered
Joined: 15/04/2012(UTC)
Posts: 1,986
Germany

Was thanked: 1124 time(s) in 721 post(s)
Originally Posted by: uni Go to Quoted Post

Not all image formats are supported. Some files can't be loaded.


uni, thanks again for bugfixing. What a pity that the SMath logo is one of poor unloadable files...

After updating both MathcadFileAccess and ImageRegion:
- The imageregion example works fine.
- The image examples in the MathcadFileAccess examples dir have no images included.
- There is a hardwired local path from your computer in the writebin example. If changed to currentdir everything works.

My examples, however, do not work.
- The vertical offset of the lower right image triangle has gone
- The colorful artefacts in the graylevel plots have gone
- Now, there is a more obvious horizontal shift in the image

Do i have to assume that my test image is buggy? It is the very expemsive new official logo of our school, taken from the website.

P.S. I did not get to run the mcadefi stuff so far. This trick with putting it beside the smath exe did not work for me.
mkraska attached the following image(s):
imageregion3.PNG
Martin Kraska

Pre-configured portable distribution of SMath Studio: https://smath.com/wiki/SMath_with_Plugins.ashx
Offline uni  
#11 Posted : 04 May 2013 18:42:37(UTC)
uni


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 10/11/2010(UTC)
Posts: 1,494
Man
Russian Federation

Was thanked: 1274 time(s) in 745 post(s)
This is strange, I checked the plugin on your example. Check version:

ImageRegion - 1.0.4872.36288,
MathcadFileAccess - 1.0.4872.36253.

I forgot to say that you need to update both plugins. Errors have been in both plugins simultaneously.

Edited by user 04 May 2013 18:48:20(UTC)  | Reason: Not specified

Russia ☭ forever
Viacheslav N. Mezentsev
Offline mkraska  
#12 Posted : 04 May 2013 19:17:50(UTC)
mkraska


Rank: Advanced Member

Groups: Registered
Joined: 15/04/2012(UTC)
Posts: 1,986
Germany

Was thanked: 1124 time(s) in 721 post(s)
Originally Posted by: uni Go to Quoted Post
This is strange, I checked the plugin on your example. Check version:

ImageRegion - 1.0.4872.36288,
MathcadFileAccess - 1.0.4872.36253.

I forgot to say that you need to update both plugins. Errors have been in both plugins simultaneously.


You are right, It was my fault. I failed to complete the update by moving the dll...

Now just the smath logo seems to resist the debugging effort.


mkraska attached the following image(s):
imageregion4.PNG
Martin Kraska

Pre-configured portable distribution of SMath Studio: https://smath.com/wiki/SMath_with_Plugins.ashx
Offline uni  
#13 Posted : 04 May 2013 19:41:11(UTC)
uni


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 10/11/2010(UTC)
Posts: 1,494
Man
Russian Federation

Was thanked: 1274 time(s) in 745 post(s)
I compared the results with Mathcad and I think I swapped the colors (I'll read the Mathcad Help).

Edited by user 04 May 2013 20:04:04(UTC)  | Reason: Not specified

Russia ☭ forever
Viacheslav N. Mezentsev
Offline uni  
#14 Posted : 04 May 2013 22:13:00(UTC)
uni


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 10/11/2010(UTC)
Posts: 1,494
Man
Russian Federation

Was thanked: 1274 time(s) in 745 post(s)
Updated. Now colors not swapped. Small improvements.

Edited by user 04 May 2013 22:23:58(UTC)  | Reason: Not specified

Russia ☭ forever
Viacheslav N. Mezentsev
Offline uni  
#15 Posted : 12 October 2013 09:26:34(UTC)
uni


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 10/11/2010(UTC)
Posts: 1,494
Man
Russian Federation

Was thanked: 1274 time(s) in 745 post(s)
Updated. Added support for svg.

Edited by user 12 October 2013 09:41:42(UTC)  | Reason: Not specified

Russia ☭ forever
Viacheslav N. Mezentsev
thanks 2 users thanked uni for this useful post.
on 12/10/2013(UTC),  on 13/10/2013(UTC)
Offline mkraska  
#16 Posted : 12 October 2013 14:34:10(UTC)
mkraska


Rank: Advanced Member

Groups: Registered
Joined: 15/04/2012(UTC)
Posts: 1,986
Germany

Was thanked: 1124 time(s) in 721 post(s)
I cannot display the attached image (had to zip the image because svg is not allowed as attachment file type). The file is generated using TpX and cleanly displays in IE.

Also, after downloading the plugin, further access to the online gallery is denied. This also happens with Davide's Conditionally Formatted Label but not with Andrey's Excel Files Plugin.

Tested with the installer version of 0.96.4909 using plugin version 1.0.5033.22634

No such access problems with the portable version. The display problem is present in both versions.

Edited by user 12 October 2013 15:02:10(UTC)  | Reason: Not specified

File Attachment(s):
ImageRegion.sm (3kb) downloaded 53 time(s).
Moment-2.zip (2kb) downloaded 50 time(s).
mkraska attached the following image(s):
svg.PNG
Martin Kraska

Pre-configured portable distribution of SMath Studio: https://smath.com/wiki/SMath_with_Plugins.ashx
Offline uni  
#17 Posted : 12 October 2013 16:51:48(UTC)
uni


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 10/11/2010(UTC)
Posts: 1,494
Man
Russian Federation

Was thanked: 1274 time(s) in 745 post(s)
Updated. Try now.
uni attached the following image(s):
ImageRegion. SVG. Example 3.png
Russia ☭ forever
Viacheslav N. Mezentsev
thanks 1 user thanked uni for this useful post.
on 12/10/2013(UTC)
Offline mkraska  
#18 Posted : 12 October 2013 17:08:30(UTC)
mkraska


Rank: Advanced Member

Groups: Registered
Joined: 15/04/2012(UTC)
Posts: 1,986
Germany

Was thanked: 1124 time(s) in 721 post(s)
Confirmed for installer and portable version, works now. Thanks a lot.

Gallery access issue remains, but might have causes outside the plugin.

PS: how about an optional background? The grid is visible through the image, which is close to paper-and-pencil-feeling, but which might be a matter of taste -> optional setting would be fine.

Edited by user 12 October 2013 17:12:14(UTC)  | Reason: Not specified

Martin Kraska

Pre-configured portable distribution of SMath Studio: https://smath.com/wiki/SMath_with_Plugins.ashx
Offline uni  
#19 Posted : 12 October 2013 17:14:56(UTC)
uni


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 10/11/2010(UTC)
Posts: 1,494
Man
Russian Federation

Was thanked: 1274 time(s) in 745 post(s)
Originally Posted by: mkraska Go to Quoted Post
PS: how about an optional background? The grid is visible through the image, which is close to paper-and-pencil-feeling, but which might be a matter of taste -> optional setting would be fine.

Ok, I'll do it later.
Russia ☭ forever
Viacheslav N. Mezentsev
Offline mkraska  
#20 Posted : 12 October 2013 17:27:38(UTC)
mkraska


Rank: Advanced Member

Groups: Registered
Joined: 15/04/2012(UTC)
Posts: 1,986
Germany

Was thanked: 1124 time(s) in 721 post(s)
Originally Posted by: uni Go to Quoted Post
Originally Posted by: mkraska Go to Quoted Post
PS: how about an optional background? The grid is visible through the image, which is close to paper-and-pencil-feeling, but which might be a matter of taste -> optional setting would be fine.

Ok, I'll do it later.

Looking forward to the implementation.

Still there is another, more important issue: could you please interpret relative paths with respect to the directory of the current SMath document instead of the current directory? This would create portable documents and enable putting examples in the activebook help system.
Martin Kraska

Pre-configured portable distribution of SMath Studio: https://smath.com/wiki/SMath_with_Plugins.ashx
Users browsing this topic
Guest
Similar Topics
Image Region [size/scroll] (Samples)
by Jean Giraud 09/06/2023 16:43:22(UTC)
Image Region Plugin - unable to install in SS 7813 (Bugs & Problems)
by ndtma 25/05/2021 20:17:53(UTC)
IMAGE REGION DOESN´T WORK (Bugs & Problems)
by Leandro Martins 10/04/2021 02:22:13(UTC)
[Image Region] Not woring on Windows 10 Laptop (Bugs & Problems)
by shiju 28/04/2017 22:08:04(UTC)
Image Region Does Not Reset (Bugs & Problems)
by Jean Giraud 18/04/2017 17:34:04(UTC)
[Image Region] 6179 SMath.Studio Errors & Glitches (Bugs & Problems)
by Novice 31/01/2017 16:59:12(UTC)
Editable Image Region - Plugin Update (Extensions)
by Alex M. 14/02/2016 09:46:23(UTC)
Editable Image Region (Extensions)
by mkraska 03/05/2014 13:47:12(UTC)
3 Pages123>
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.