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 8847757
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T12:16:02+00:00 2026-06-14T12:16:02+00:00

I have a 1024×1024 image matrix A and 256×156 image matrix B. I want

  • 0

I have a 1024×1024 image matrix A and 256×156 image matrix B. I want to set all of pixels to zero in A except for pixels where B = 1.

If B has the same size, I can just do

A(B~=1)=0;

But since B is of smaller size, I want to find complement of B in A. How can I do this?

  • 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-14T12:16:03+00:00Added an answer on June 14, 2026 at 12:16 pm

    You could zero-fill B up to the same size

    B(1024,1024) = 0;

    And then your statement would work.

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

Sidebar

Related Questions

If I have a image size 1024*768, but I want to show a 100*100
I have a 1024*768px image that I want to use as a background for
For example, I have an 1024*768 JPEG image. I want to estimate the size
I have an UIView with frame: CGRectMake(0,0,1024,768); And I want to set (0,0) point
I have a pool of 16 numbers 1,2,4,8,16,32,64,128,256,512,1024,2048,4096,8192,16384,32768. I have a number that is
I have one image 768 x 1024 size. second image is on that image
I have 1024 X 256 polar data (rows - radius, columns angle) that I
I have developed a winform application in 1280 X 1024 pixels.....when using the same
I have set the receiveBufferSize option to 1024, but for some reason I'm still
I have observed while setting heap size people prefer the values 64,128,256,1024.. . If

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.