Home > Software engineering >  How to make a picture of a few columns into other pictures of some columns, or replaced with white.
How to make a picture of a few columns into other pictures of some columns, or replaced with white.

Time:09-24

A picture is composed of 44000 images, I will each insets to the right or left of the third part of the white, or other images, should be how to deal with?

CodePudding user response:

 
{
//create a DC
HDC HDC=CreateDC (_T (" DISPLAY "), NULL, NULL, NULL);
//candidate bitmap
HBITMAP hBmpOld=(HBITMAP) SelectObject (hDC, hBmp);
//create a brush
HBRUSH HBRUSH=CreateSolidBrush (crFill);
//filling area
FillRect (hDC, FillRect, hBrush);
//remove brush
DeleteObject (hBrush);
//restore bitmap
SelectObject (hDC, hBmpOld);

}

CodePudding user response:

reference 1st floor zgl7903 response:
 
{
//create a DC
HDC HDC=CreateDC (_T (" DISPLAY "), NULL, NULL, NULL);
//candidate bitmap
HBITMAP hBmpOld=(HBITMAP) SelectObject (hDC, hBmp);
//create a brush
HBRUSH HBRUSH=CreateSolidBrush (crFill);
//filling area
FillRect (hDC, FillRect, hBrush);
//remove brush
DeleteObject (hBrush);
//restore bitmap
SelectObject (hDC, hBmpOld);

}
can use MATLAB to do?

CodePudding user response:

Imread

% data transformationImwrite
https://ww2.mathworks.cn/help/matlab/images_btfntr_-1.html

CodePudding user response:

What is your image format, didn't do the coding, if is RGB, advice directly modify the RGB values, efficiency will be higher
  • Related