Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8765633
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T16:19:58+00:00 2026-06-13T16:19:58+00:00

I loaded an image in Matlab which has properties: Name(X) , Size (512×512) ,

  • 0

I loaded an image in Matlab which has properties:

 Name(X)   , Size (512x512)  , Bytes (262144)  , Class(uint8) ,  

I added gaussian noise and remove that noise by using wavelet transform. By doing Inverse wavelet transform I get the final output image:

Name(Xsyn) , Size (504x504)  , Bytes (2032128) , Class(Double)

Now I am trying to calculate the signal-to-noise ratio (SNR) by using

SNR = 20*log10(norm(X(:))/norm(X(:)-Xsyn(:)));

But it show the following error:

??? Error using ==> minus
Matrix dimensions must agree.

So I think I should change my matrix dimension of the final image (Xsyn). Now how can I change this matrix dimension of image Xsyn (504×504 ) to Xsyn size (512×512)?

Or is there another way to find out the SNR?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T16:20:00+00:00Added an answer on June 13, 2026 at 4:20 pm

    Given that the function you use doesn’t have a handle that keeps the original size of the matrix (for instance conv2 has the option to output the same size using (conv2(Image,filer,'same')) , you can always do this quick and dirty fix:

     X=imresize(X,size(Xsyn));
    

    and the rest will follow…

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a UIImageView which has a png image sequence loaded into it. My
I have a DICOM image loaded as a matrix in matlab. My question is,
My problem has todo with a dynamically loaded image in col1 and resizing col2
I am trying to find the size of an image I have loaded into
Suppose I have image canvas or previously loaded image which supports transparency (gif/png). What
I'm looking for a way to check whether a specific image has been loaded
http://jsfiddle.net/NCt4D/8/ Is what I currently got. The loaded image is big: After it has
I ‘concat’ an id of just loaded image into mysql user record like this.
I'm using savefiledialog to save an image. Canvas is picturebox and the loaded image
OpenCV version 2.2, C++ interface. When showing a loaded image in a window with

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.