1. Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.
    Dismiss Notice

How do I increase this image's resolution?

Discussion in 'Computers and Networks' started by siyom, Oct 23, 2015.

  1. siyom

    siyom Member

    Joined:
    Apr 7, 2013
    Messages:
    53
    Likes:
    0
    Location:
    South Africa
    compressed.JPG This image looks to have had its resolution reduced by a factor of 8 after going through DCT compression,how do I increase its resolution so that its stops the blurriness.
     

    Attached Files:

    Last edited: Oct 23, 2015
  2. Ian Rogers

    Ian Rogers Super Moderator Most Helpful Member

    Joined:
    Mar 28, 2011
    Messages:
    8,776
    Likes:
    848
    Location:
    Rochdale UK
    It doesn't look blurry to me!!!! I can't see it!!
     
    • Agree Agree x 1
  3. DerStrom8

    DerStrom8 Super Moderator Most Helpful Member

    Joined:
    Aug 9, 2010
    Messages:
    5,357
    Likes:
    497
    Location:
    Vermont (GMT-5:00)
    Same here:

    upload_2015-10-23_7-58-11.png
     
  4. dave

    Dave New Member

    Joined:
    Jan 12, 1997
    Messages:
    -
    Likes:
    0


     
  5. siyom

    siyom Member

    Joined:
    Apr 7, 2013
    Messages:
    53
    Likes:
    0
    Location:
    South Africa

    compressed.JPG
    compressed.png
     
  6. siyom

    siyom Member

    Joined:
    Apr 7, 2013
    Messages:
    53
    Likes:
    0
    Location:
    South Africa
    Sorry about that,I couldn't figure out how to upload images here,I've re uploaded the image
     
  7. Ian Rogers

    Ian Rogers Super Moderator Most Helpful Member

    Joined:
    Mar 28, 2011
    Messages:
    8,776
    Likes:
    848
    Location:
    Rochdale UK
    Resolution is lost!!!! Unless you have the original... Photoshop can approximate but the blurriness will always be there.

    Do you not have the original???
     
  8. Ian Rogers

    Ian Rogers Super Moderator Most Helpful Member

    Joined:
    Mar 28, 2011
    Messages:
    8,776
    Likes:
    848
    Location:
    Rochdale UK
    This is about as good as I could do in the time...

    upload_2015-10-23_14-0-17.png
     
    • Like Like x 1
  9. siyom

    siyom Member

    Joined:
    Apr 7, 2013
    Messages:
    53
    Likes:
    0
    Location:
    South Africa
    yes I have the original, how is resolution lost?I did this in matlab and I am not sure if photoshop would be permissible in this instance.
    Could this mean there's something wrong with my code?
    I was doing DCT compression btw.
     
  10. Ian Rogers

    Ian Rogers Super Moderator Most Helpful Member

    Joined:
    Mar 28, 2011
    Messages:
    8,776
    Likes:
    848
    Location:
    Rochdale UK
    If you compress a file down to "x" resolution and maintain the picture quality... It's impossible to go back...

    If you are trying to save memory space, consider encoding... There are many ways of retaining the picture details.

    You need a decent picture encoding C routine.. Jpeg or Gif
     
  11. Andrei_D12

    Andrei_D12 Active Member

    Joined:
    Aug 23, 2015
    Messages:
    177
    Likes:
    43
    Location:
    Craiova, Romania
    Hi!
    For uploading images you can use Imgur. There you can upload from your computer and you can share it with many link variants (BB Code, link, short link,...). This is how I post images in this forum (BB code for forums).
    Compression is not a recommended thing to do with an image that you are going to use in full size. Compression is useful only when you need the image in small size (for example you want to use that image as a profile photo and the size of the picture is larger than the maximum allowed). The quality of the image after compression is dependent on the photo editor, but generally the quality is lost...

    Andrei
     
  12. siyom

    siyom Member

    Joined:
    Apr 7, 2013
    Messages:
    53
    Likes:
    0
    Location:
    South Africa
    Ok I get you, so this might be because I didn't encode the image
     
  13. Ian Rogers

    Ian Rogers Super Moderator Most Helpful Member

    Joined:
    Mar 28, 2011
    Messages:
    8,776
    Likes:
    848
    Location:
    Rochdale UK
    Are you trying to save memory space by DCT compression??? I thought it was mainly for audio not picture as its Discreet Cosine Transformation.... I know it has been used but surely JPEG would be easier...

    If you are encoding a picture BUT!! on decoding the image is as your photo, then yes! You have an issue in your code!!
     
  14. crutschow

    crutschow Well-Known Member Most Helpful Member

    Joined:
    Mar 14, 2008
    Messages:
    10,311
    Likes:
    432
    Location:
    L.A., USA Zulu -8
    If you don't want to lose any image information when you compress it then you need to use a lossless image compression method such as PNG.
    Such methods don't provide as much compression as the lossy ones, such as JPEG (which uses DCT), but they retain all the image information.
     
  15. Andrei_D12

    Andrei_D12 Active Member

    Joined:
    Aug 23, 2015
    Messages:
    177
    Likes:
    43
    Location:
    Craiova, Romania
  16. Inquisitive

    Inquisitive Super Moderator

    Joined:
    Aug 31, 2011
    Messages:
    890
    Likes:
    83
    Location:
    Georgia, USA
    lena_gray.gif

    lena_color.gif
     
  17. Andrei_D12

    Andrei_D12 Active Member

    Joined:
    Aug 23, 2015
    Messages:
    177
    Likes:
    43
    Location:
    Craiova, Romania
    How beautiful... Where have you found them???
     
  18. Inquisitive

    Inquisitive Super Moderator

    Joined:
    Aug 31, 2011
    Messages:
    890
    Likes:
    83
    Location:
    Georgia, USA
    Google images search for "lena" she has been on the internet for a while.
     
  19. Andrei_D12

    Andrei_D12 Active Member

    Joined:
    Aug 23, 2015
    Messages:
    177
    Likes:
    43
    Location:
    Craiova, Romania
    Lena...
    I bet she's actress or photomodel or something...
    Singer... I found some videos with her !
     
  20. atferrari

    atferrari Well-Known Member

    Joined:
    Oct 8, 2003
    Messages:
    2,740
    Likes:
    117
    Location:
    Buenos Aires - Argentina
    ONLINE
    First time I saw that image was in the Don Lancaster's colum in the US ???? magazine. He used it precisely to discuss something like resolution, grey scales or related with that.

    Maybe you could find it in his site.
     
  21. Inquisitive

    Inquisitive Super Moderator

    Joined:
    Aug 31, 2011
    Messages:
    890
    Likes:
    83
    Location:
    Georgia, USA

Share This Page