CalcHist throw expection at gray & big pictures (Bug #2244)


Added by wuling Chang over 12 years ago. Updated over 12 years ago.


Status:Cancelled Start date:2012-08-06
Priority:Normal Due date:
Assignee:- % Done:

0%

Category:trash
Target version:-
Affected version: Operating System:
Difficulty: HW Platform:
Pull request:

Description

Hi all,

the code is here:

float range[]= { 0, 256} ;
const float*histRange =range;

bool uniform = true; bool accumulate = false;
/// Compute the histograms:
calcHist(&c1,1,0,Mat(),hist,1,&histSize,&histRange,uniform, accumulate);

I try different size gray(8 bit) image to calcuate histogram, but i find some throw expection at big picture.The attachments is picture file and catch error picture.


Error.rar (755.9 kB) wuling Chang, 2012-08-06 03:45 pm


Associated revisions

Revision 0b57d371
Added by Andrey Pavlenko about 11 years ago

Merge pull request #2244 from ilya-lavrenov:tapi_device_cache

History

Updated by wuling Chang over 12 years ago

I think i find out the problem.
This picture is 8 bits gray format!
But I am confused that, when using imread ,this format become 24 bits format!
src=imread(filename,-1);

Updated by Marina Kolpakova over 12 years ago

  • Category set to trash
  • Target version set to 2.4.3
  • Status changed from Open to Cancelled

Updated by Andrey Kamaev over 12 years ago

  • Target version deleted (2.4.3)

Also available in: Atom PDF