Message Boards Message Boards

0
|
4258 Views
|
2 Replies
|
1 Total Likes
View groups...
Share
Share this post:

[✓] Isues with Blur and images from internet

Posted 4 years ago

Hello, I seem to be having issues with the Blur[] command after importing images from internet.

imgsgif = 
 Take[Import[
   "https://images.search.yahoo.com/search/images;_ylt=\
AwrEzNy1C5peD4UA3M6JzbkF;_ylu=\
X3oDMTBsZ29xY3ZzBHNlYwNzZWFyY2gEc2xrA2J1dHRvbg--;_ylc=\
X1MDOTYwNjI4NTcEX3IDMgRhY3RuA2NsawRjc3JjcHZpZANOMGlRUURFd0xqTE1vcDhmWG\
pzRFJRVDJNall3TkFBQUFBQU5MT281BGZyA21jYWZlZQRmcjIDc2EtZ3AEZ3ByaWQDWFlC\
NndudldTekNSVHhmODBNNzBTQQRuX3N1Z2cDMTAEb3JpZ2luA2ltYWdlcy5zZWFyY2gueW\
Fob28uY29tBHBvcwMwBHBxc3RyAwRwcXN0cmwDBHFzdHJsAzE5BHF1ZXJ5A2ltYWdlcyUy\
MG9mJTIwcm9zZXMEdF9zdG1wAzE1ODcxNTQwMTY-?p=images+of+roses&fr=mcafee&\
fr2=sb-top-images.search&ei=UTF-8&n=60&x=wrt&imgty=gif", "Images"], 5]

these are roses.

img1 = Take[imgsgif, 1]

Blur[img3, 20]    I get the following error

Blur::imginv: Expecting an image or graphics instead of {}.

Not sure what it is about the "image" that was imported since it does not appear to be an "image" that Blur can operate on. The Impor[] and Take[] commands work, but not Blur[]?

Thanks very much , Andrew Skipor

.

Attachments:
POSTED BY: Andrew Skipor
2 Replies

Hello Rohit,

Excellent!!, That works very well, just tried it. Now I can go to the next steps, and work on anonymous functions.

Thanks again, Andrew Skipor

POSTED BY: Andrew Skipor
Posted 4 years ago

Hi Andrew,

Take returns a list, Blur expects an Image. Use Part instead.

img3 = imgsgif[[-1]];
Blur[img3, 20]
POSTED BY: Rohit Namjoshi
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract